### Fixed

- Unpaired UTF-16 surrogates in string input (including HMAC keys) produced wrong digests and consumed the following code unit in the browser/core implementation. They are now encoded as U+FFFD, matching `TextEncoder` and the Node.js implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yi-Cyuan Chen
2026-11-17 10:22:20 +08:00
co-authored by Claude Opus 5.5
parent 9a54fb31d4
commit 91494a72ab
12 changed files with 97 additions and 29 deletions
+4
View File
@@ -1,5 +1,9 @@
# Change Log
## v1.0.1 / 2026-11-17
### Fixed
- Unpaired UTF-16 surrogates in string input (including HMAC keys) produced wrong digests and consumed the following code unit in the browser/core implementation. They are now encoded as U+FFFD, matching `TextEncoder` and the Node.js implementation.
## v1.0.0 / 2026-07-27
### Added
- Add dedicated ESM, CommonJS, Node.js, and browser distribution entry points.