Releases: paulmillr/noble-hashes
Releases · paulmillr/noble-hashes
1.8.0
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
1.7.2
- legacy: new module, with md5 hash
- sha1: move to
legacy
, keep old alias until major release - utils: randomBytes should ensure Uint8Array output for old node.js versions
- utils: use built-in Uint8Array toHex / fromHex when available. Gives 13x speed-up on 256b arrays, 20x speed-up on 32kb arrays
- Typescript source can now be used without compilation in node.js v24, due to erasableSyntaxOnly
Full Changelog: 1.7.1...1.7.2
1.7.1
- Implement blake1 (sha3 proposal)
- Use typescript verbatimModuleSyntax to support future node.js type stripping
- Improve documentation
Full Changelog: 1.7.0...1.7.1
1.7.0
- The package is now available on JSR.
- Use isolatedDeclarations typescript option, which massively simplifies documentation auto-gen, and more
- Check out JSR page for one example
- Add tons of comments everywhere to improve autocompletion, LLM code gen, and basic code understanding.
- Remove some exports from internal
_assert
New Contributors
- @quentinadam made their first contribution in #103
Full Changelog: 1.6.1...1.7.0
1.6.1
- Fix argon2 initialization
- pkg.json: include d.ts.map
Full Changelog: 1.6.0...1.6.1
1.6.0
- Add support for 4GB+ arrays on supported platforms
- argon2: Harden, make it stable
- utils: Improve isBytes speed
- Improve compatibility with parsers & minifiers
New Contributors
- @mahnunchik made their first contribution in #102
Full Changelog: 1.5.0...1.6.0
1.5.0
- Scrypt: relax params check to allow
r: 1, p: 8
- Export additional typescript types
- Add support for node.js v14.21.3 in addition to v16+
- Export sha224, sha384, sha512_224, sha512_256 in single-file build
New Contributors
- @quixoten made their first contribution in #89
- @legobeat made their first contribution in #94
- @iAchilles made their first contribution in #92
- @sreyemnayr made their first contribution in #99
Full Changelog: 1.4.0...1.5.0
1.4.0
- Add support for big endian platforms by @jonathan-albrecht-ibm in #81
- Use XOF constructor wrapper for cShake by @stknob in #82
- Rename _sha2 to _md
- utils, _assert: reduce code duplication
- tsconfig: change module to Node16
Full Changelog: 1.3.3...1.4.0
1.3.3
- Add module
sha2
, an alias to already-existingsha256
andsha512
sha3-addons
: Implement TurboSHAKE (https://eprint.iacr.org/2023/342)utils
improvementshexToBytes
: speed-up 6x, improve error formattingisBytes
: improve reliability in bad environments such as jsdomconcatBytes
: improve safety by early-checking the type
- Bump typescript version used to build the package to 5.3.2
Full Changelog: 1.3.2...1.3.3
1.3.2
- Tree shaking improvements:
- annotate top-level incovations as pure
- use const enums
- decrease wildcard imports of
_assert
and_u64
- declare package side-effects free
- argon2: fix checks for parallelism and iterations parameters
- utils: fix isPlainObject in serverless environments, used in scrypt and pbkdf2
- typescript: Disable moduleResolution config setting, since it is viral
New Contributors
- @jeetiss made their first contribution in #65
- @Systemcluster made their first contribution in #69
Full Changelog: 1.3.1...1.3.2