Preparation for v2
The release contains bugfixes and a few improvements which pave the way for upcoming v2.0.
- Modules are now available with
.js
extension- Old:
@noble/hashes/sha2
- New:
@noble/hashes/sha2.js
- Old path is still available
- This simplifies working in browsers natively without transpilers
- Old:
- 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.
sha256
becamesha2
(which already existed for several releases)sha512
becamesha2
_assert
becameutils
blake2b
becameblake2
blake2s
becameblake2
ripemd160
becamelegacy
(to signify its low security level 2^80)sha1
becamelegacy
Full Changelog: 1.7.2...1.8.0