13 Commits
Author SHA1 Message Date
Yi-Cyuan ChenandClaude Opus 5.5 3e1a92f2a4 ### Added
- ESM builds and package `exports`.

### Fixed
- Incorrect hash for strings with unpaired UTF-16 surrogates; they are now encoded as U+FFFD, the same as `TextEncoder`.
- Detect browsers with a `process` polyfill (e.g. BrowserFS) and Electron renderers as non-Node.js environments.

### Changed
- Replace Travis CI with GitHub Actions.
- Update dev dependencies and fix security issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:58:54 +08:00
Yi-Cyuan Chen 33acf62431 ### Added
- TypeScript interfaces. #6, #9
- HMAC feature.
- support for web worker. #14

### Fixed
- deprecated `new Buffer`, replace with `Buffer.from`. #10
- dependencies and security issues.
- refactor: simplify formatMessage internal logic.
- Generates incorrect hash in some cases.

### Changed
- remove `eval` and use `require` directly. #8
- throw error by Error oject.
- throw error if update after finalize
- use unsigned right shift.
2024-01-24 11:31:08 +08:00
dependabot[bot]andGitHub f0cbf4ba45 Bump minimist, mocha and nyc
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.4.1 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.4.1...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>
2023-03-01 10:02:24 +00:00
Yi-Cyuan Chen 65b3898c4e Fixed
- incorrect result when first bit is 1 of bytes.

Changed
- prevent webpack to require dependencies.
2017-12-21 20:13:31 +08:00
Yi-Cyuan Chen 4ee5af05d3 Fixed incorrect result when file size >= 512M. 2017-10-31 20:20:45 +08:00
Chen, Yi-Cyuan c724643de0 Fixed ArrayBuffer dosen't work in Webpack. 2016-12-30 09:56:58 +08:00
Chen, Yi-Cyuan 80d540792b Added
- update method.
- support Array output.
- support ArrayBuffer output.
- support AMD.
2016-12-05 17:00:43 +08:00
Chen Yi-Cyuan 731295e355 * Support ArrayBuffer input.
* Improve performance.
2015-03-04 21:16:06 +08:00
Chen Yi-Cyuan 72f01d0043 * Support byte array input.
* Remove ascii parameter.
* Improve performance.
* Add test cases.
2015-02-16 22:09:23 +08:00
emn178 c8da6f6851 * Add bower package.
* Fixed JSHint warnings.
* Add travis.
* Add coveralls.
2015-01-07 15:26:09 +08:00
Chen Yi-Cyuan 7c0300fae5 Fixed accents bug 2014-07-27 19:32:42 +08:00
Chen Yi-Cyuan 8b60638f50 add license 2014-01-05 12:58:01 +08:00
Chen Yi-Cyuan bcc167c953 support node.js 2014-01-04 16:47:04 +08:00