Skip to content

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 ​

2.0.4 (2024-10-06) ​

Bug Fixes ​

2.0.3 (2024-10-06) ​

Bug Fixes ​

2.0.2 (2024-10-06) ​

Chores ​
Continuous Integration ​
Bug Fixes ​

2.0.1 (2024-09-16) ​

2.0.0 (2024-09-16) ​

Chores ​
New Features ​

1.1.2 (2022-02-17) ​

Chores ​
New Features ​

1.1.1 (2022-02-11) ​

Documentation Changes ​

1.1.0 (2022-02-11) ​

Chores ​
Documentation Changes ​
Bug Fixes ​

1.0.12 (2021-07-25) ​

Chores ​
Continuous Integration ​
Documentation Changes ​

1.0.9 (2021-06-22) ​

Chores ​
Documentation Changes ​
  • ✏️ set docs for using generate otp (114ac238)
New Features ​
Bug Fixes ​
Tests ​

Personal use is free. Commercial use requires a license.