Preparation for v2
The release contains bugfixes and a few improvements which pave the way for upcoming v2.0.
- Modules are now available with
.jsextension- 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.
sha256becamesha2(which already existed for several releases)sha512becamesha2_assertbecameutilsblake2bbecameblake2blake2sbecameblake2ripemd160becamelegacy(to signify its low security level 2^80)sha1becamelegacy
Full Changelog: 1.7.2...1.8.0