Yi-Cyuan Chen
9a54fb31d4
update README
v1.0.0
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
v0.12.0
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
36d8fc4609
fix recognize environment is node when use browserfs ( #53 )
...
Co-authored-by: zerenzhang <zerenzhang@trip.com >
2026-07-18 17:49:24 +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
Matthew Peveler and GitHub
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 Peveler and GitHub
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
7912494a5a
bump version
v0.11.1
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
Matthew Peveler and GitHub
a1d21024aa
Fix NodeJS check for electron renderer ( #49 )
...
Signed-off-by: Matthew Peveler <mpeveler@timescale.com >
2025-05-24 15:42:00 +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
v0.11.0
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
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.
v0.10.1
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
v0.10.0
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
189bb9b037
Fixed
...
- incorrect result when first bit is 1 of bytes.
Changed
- throw error by Error oject. #13
Added
- TypeScript interfaces. #12
v0.9.0
2017-12-18 20:03:12 +08:00
Oleg and emn178
e35c679c2b
Throw Errors to improve error reporting ( #13 )
2017-12-13 20:49:51 +08:00
shiyuesong and emn178
bf155ab82f
Added "hmac" to interface Hash. ( #12 )
2017-12-13 20:49:21 +08:00
Yi-Cyuan Chen
68ffecdc6e
update README and travis config
v0.8.0
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.
v0.7.1
2017-10-31 20:33:20 +08:00
Yi-Cyuan Chen
77efe9529c
Fixed incorrect result when file size >= 512M.
v0.7.0
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.
v0.6.0
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
v0.5.0
2017-01-24 13:47:26 +08:00
Chen, Yi-Cyuan
730f41e84b
1. Added AMD support.
...
2. Fixed ArrayBuffer dosen't work in Webpack.
v0.4.0
2017-01-23 11:08:27 +08:00
emn178 and GitHub
3c278a9dde
Merge pull request #5 from nolsherry/patch-1
...
Add CDNJS version badge in readme
2016-10-20 10:33:10 +08:00
Sherry Chang and GitHub
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
0a82ff3825
Added CommonJS detection.
v0.3.2
2016-09-12 20:40:43 +08:00
Chen, Yi-Cyuan
61d4076633
* Added some files to npm package.
...
* Updated coding style.
v0.3.1
2016-09-08 10:23:01 +08:00
Chen Yi-Cyuan
1ff17fbdd9
Support ArrayBuffer input.
v0.3.0
2015-05-23 10:06:36 +08:00
Chen Yi-Cyuan
f73267ad15
Support byte array input
v0.2.3
2015-02-12 21:45:00 +08:00
emn178
18457729c8
Improve performance.
v0.2.2
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.
v0.2.1
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
v0.1.4
2015-01-24 11:13:55 +08:00
Chen Yi-Cyuan
5df847f0e0
Improve performance.
2015-01-24 10:47:09 +08:00