Changelog
All notable changes to AuthLite.
[0.1.3] — 2026-06-15
Fixed
- Widened
better-sqlite3version range to^11.0.0 || ^12.0.0so npm can use v12 when available, which ships prebuilt binaries for newer Node.js versions and avoids native compilation failures on systems without C++ build tools. - Added
enginesfield (node >= 18.0.0) to all three packages so package managers warn users before attempting an install on unsupported Node.js versions. - Updated documentation with a Prerequisites section listing Node.js 18+ requirement and better-sqlite3 compatibility notes.
[0.1.2] — 2026-06-12
Fixed
- NextJS adapter cookie name now reads from
AuthLiteconfig instead of using a hardcoded value. - Cookie maxAge now derived from
sessionExpiryDaysconfig instead of a hardcoded 30 days. - Password hash no longer leaked via public API responses. A new
SafeUsertype (user withoutpasswordHash) is returned fromsignUp(),signIn(), andvalidateSession(). - signOut error propagation in NextJS adapter — if the database operation fails, the error is now returned before the cookie is cleared, preventing orphaned sessions.
- Token hashing switched from SHA-256 concatenation to HMAC-SHA256 for session tokens.
- Dead dependencies removed:
nanoidandcookiefrom@xyzintel/authlite-core,cookiefrom@xyzintel/authlite-nextjs.
Added
getCookieName(),getSessionExpiryDays(), andgetSessionMaxAge()methods onAuthLitefor framework helpers to sync config.SafeUsertype exported from@xyzintel/authlite-core.- Expired session validation test.
- Documentation website with local search and copy-page feature.
Changed
- Package names corrected in README to match published scope (
@xyzintel/authlite-*). - Expanded API reference documentation for all packages.
[0.1.1] — 2026-06-11
Added
- Initial release of AuthLite.
@xyzintel/authlite-core: Argon2id password hashing, HMAC-SHA256 session tokens, database-agnostic adapter interface.@xyzintel/authlite-sqlite: SQLite adapter usingbetter-sqlite3with automatic schema creation.@xyzintel/authlite-nextjs: Next.js App Router integration with cookie-based session management.- Vitest test suite for core engine.
