50 Commits
Author SHA1 Message Date
Yi-Cyuan Chen 9a54fb31d4 update README 2026-07-27 14:50:56 +08:00
Yi-Cyuan Chen 1559263f5b update README 2026-07-27 14:44:03 +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 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 6755b755cc fix recognize environment is node when use browserfs #53 2026-07-18 18:01:00 +08:00
Yi-Cyuan Chen 62d740ca61 Merge branch 'master' of https://github.com/emn178/js-sha256 2026-07-18 17:49:40 +08:00
Yi-Cyuan Chen aee5ce367e Fix uploading coverage to coveralls 2026-07-18 17:45:41 +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
Yi-Cyuan Chen 138e2e169b uncomment test 2024-01-24 12:07:37 +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
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 f490ee426a bump bower version 2023-08-30 23:34:49 +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 189bb9b037 Fixed
- incorrect result when first bit is 1 of bytes.

Changed
- throw error by Error oject. #13

Added
- TypeScript interfaces. #12
2017-12-18 20:03:12 +08:00
Yi-Cyuan Chen 68ffecdc6e update README and travis config 2017-11-19 16:41:14 +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 cf975dfa0c Improved performance of hBytes increment. 2017-10-31 20:33:20 +08:00
Yi-Cyuan Chen 77efe9529c Fixed incorrect result when file size >= 512M. 2017-10-31 19:53:15 +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 b3e7b83e39 update CHANGELOG 2017-01-24 13:52:20 +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
emn178andGitHub 3c278a9dde Merge pull request #5 from nolsherry/patch-1
Add CDNJS version badge in readme
2016-10-20 10:33:10 +08:00
Chen Yi-Cyuan 0a82ff3825 Added CommonJS detection. 2016-09-12 20:40:43 +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
emn178 18457729c8 Improve performance. 2015-02-10 12:00:39 +08:00
emn178 90136f7a05 update js 2015-02-06 10:07:46 +08:00
Chen Yi-Cyuan 009d7b6070 * Fixed special length bug.
* Add test cases.
2015-02-05 21:39:44 +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
emn178 64149617be Improve performance. 2015-01-09 16:18:03 +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 1581e8dce4 Fixed accents bug 2014-07-27 19:54:56 +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 1489a8aa03 update license 2014-01-05 12:11:58 +08:00
Chen Yi-Cyuan dec43b48e9 add license 2014-01-05 12:11:10 +08:00
Chen Yi-Cyuan eabadfd94d add build js 2014-01-05 11:04:01 +08:00
Chen Yi-Cyuan 1034e9d69e create project 2014-01-05 11:01:00 +08:00