Repository navigation
Added
- ESM builds and package
exports. ArrayBufferViewinput and byte HMAC keys in TypeScript interfaces.
Fixed
- Incorrect hash for strings with unpaired UTF-16 surrogates, in both messages and HMAC keys; they are now encoded as U+FFFD, the same as
TextEncoder. - Incorrect hash for
ArrayBufferviews other thanUint8Array, such asInt8Arraywith negative values,DataViewandUint16Array; their underlying bytes are now hashed. clonereturns an incorrect hash when a multi-byte character crosses a block boundary.- Throws
global is not definedin browsers with aprocesspolyfill (e.g. BrowserFS) and Electron renderers. - Throws
ArrayBuffer is not definedin browsers withoutArrayBuffer.
Changed
- Replace Travis CI with GitHub Actions.
- Update dev dependencies and fix security issues.
Full Changelog: v0.9.0...v0.10.0