All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- BREAKING: Migrated from
tsdxtotsupfor faster builds and better TypeScript support - Updated build output format:
- CJS:
dist/index.cjs(wasdist/index.js) - ESM:
dist/index.mjs(wasdist/authorizer-react.esm.js) - Types:
dist/index.d.ts
- CJS:
- Added modern
exportsfield in package.json for better module resolution
- BREAKING: Updated
@authorizerdev/authorizer-jsfrom^2.0.3to3.0.0-rc.1 - Updated React from
^18.2.0to^18.3.1(dev dependency) - Updated TypeScript from
^5.2.2to^5.7.2 - Updated Storybook from
^8.2.7to8.4.0(pinned versions) - Updated all other dev dependencies to latest stable versions
- BREAKING: Minimum Node.js version increased from
>=10to>=18
- BREAKING: Updated type imports to match authorizer-js v3:
SignupInput→SignUpRequestLoginInput→LoginRequestVerifyOtpInput→VerifyOTPRequestMagicLinkLoginInput→MagicLinkLoginRequest
- Fixed token type handling to use full
AuthResponseinstead of partial objects - Added null safety checks for
expires_infield
- Removed unused React imports (using new JSX transform)
- Updated all components to use modern React patterns
- Fixed TypeScript strict mode compliance
- Improved type safety throughout the codebase
- Added
type-checkscript for TypeScript validation - Improved ESLint configuration with React and TypeScript support
- Better error handling and type safety
- Faster build times with tsup (esbuild-based)
- Better tree-shaking and code splitting
- Improved source maps
- Modern module resolution with package.json exports
If you're upgrading from v1.x:
-
Update your imports (if using types directly):
// Old import { SignupInput, LoginInput } from '@authorizerdev/authorizer-js'; // New import { SignUpRequest, LoginRequest } from '@authorizerdev/authorizer-js';
-
Ensure Node.js >= 18 is installed
-
Rebuild your project after updating the package
- Build output file names changed (CJS/ESM)
- Type names updated to match authorizer-js v3
- Minimum Node.js version is now 18+
- Some internal APIs may have changed
Previous stable release before major v2.0.0 update.