npm otplib 10.0.0
v10.0.0

latest releases: 12.0.1, 12.0.0, 12.0.0-3...
5 years ago

(BEHVAIOUR CHANGE): otplib/core now exports ONLY the class instances. If you need to use the classes directly, you can still retrieve it via the instances. eg: otplib.authenticator.Authenticator, otplib.hotp.HOTP, otplib.totp.TOTP.
See: https://github.com/yeojz/otplib/wiki/Upgrading-to-v10#otplibcore-default-exports

tl;dr

  • TypeScript support introduced
  • Module exports update
  • Helpers to calculate remaining time before new tokens are needed
  • CircleCI builds migrated from 1.0 to 2.0

Commits

Features

  • add helper to find next tick countdown (b2e9a19)
  • standardise obj exports (0151b52)
  • build optimisation (80b2505)
  • initial typescript definitions (96a3f20)
  • migrate to circleci 2 (c0c4507)

Bug Fixes

  • epoch expectations and scripts (bc3f717)
  • typescript install and optional dep (8ecf157)
  • added missing npmrc for publishing (5034875)
  • update typings for ts next (24416cd)

Don't miss a new otplib release

NewReleases is sending notifications on new releases.