Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v2.0.0 #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

v2.0.0 #144

wants to merge 1 commit into from

Conversation

MrRefactoring
Copy link
Owner

@MrRefactoring MrRefactoring commented May 11, 2025

Breaking Changes ⚠️

  • Deprecated APIs removed: APIs marked as deprecated in v1.x have been removed.
  • Server API removed: Server-related code and support are no longer included.
  • Node.js version: Minimum supported version is now Node 20.
    • Upgrade your environment if using Node < 20.

Major Improvements

  • Dual CJS/ESM support: Added ESM (ECMAScript Modules) support alongside existing CommonJS.
    • Use import (ESM) or require (CJS) — both work.
    • ESM entry point: dist/esm/index.js (via "module" field in package.json).
  • Testing: Replaced ava with vitest for faster, modern testing.
  • Security: Fixed JWT expiry time handling.
    • Tokens now respect configured TTL consistently.

Other Changes

  • Telemetry: All telemetry/tracking code has been removed.
    • No data is collected by the package.

@MrRefactoring MrRefactoring force-pushed the develop branch 2 times, most recently from f52adc7 to c2fa892 Compare May 11, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant