npm / @peculiar/webcrypto
@peculiar/webcrypto
What changed in @peculiar/webcrypto 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
10 breaking1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@peculiar/webcrypto 210 changes
Breaking changes 10
Deep imports into build/ remain blocked by package exports.
Generated declarations replace the hand-written index.d.ts; Crypto now shows its webcrypto-core base class.
The unbundled ES module build/index.js replaces the previous bundled outputs as the package entry point.
@peculiar/webcrypto is ESM-only; CommonJS require works through require(esm) on supported Node.js versions, but not on Node.js 22.0–22.11.
TypeScript projects compiling to CommonJS need module set to node20 or nodenext.
The minimum supported Node.js version is now ^20.19.0 || >=22.12.0, up from >=14.18.0.
@peculiar/asn1-schema ^3.0.0 is now a peer dependency; a conflicting major fails at install, and applications need one shared copy.
@peculiar/json-schema ^3.0.0 is now a peer dependency; a conflicting major fails at install, and applications need one shared copy.
The react-native package field is removed.
webcrypto-core ^2.0.0 is now a peer dependency; a conflicting major fails at install, and applications need one shared copy for compatible CryptoKey classes.
@peculiar/webcrypto 11 changes
Fixes and other changes 1
AES, DES, and HMAC JWKs export alg again.