npm / js-sha256
js-sha256
What changed in js-sha256 0.12 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
5 breaking2 new APIs and options2 tooling1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjs-sha256 19 changes
Breaking changes 5
Updating after finalization now throws an error.
Legacy environment flags and obsolete compatibility polyfills are removed.
Runtime CommonJS, AMD, Node.js, Web Worker, and ArrayBuffer environment switches are removed from the core implementation.
The old generated sha256.mjs entry point is removed.
The old generated sha256.node.mjs entry point is removed.
New APIs and options 2
Dedicated ESM, CommonJS, Node.js, and browser distribution entry points are available.
Native Node.js SHA-256, SHA-224, and HMAC implementations support streaming.
Tooling 2
The package builds automatically before npm pack.
The package builds automatically before npm publish.
js-sha256 0.121 changes
Fixes and other changes 1
Fixes recognizing the environment as Node.js when using browserfs.