6 Commits
Author SHA1 Message Date
Yi-Cyuan ChenandClaude Opus 5.5 66db5dbd99 ### Fixed
- Incorrect hash for `DataView` input.
- 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>
2026-11-18 13:31:55 +08:00
Yi-Cyuan ChenandClaude Opus 5.5 68b5c32442 ### Fixed
- Unpaired UTF-16 surrogates produce wrong digests and consume the next code unit in the JS path. Unpaired surrogates are now encoded as U+FFFD, matching `TextEncoder` and Node.js `crypto`. #57

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:37:59 +08:00
Yi-Cyuan Chen ee1c332b60 fixed ci 2026-07-20 14:44:06 +08:00
Yi-Cyuan Chen 114d18e574 ### Changed
- web worker detection. #44
2026-07-20 11:07:48 +08:00
Yi-Cyuan Chen b02f0d93f3 ### Added
- Modern and lite builds generated from the same source.
- support ESM.
- Set up GitHub release action / provenance

### Fixed
- Fix uploading coverage to coveralls
- fix recognize environment is node when use browserfs
2026-07-20 10:19:42 +08:00
Yi-Cyuan Chen bdf1150097 ## v0.8.0 / 2023-09-27
### Added
- TypeScript interfaces.
- HMAC feature.

### Fixed
- deprecated `new Buffer`, replace with `Buffer.from`.
- dependencies and security issues.
- don't modify global Array and ArrayBuffer prototypes.
- refactor: simplify formatMessage internal logic.

### Changed
- remove `eval` and use `require` directly.
- throw error by Error oject.
- throw error if update after finalize
- use unsigned right shift.
2023-09-27 21:35:56 +08:00