mirror of
https://github.com/emn178/js-sha3.git
synced 2026-11-19 00:48:47 +08:00
### Fixed
- Incorrect hash for `DataView` input, and for `Int8Array` with negative values. - Throws `ArrayBuffer is not defined` in browsers without `ArrayBuffer`. - Throws `global is not defined` in browsers with a `process` polyfill (e.g. BrowserFS) and Electron renderers. ### Changed - Multi-byte typed arrays such as `Uint16Array`, `Uint32Array` and `Float32Array` are now hashed by their underlying bytes, the same as Node.js `crypto` and Web Crypto. Previously each element was treated as one byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
290d679fbd
commit
9c5eb82a0d
@@ -1,5 +1,14 @@
|
||||
# Change Log
|
||||
|
||||
## v0.16.0 / 2026-11-18
|
||||
### Fixed
|
||||
- Incorrect hash for `DataView` input, and for `Int8Array` with negative values.
|
||||
- Throws `ArrayBuffer is not defined` in browsers without `ArrayBuffer`.
|
||||
- Throws `global is not defined` in browsers with a `process` polyfill (e.g. BrowserFS) and Electron renderers.
|
||||
|
||||
### Changed
|
||||
- Multi-byte typed arrays such as `Uint16Array`, `Uint32Array` and `Float32Array` are now hashed by their underlying bytes, the same as Node.js `crypto` and Web Crypto. Previously each element was treated as one byte.
|
||||
|
||||
## v0.15.0 / 2026-11-16
|
||||
### Fixed
|
||||
- Unpaired UTF-16 surrogates in string input produced wrong digests and consumed the following code unit. They are now encoded as U+FFFD, matching `TextEncoder` and Node.js `crypto` (also applies to cSHAKE/KMAC function names, customization strings, and keys, TupleHash, and ParallelHash)
|
||||
|
||||
Reference in New Issue
Block a user