Files
js-sha3/CHANGELOG.md
T
Yi-Cyuan ChenandClaude Opus 5.5 9c5eb82a0d ### 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>
2026-11-18 13:32:01 +08:00

4.2 KiB

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)

v0.14.0 / 2026-11-08

Fixed

  • Wrong digest for strings whose last UTF-8 character crosses a block boundary #62

Changed

  • Update vulnerable transitive dev dependencies (brace-expansion, js-yaml, glob, minimatch, serialize-javascript)

v0.13.0 / 2026-08-07

Added

  • ParallelHash128, ParallelHash256, ParallelHashXOF128, and ParallelHashXOF256 (NIST SP 800-185)
  • GitHub Actions CI across Node.js 18, 20, 22, and 24 against the packed npm artifact
  • GitHub Actions publish workflow on release with npm trusted publishing
  • prepack script to build distributions before npm pack / npm publish

Changed

  • Replace Travis CI with GitHub Actions
  • Update README badges to GitHub Actions, npm, and jsDelivr
  • Upgrade mocha and pin vulnerable transitive dependencies via npm overrides

v0.12.0 / 2026-07-18

Added

  • KMACXOF128 and KMACXOF256 (NIST SP 800-185)

v0.11.0 / 2026-07-18

Added

  • TupleHash128, TupleHash256, TupleHashXOF128, and TupleHashXOF256 (NIST SP 800-185)

Fixed

  • KMAC repeated output reads after finalize

v0.10.0 / 2026-07-17

Added

  • support ESM #42, #38
  • types index.d.ts to package.json #32

v0.9.3 / 2023-12-16

Fixed

  • Fix error in arrayBuffer when there are extra bytes #37
  • fixed output if finalized.

v0.9.2 / 2023-09-16

Fixed

  • don't modify global Array and ArrayBuffer prototypes. #33
  • refactor: simplify formatMessage internal logic. #34

v0.9.1 / 2023-08-31

Fixed

  • cSHAKE empty Array bug. #24

v0.9.0 / 2023-08-30

Fixed

  • cSHAKE bug. #24
  • dependencies and security issues.

v0.8.0 / 2018-08-05

Added

  • TypeScript definitions.

Changed

  • throw error if update after finalize

v0.7.0 / 2017-12-01

Added

  • AMD support.
  • support for web worker. #13

Changed

  • throw error if input type is incorrect when cSHAKE and KMAC.
  • freeze hash after finalize.

v0.6.1 / 2017-07-03

Fixed

  • Typo on variable kmac_256 type definition. #12

v0.6.0 / 2017-06-15

Added

  • cSHAKE method.
  • KMAC method.
  • alias methods without underscore like shake128, keccak512.

Changed

  • throw error if input type is incorrect.

v0.5.7 / 2016-12-30

Fixed

  • ArrayBuffer detection in old browsers.

v0.5.6 / 2016-12-29

Fixed

  • ArrayBuffer dosen't work in Webpack.

v0.5.5 / 2016-09-26

Added

  • TypeScript support.
  • ArrayBuffer method.

Deprecated

  • Buffer method.

v0.5.4 / 2016-09-12

Fixed

  • CommonJS detection.

v0.5.3 / 2016-09-08

Added

  • Some missing files to npm package.

v0.5.2 / 2016-06-06

Fixed

  • Shake output incorrect in the special length.

v0.5.1 / 2015-10-27

Fixed

  • Version in package.json and bower.json.

v0.5.0 / 2015-09-23

Added

  • Hash object with create/update interface.

v0.4.1 / 2015-09-18

Added

  • Integer array output.

Fixed

  • Shake output incorrect when it's greater than 1088.

v0.4.0 / 2015-09-17

Added

  • ArrayBuffer output.
  • Shake alogirthms.

v0.3.1 / 2015-05-22

Fixed

  • Some bugs.

v0.3.0 / 2015-05-21

Added

  • Integer array input.
  • ArrayBuffer input.

v0.2.0 / 2015-04-04

Added

  • NIST's May 2014 SHA-3 version.

Changed

  • Rename original methods to keccak.

v0.1.2 / 2015-02-27

Changed

  • Improve performance.

v0.1.1 / 2015-02-26

Changed

  • Improve performance.

v0.1.0 / 2015-02-23

Added

  • First version implementation.