Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
Unreleased
Fixed
- Retry temporary npm installation availability errors during release verification, without republishing.
4.0.0
Breaking changes
- Require Node.js 22 or later and enforce the documented OTP input validation.
- Correct fixed-width codes and malformed Base32 behavior; review noncanonical stored secrets before upgrading.
Added
- Return matched TOTP counters and signed drift with
verifyTOTPWithResult, preserving boolean verification.
Fixed
- Release usable CommonJS, native ESM, and declaration artifacts, verified through installed npm consumers.
- Decode and validate OTP secrets once per verification window.
- Check exact npm version existence before deciding whether to publish.
- Build runtime files automatically when installing or packing a source checkout.
- Select the correct TOTP counter at exact fractional-period boundaries.
- Preserve leading zeroes and the configured digit count in TOTP/HOTP output.
- Decode Base32 into complete bytes and validate padding, length, and unused bits.
- Validate OTP configuration, timestamps, safe counters, token shape, and bounded verification windows.
- Skip pre-epoch counters during TOTP verification; validate authenticator URI inputs and normalize secrets.
- Build to the published dist entry point and provide native ESM default imports and type declarations.
- Make lint check TypeScript files, commit a reproducible lockfile, and align package license metadata with LICENSE.md.
Documentation and release tooling
- Replace Docsify with VitePress guides, local search, API reference, migration and release documentation.
- Commit generated GitHub Pages output with the existing otp.js.org domain.
- Match encrypt-rsa's version-gated npm OIDC publication and exact-version registry verification.
- Test Node 22 and 24, packed package consumers, RFC vectors, and documentation navigation in CI.
3.0.1 (2026-01-31)
3.0.0 (2026-01-31)
2.0.7 (2025-05-21)
Bug Fixes
2.0.6 (2024-10-06)
2.0.5 (2024-10-06)
Bug Fixes
- package.json (b41a0aa7)
2.0.4 (2024-10-06)
Bug Fixes
- .npmignore (0e94b6af)
2.0.3 (2024-10-06)
Bug Fixes
- tsconfig (9a2d3cdc)
2.0.2 (2024-10-06)
Chores
- update deps (ab7c893c)
Continuous Integration
- resolve pipeline (5bfd0e1a)
Bug Fixes
2.0.1 (2024-09-16)
2.0.0 (2024-09-16)
Chores
- 🤖 update deps (dea5b978)
New Features
- 🎸 add domain (5c428bdc)
1.1.2 (2022-02-17)
Chores
- 🤖 update deps (dea5b978)
New Features
- 🎸 add domain (5c428bdc)
1.1.1 (2022-02-11)
Documentation Changes
- ✏️ update docs (25d13f1f)
1.1.0 (2022-02-11)
Chores
Documentation Changes
- ✏️ add docs (eb9bdee9)
Bug Fixes
- solve bug (87f07a53)
1.0.12 (2021-07-25)
Chores
- update deps and package (58427f30)
Continuous Integration
- update ci (9e7e03c4)
Documentation Changes
- update docs (eae6a46e)
1.0.9 (2021-06-22)
Chores
- installed cz-conventional-changelog (59c13fbe)
- 🤖 update version (0bb13599)
- 🤖 set husky for pre-commit and pre-push (d274aa10)
- 🤖 update package (1f3e2a4f)
- 🤖 update package (3e85df82)
- 🤖 update package json (8b903dad)
- 🤖 update version (858a8f73)
- 🤖 update version (251d36f1)
Documentation Changes
- ✏️ set docs for using generate otp (114ac238)
New Features
- 🎸 generate totp (6e8cd3b3)
Bug Fixes
Tests
- 💍 set more test cases (c8a7d795)