aa48cfd6e5
Bump brace-expansion ( #59 )
...
Bumps and [brace-expansion](https://github.com/juliangruber/brace-expansion ). These dependencies needed to be updated together.
Updates `brace-expansion` from 1.1.16 to 1.1.21
- [Release notes](https://github.com/juliangruber/brace-expansion/releases )
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.16...v1.1.21 )
Updates `brace-expansion` from 2.0.1 to 2.1.7
- [Release notes](https://github.com/juliangruber/brace-expansion/releases )
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.16...v1.1.21 )
---
updated-dependencies:
- dependency-name: brace-expansion
dependency-version: 1.1.21
dependency-type: indirect
- dependency-name: brace-expansion
dependency-version: 2.1.7
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-17 10:31:48 +08:00
499f0c03c6
Bump js-yaml from 4.3.0 to 4.3.2 ( #58 )
...
Bumps [js-yaml](https://github.com/nodeca/js-yaml ) from 4.3.0 to 4.3.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md )
- [Commits](https://github.com/nodeca/js-yaml/compare/4.3.0...4.3.2 )
---
updated-dependencies:
- dependency-name: js-yaml
dependency-version: 4.3.2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-17 10:31:34 +08:00
4bf5e94764
Bump picomatch from 2.3.1 to 2.3.2 ( #56 )
...
Bumps [picomatch](https://github.com/micromatch/picomatch ) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/micromatch/picomatch/releases )
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2 )
---
updated-dependencies:
- dependency-name: picomatch
dependency-version: 2.3.2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-17 10:31:21 +08:00
Yi-Cyuan Chen and Claude Opus 5.5
91494a72ab
### 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 >
2026-11-17 10:22:20 +08:00
Yi-Cyuan Chen
a6d0f636aa
### Added
...
- Add dedicated ESM, CommonJS, Node.js, and browser distribution entry points.
- Add streaming support to the native Node.js SHA-256, SHA-224, and HMAC implementations.
- Add distribution contract tests and real browser Web Worker tests with Playwright.
- Add Node.js 16, 18, 20, 22, and 24 runtime tests against the packed npm artifact.
### Changed
- Refactor the implementation into environment-independent core and Node.js modules.
- Use the native Node.js `crypto` implementation for hashing and HMAC.
- Load the package version automatically when generating distribution banners.
- Export unminified ESM source directly and build only CommonJS and browser/minified distributions.
- Replace `expect.js`, NYC, Tiny Worker, and UglifyJS with Node.js assert, c8, Playwright, and Rollup/Terser.
- Build automatically before `npm pack` and `npm publish`.
- Throw error if update after finalize
### Removed
- Remove runtime CommonJS, AMD, Node.js, Web Worker, and ArrayBuffer environment switches from the core implementation.
- Remove legacy environment flags and obsolete compatibility polyfills.
- Remove the old generated `sha256.mjs` and `sha256.node.mjs` entry points.
2026-07-27 14:30:34 +08:00
Yi-Cyuan Chen
b766562f6a
upgrade js-yaml
2026-07-18 18:52:05 +08:00
Yi-Cyuan Chen
1b03e6b2b6
- support ESM
2026-07-18 17:41:55 +08:00
Yi-Cyuan Chen
7912494a5a
bump version
2025-05-24 15:48:47 +08:00
1aa1c17124
Bump serialize-javascript and mocha ( #50 )
...
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript ) to 6.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha ). These dependencies need to be updated together.
Updates `serialize-javascript` from 6.0.0 to 6.0.2
- [Release notes](https://github.com/yahoo/serialize-javascript/releases )
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.0...v6.0.2 )
Updates `mocha` from 10.2.0 to 10.8.2
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.8.2 )
---
updated-dependencies:
- dependency-name: serialize-javascript
dependency-version: 6.0.2
dependency-type: indirect
- dependency-name: mocha
dependency-version: 10.8.2
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-24 15:45:59 +08:00
bdc011392b
Bump braces from 3.0.2 to 3.0.3 ( #45 )
...
Bumps [braces](https://github.com/micromatch/braces ) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md )
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3 )
---
updated-dependencies:
- dependency-name: braces
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-24 15:42:15 +08:00
Yi-Cyuan Chen
dbb7a10027
### Fixed
...
- Generates incorrect hash in some cases #43
- dependencies and security issues. #41
2024-01-24 09:43:24 +08:00
250566e984
Bump @babel/traverse from 7.21.2 to 7.23.2 ( #41 )
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.21.2 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-24 09:41:33 +08:00
Yi-Cyuan Chen
c31830ad54
## v0.10.1 / 2023-08-31
...
### Added
- Disable webpack polyfill.
2023-08-31 09:44:37 +08:00
Yi-Cyuan Chen
bb8ae3a623
## v0.10.0 / 2023-08-30
...
### Fixed
- Chrome bug by workaround. #40
- deprecated `new Buffer`, replace with `Buffer.from`. #34
- dependencies and security issues. #32 , #36
### Changed
- TypeScript interface, secretKey can be bytes like message. #23 , #25
- remove `eval` and use `require` directly. #18 , #26
2023-08-30 22:58:30 +08:00
16b101f040
Bump minimist, mocha and nyc ( #36 )
...
Removes [minimist](https://github.com/minimistjs/minimist ). It's no longer used after updating ancestor dependencies [minimist](https://github.com/minimistjs/minimist ), [mocha](https://github.com/mochajs/mocha ) and [nyc](https://github.com/istanbuljs/nyc ). These dependencies need to be updated together.
Removes `minimist`
Updates `mocha` from 2.3.4 to 10.2.0
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/2.3.4...v10.2.0 )
Updates `nyc` from 11.3.0 to 15.1.0
- [Release notes](https://github.com/istanbuljs/nyc/releases )
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/istanbuljs/nyc/compare/v11.3.0...v15.1.0 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
- dependency-name: mocha
dependency-type: direct:development
- dependency-name: nyc
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-27 15:02:58 +08:00
Yi-Cyuan Chen
3204c3743e
update coverage library
2017-11-19 16:36:30 +08:00
Yi-Cyuan Chen
4e5354859f
Added
...
- support for web worker.
- typescript types. #10
Changed
- prevent webpack to require dependencies.
2017-11-19 15:15:13 +08:00
Yi-Cyuan Chen
77efe9529c
Fixed incorrect result when file size >= 512M.
2017-10-31 19:53:15 +08:00