unstale

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

@unstale/cli 0.2.9 on npm

@peculiar/webcrypto 210 changes

Breaking changes 10

  • Deep imports into build/ remain blocked by package exports.

    2.0.0release notes

  • Generated declarations replace the hand-written index.d.ts; Crypto now shows its webcrypto-core base class.

    2.0.0release notes

  • The unbundled ES module build/index.js replaces the previous bundled outputs as the package entry point.

    2.0.0release notes

  • @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.

    2.0.0release notes

  • TypeScript projects compiling to CommonJS need module set to node20 or nodenext.

    2.0.0release notes

  • The minimum supported Node.js version is now ^20.19.0 || >=22.12.0, up from >=14.18.0.

    2.0.0release notes

  • @peculiar/asn1-schema ^3.0.0 is now a peer dependency; a conflicting major fails at install, and applications need one shared copy.

    2.0.0release notes

  • @peculiar/json-schema ^3.0.0 is now a peer dependency; a conflicting major fails at install, and applications need one shared copy.

    2.0.0release notes

  • The react-native package field is removed.

    2.0.0release notes

  • 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.

    2.0.0release notes

@peculiar/webcrypto 11 changes

Fixes and other changes 1