6 Commits
Author SHA1 Message Date
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 7de3689e3c update ci.yml 2026-07-18 18:24:34 +08:00
Yi-Cyuan Chen 03f78b8bb0 Set up GitHub release action / provenance #46 2026-07-18 18:14:15 +08:00
Yi-Cyuan Chen aee5ce367e Fix uploading coverage to coveralls 2026-07-18 17:45:41 +08:00
Matthew PevelerandGitHub da84f28777 Fix uploading coverage to coveralls (#52)
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2026-07-18 17:40:42 +08:00
Matthew PevelerandGitHub bacba8e8c6 Replace TravisCI with GHA (#51)
* Replace TravisCI with GHA

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>

* Update ci.yml

* Update ci.yml

---------

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
2025-05-29 08:51:04 +08:00