@noble/hashes
2.4.0 · 27 Aug 2026MIT155.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @noble/hashes From 0.5.4 to 2.4.0
30 releases in betweennotes for 25
Reading releases, release notes and advisories…
- 9+
- changes to make
- 0
- advisories fixed
- 16+
- new
- 9+
- fixes
Counted from 25 of 30 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.7.0
- Breaking1.1.1
- Deprecated1.8.0
- Deprecated1.8.0
- Deprecated1.8.0
- Deprecated1.8.0
- Deprecated1.8.0
- Deprecated1.8.0
- Deprecated1.8.0
Security
- 2.4.0
Protect passed options against mutation / pollution
- 2.4.0
keccakprg: Fail until entropy is added
- 2.4.0
webcrypto: Reject output sizes which crashed engine
- 2.4.0
blake3: Fix tree merging for multi-terabyte streams
- 2.4.0
Improve zeroization
Release by release
- Security
Protect passed options against mutation / pollution
- Security
keccakprg: Fail until entropy is added
- Security
webcrypto: Reject output sizes which crashed engine
- Security
blake3: Fix tree merging for multi-terabyte streams
- Security
Improve zeroization
- Security
2.3.0nothing new or fixed in the note
- New
Add massive amounts of documentation everywhere
- Fixed
Fix all Byte Array types, to ensure proper work in both TypeScript 5.6 & TypeScript 5.9+
- Fixed
Fix compilation issues on TypeScript v6
- New
- Fixed
scrypt: Fix error message for maxmem check
- Fixed
2.0.0nothing new or fixed in the note
- Deprecated
sha256becamesha2(which already existed for several releases) - Deprecated
sha512becamesha2 - Deprecated
_assertbecameutils - Deprecated
blake2bbecameblake2 - Deprecated
blake2sbecameblake2 - Deprecated
ripemd160becamelegacy(to signify its low security level 2^80) - Deprecated
sha1becamelegacy
- Deprecated
- New
legacy: New module, with md5 hash
- New
- New
Implement blake1 (sha3 proposal)
- New
56 other lines we could not sort, mostly version bumps
- 2.3.0
+10-45% 32b inputs across all hashes
- 2.3.0
+40% SHA-3 / SHAKE, +50% 1mb KT128 / KT256 / TurboSHAKE, +20% kmac
- 2.3.0
2.2x argon
- 2.3.0
+20% pbkdf2 and hkdf
- 2.3.0
Better error messages and stricter type checks everywhere
- 2.3.0
blake2.compress renamed to _compress (marked internal).
- 2.3.0
Reduce on-disk unpacked size 869kb → 665kb (-204kb) by disabling source maps (they became less relevant).
- 2.2.0
March 2026 self-audit (all files): no major issues found
- 2.2.0
sha3: speed-up by up to 50%. Contributed
- 2.2.0
Make package Big Endian friendly. All tests pass on s390x
6 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.