@noble/hashes
2.4.0 · 27 Aug 2026MIT155.8M / weekRepositoryHomepagenpmAtom feed
In short
7 deprecated3 changed
- 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
Release note
Preparation for v2
The release contains bugfixes and a few improvements which pave the way for upcoming v2.0.
Modules are now available with
.jsextensionOld:
@noble/hashes/sha2New:
@noble/hashes/sha2.jsOld path is still available
This simplifies working in browsers natively without transpilers
Refactor core functionality, remove duplicate code
Decrease package size
Deprecations
In v2, some modules will be removed. For example, sha256 will become sha2. In v1.8, the old names still exist, but are marked as deprecated, to simplify upgrade path.
One of the reasons for moving those was the fact sha384 resided in sha512, sha224 in sha256 - which was confusing. New naming scheme simplifies reasoning and decreases amount of modules.
- 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
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.