- Incorrect hash for `DataView` input, and for `Int8Array` with negative values in browsers.
- Throws `ArrayBuffer is not defined` in browsers without `ArrayBuffer`.
### 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>
- ESM builds and package `exports`.
### Fixed
- Incorrect hash for strings with unpaired UTF-16 surrogates; they are now encoded as U+FFFD, the same as `TextEncoder`.
- Detect browsers with a `process` polyfill (e.g. BrowserFS) and Electron renderers as non-Node.js environments.
### Changed
- Replace Travis CI with GitHub Actions.
- Update dev dependencies and fix security issues.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>