Skip to content

chore(deps): bump @otplib/totp from 13.4.1 to 13.5.0 - #3352

Merged
svienot merged 1 commit into
mainfrom
dependabot/npm_and_yarn/otplib/totp-13.5.0
Aug 28, 2026
Merged

chore(deps): bump @otplib/totp from 13.4.1 to 13.5.0#3352
svienot merged 1 commit into
mainfrom
dependabot/npm_and_yarn/otplib/totp-13.5.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps @otplib/totp from 13.4.1 to 13.5.0.

Release notes

Sourced from @​otplib/totp'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.

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)
  • f7e3bbf test: mutation-testing audit — close test gaps, add Stryker tooling + manual ...
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 26, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner August 26, 2026 18:45
@dependabot
dependabot Bot requested a review from jbair06 August 26, 2026 18:45
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 26, 2026
@swirlds-automation

swirlds-automation commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/otplib/totp-13.5.0 branch 2 times, most recently from 34acc7e to b73852e Compare August 27, 2026 09:28
Bumps [@otplib/totp](https://github.com/yeojz/otplib/tree/HEAD/packages/totp) from 13.4.1 to 13.5.0.
- [Release notes](https://github.com/yeojz/otplib/releases)
- [Commits](https://github.com/yeojz/otplib/commits/v13.5.0/packages/totp)

---
updated-dependencies:
- dependency-name: "@otplib/totp"
  dependency-version: 13.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/otplib/totp-13.5.0 branch from b73852e to 566af43 Compare August 27, 2026 16:37
@svienot
svienot merged commit 8db429d into main Aug 28, 2026
26 of 27 checks passed
@svienot
svienot deleted the dependabot/npm_and_yarn/otplib/totp-13.5.0 branch August 28, 2026 13:03
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 javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants