Skip to content

fix(deps): update dependency @noble/hashes to v2 - #10594

Open
metamask-ci[bot] wants to merge 2 commits into
mainfrom
renovate/major-paulmillr-noble-hashes
Open

metamask-ci[bot] wants to merge 2 commits into
mainfrom
renovate/major-paulmillr-noble-hashes

Conversation

@metamask-ci

@metamask-ci metamask-ci Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@noble/hashes (source) ^1.8.0 → ^2.4.0 age confidence

Release Notes

paulmillr/noble-hashes (@​noble/hashes)

v2.4.0

Compare Source

Security and correctness
  • Protect passed options against mutation / pollution
  • keccakprg: fail until entropy is added
  • webcrypto: reject output sizes which crashed engine
  • blake3: fix tree merging for multi-terabyte streams
  • Improve zeroization
Misc
  • Speed-up Argon2 by 20%
  • Argon2 cost options are now optional. The defaults are t: 3, m: 1024 ** 2 KiB (1 GiB), p: 1, dkLen: 32, and a 1 GiB maxmem limit; larger-memory calls must set maxmem explicitly.
  • Corrected scrypt's default maxmem to work for N: 2 ** 20, r: 8, and p: 1
  • nextTick and asyncLoop now yield through scheduler.yield() when available or setTimeout otherwise, allowing timers, I/O, and rendering to progress. They also accept optional rejection cleanup; async Argon2, PBKDF2, and scrypt use it to wipe work state if scheduling is aborted.

v2.3.0

Compare Source

Performance
  • Improved 32-byte input performance across all hashes by 10–45%.
  • Improved SHA-3 and SHAKE by 40%, one-megabyte KangarooTwelve, MarsupilamiFourteen, and TurboSHAKE by 50%, and KMAC by 20%.
  • Improved Argon2 performance by 2.2×.
  • Improved PBKDF2 and HKDF performance by 20%.
Other changes
  • Added better error messages and stricter type checks throughout the package.
  • Fixed HMAC._cloneInto so it preserves canXOF in issue #​134, reported by @​ChALkeR, and corrected an Argon2d typo in issue #​135.
  • Renamed blake2.compress to the internal _compress method.
  • Reduced unpacked on-disk size from 869 KB to 665 KB by disabling less-relevant source maps.

v2.2.0

Compare Source

  • March 2026 self-audit (all files): no major issues found.
    • Audited for specification compliance and security.
    • Fixed dkLen=0 handling in pbkdf2, blake2, turboshake, and kt.
    • Fixed parallelHash with blockLen=0.
    • Made the argon2 progress callback reach 100%.
    • Changed digestInto to return no value for better performance.
    • Added support for non-four-divisible dkLen values in argon2 and blake2.
  • Fixed all byte-array types for compatibility with both TypeScript 5.6 and TypeScript 5.9+.
    • TypeScript 5.6 uses Uint8Array, while TypeScript 5.9+ made it generic as Uint8Array<ArrayBuffer>.
    • This previously caused incompatibilities and errors such as TS2345.
    • See TypeScript issue #​62240 for more context.
  • Sped up SHA-3 by as much as 50%, contributed by @​ChALkeR in pull request #​126.
  • Fixed compilation issues on TypeScript 6.
  • Added big-endian support; all tests pass on s390x.
  • Improved tree-shaking and reduced bundle sizes.
  • Added extensive documentation throughout the package.
  • Skipped version 2.1 to align with the other noble packages.

v2.0.1

Compare Source

  • Required the .js extension for all module imports.
    • Old: @noble/hashes/sha3.
    • New: @noble/hashes/sha3.js.
    • This simplifies native browser use without transpilers.
    • The change was planned for 2.0.0 but accidentally omitted.
  • Declared exported submodules in package.json to support TypeScript autocompletion.
  • Fixed the scrypt maxmem error message, contributed by @​ChALkeR in pull request #​121.
  • Sped up scrypt by 4%, contributed by @​ChALkeR in pull request #​122.

v2.0.0

Compare Source

High-level changes
  • Made the package ESM-only. ESM can be loaded from CommonJS on Node.js 20.19 and later.
    • Node.js 20.19 is now the minimum required version.
    • Package imports now work correctly in bundler-free environments such as browsers.
    • Reduced npm package download size from 152 KB to 136 KB.
    • Reduced unpacked on-disk size from 1.1 MB to 669 KB.
  • Reduced bundle sizes compared with version 1.
  • Required the .js extension for all module imports.
    • Old: @noble/hashes/sha3.
    • New: @noble/hashes/sha3.js.
    • This simplifies native browser use without transpilers.
API changes
  • Restricted hash inputs to Uint8Array and prohibited string inputs.
    • Strict validation improves security.
    • Use utils.utf8ToBytes to reproduce the previous behavior.
  • Renamed or removed modules for consistency.
    • sha256 and sha512 → sha2.js.
    • blake2b and blake2s → blake2.js.
    • ripemd160, sha1, and md5 → legacy.js.
    • _assert → utils.js.
    • Removed the internal crypto module in favor of built-in WebCrypto.
  • Improved TypeScript types and option autocompletion.
  • Upgraded the TypeScript compilation environment to TypeScript 5.9 and ES2022.
  • Made error messages substantially more descriptive.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@metamask-ci
metamask-ci Bot requested review from a team as code owners September 30, 2026 06:20
@metamask-ci
metamask-ci Bot deployed to default-branch September 30, 2026 06:20 Active
@metamask-ci
metamask-ci Bot deployed to dependabot September 30, 2026 06:20 Active
@socket-security

socket-security Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​noble/​hashes@​2.2.0 ⏵ 2.4.010010010084 -1100

View full report

@metamask-ci

metamask-ci Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@metamask-ci
metamask-ci Bot force-pushed the renovate/major-paulmillr-noble-hashes branch from dc8d8ed to 1940ec1 Compare October 7, 2026 14:53
@metamask-ci
metamask-ci Bot deployed to dependabot October 7, 2026 14:54 Active
@metamask-ci
metamask-ci Bot force-pushed the renovate/major-paulmillr-noble-hashes branch from afb39ec to 66ae304 Compare October 8, 2026 06:31
@metamask-ci
metamask-ci Bot deployed to dependabot October 8, 2026 06:31 Active
@metamask-ci
metamask-ci Bot force-pushed the renovate/major-paulmillr-noble-hashes branch from 1ad78d4 to 048e96c Compare October 8, 2026 20:11
@metamask-ci
metamask-ci Bot deployed to dependabot October 8, 2026 20:12 Active
@metamask-ci
metamask-ci Bot force-pushed the renovate/major-paulmillr-noble-hashes branch from 62951d1 to e7c4e6a Compare October 9, 2026 06:24
@metamask-ci
metamask-ci Bot deployed to dependabot October 9, 2026 06:24 Active

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e7c4e6a. Configure here.

Comment thread packages/profile-sync-controller/package.json
@metamask-ci
metamask-ci Bot force-pushed the renovate/major-paulmillr-noble-hashes branch from 3175168 to f1297f5 Compare October 9, 2026 13:04
@metamask-ci
metamask-ci Bot deployed to dependabot October 9, 2026 13:05 Active
@metamask-ci
metamask-ci Bot force-pushed the renovate/major-paulmillr-noble-hashes branch from bc8e158 to 64f6900 Compare October 10, 2026 06:23
@metamask-ci
metamask-ci Bot deployed to dependabot October 10, 2026 06:23 Active

This branch was successfully deployed

2 active (outdated) deployments
default-branch — 031ff2a7 Deployed Sep 30, 2026 by metamask-ci[bot] via Determine whether this PR is a release PR #4915
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants