Commit Graph
25 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
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
Yi-Cyuan Chen dc41862e53 add benchmark 2023-09-26 09:35:36 +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
Yi-Cyuan Chen 68ffecdc6e update README and travis config 2017-11-19 16:41:14 +08:00
Chen, Yi-Cyuan ee3b3869bc 1. Added HMAC feature.
2. Changed throw error if input type is incorrect.
2017-07-11 11:31:02 +08:00
Chen, Yi-Cyuan bae387d0b2 Added streaming support #6 2017-01-24 13:47:26 +08:00
Chen, Yi-Cyuan 730f41e84b 1. Added AMD support.
2. Fixed ArrayBuffer dosen't work in Webpack.
2017-01-23 11:08:27 +08:00
Sherry ChangandGitHub 64c114b54e Add CDNJS version badge in readme
This will add the badge to show its version on CDNJS and also link to its page on CDNJS!
2016-10-19 19:57:11 +08:00
Chen, Yi-Cyuan 61d4076633 * Added some files to npm package.
* Updated coding style.
2016-09-08 10:23:01 +08:00
Chen Yi-Cyuan 1ff17fbdd9 Support ArrayBuffer input. 2015-05-23 10:06:36 +08:00
Chen Yi-Cyuan f73267ad15 Support byte array input 2015-02-12 21:45:00 +08:00
Chen Yi-Cyuan 8754ac17ef update README 2015-02-03 20:45:01 +08:00
emn178 c016df9256 * Remove ascii parameter.
* Improve performance.
* Add test cases.
2015-02-03 13:59:16 +08:00
Chen Yi-Cyuan f0ba196020 update README 2015-01-24 11:13:55 +08:00
Chen Yi-Cyuan 5df847f0e0 Improve performance. 2015-01-24 10:47:09 +08:00
emn178 a564472309 update README 2015-01-09 16:53:27 +08:00
Chen Yi-Cyuan b1999865de update README 2015-01-06 22:53:49 +08:00
Chen Yi-Cyuan 47cff7a93b * Add bower package.
* Fixed JSHint warnings.
* Add travis.
* Add coveralls.
2015-01-06 22:51:55 +08:00
Chen Yi-Cyuan 5e5f64e4b7 update README 2014-02-04 20:30:06 +08:00
Chen Yi-Cyuan b62a0093f4 update license link 2014-01-05 12:45:09 +08:00
Chen Yi-Cyuan baa14e7dd3 fixed typo 2014-01-05 12:14:43 +08:00
Chen Yi-Cyuan dec43b48e9 add license 2014-01-05 12:11:10 +08:00
Chen Yi-Cyuan 1034e9d69e create project 2014-01-05 11:01:00 +08:00