Skip to content

chore(deps): bump otplib from 12.0.1 to 13.5.0 in /backend - #276

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/otplib-13.4.1
Closed

chore(deps): bump otplib from 12.0.1 to 13.5.0 in /backend#276
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backend/otplib-13.4.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor

Bumps otplib from 12.0.1 to 13.5.0.

Release notes

Sourced from otplib's releases.

v13.5.0

What's Changed

Full Changelog: yeojz/otplib@v13.4.1...v13.5.0


Important behaviour change in this bugfix release.

[!NOTE] This is a bugfix release but has potentially breaking behaviour for library users passing invalid inputs (which is more likely in non-TypeScript or loosely-typed environments).

This release (#874) makes hash algorithm validation consistent and strict across all crypto plugins. Previously, an unrecognised algorithm string was handled differently by each plugin:

input noble node web
'SHA1' silently computed SHA-512 worked (OpenSSL alias tolerance) threw a raw TypeError
'totally-bogus' silently computed SHA-512 threw threw

All three now reject anything outside sha1/sha256/sha512 (case-insensitive, single-separator aliases like SHA-1 or sha_256 accepted) by throwing the new AlgorithmUnsupportedError, instead of silently substituting a different digest.

A library dependents passing a correctly-spelled algorithm name ('sha1', 'SHA1', 'sha-256', etc.) sees no change other than clearer, stricter errors on genuinely invalid input. In TypeScript-strict environments this is mostly moot as algorithm is typed as 'sha1' | 'sha256' | 'sha512', so a hardcoded typo like 'SHA1' won't compile. It can still surface if the value comes from outside the type system (e.g. JSON.parse, process.env, or an as HashAlgorithm cast).

If you were relying on noble's old silent fallback to SHA-512 for a misspelled or unrecognised algorithm string, tokens generated/verified that way will stop matching after upgrading with no error on the old side, just tokens that quietly stop verifying.

To recover

  • Change algorithm to sha512,
  • or re-enroll the affected accounts.

See "Existing enrollments stopped verifying after an upgrade" for details.

v13.4.1

What's Changed

... (truncated)

Commits
  • 97069d8 release(packages): v13.5.0 (#881)
  • 44d0dfc chore(deps-dev): migrate to TypeScript 6.0.3 (#879)
  • 6b991f5 fix: reject unknown hash algorithms instead of silently substituting (#874)
  • 1d997b0 release(packages): v13.4.1 (#854)
  • 0e9566f docs(otplib): note 16-byte minimum and fix broken secret-handling link (#851)
  • e01b4f1 chore(deps-dev): bump the dev-dependencies-patch group across 1 directory wit...
  • 212534b chore(deps-dev): bump the dev-dependencies-minor group with 4 updates (#828)
  • b54adad refactor(testing): rename test secret constants for semantic clarity (#832)
  • 4898252 refactor(testing): centralize test secrets and normalize naming (#831)
  • e5490bb release(packages): v13.4.0 (#819)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for otplib since your current version.


@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Aug 24, 2026
@dependabot @github

dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: backend. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Bumps [otplib](https://github.com/yeojz/otplib/tree/HEAD/packages/otplib) from 12.0.1 to 13.5.0.
- [Release notes](https://github.com/yeojz/otplib/releases)
- [Commits](https://github.com/yeojz/otplib/commits/v13.5.0/packages/otplib)

---
updated-dependencies:
- dependency-name: otplib
  dependency-version: 13.4.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump otplib from 12.0.1 to 13.4.1 in /backend chore(deps): bump otplib from 12.0.1 to 13.5.0 in /backend Aug 24, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/backend/otplib-13.4.1 branch from 4c18ecc to 83815f9 Compare August 24, 2026 17:33
@dependabot @github

dependabot Bot commented on behalf of github Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #296.

@dependabot dependabot Bot closed this Aug 31, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/backend/otplib-13.4.1 branch August 31, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants