# What changed in @peculiar/webcrypto

> 11 changes in @peculiar/webcrypto 1 to 2 from its official release notes, upgrade guides and advisories: 10 breaking. Each one cited. Sources checked 2026-10-28. HTML: https://unstale.sh/npm/@peculiar/webcrypto/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @peculiar/webcrypto 2

### Breaking changes

- Deep imports into build/ remain blocked by package exports. (2.0.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- Generated declarations replace the hand-written index.d.ts; Crypto now shows its webcrypto-core base class. (2.0.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- The unbundled ES module build/index.js replaces the previous bundled outputs as the package entry point. (2.0.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- @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.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- TypeScript projects compiling to CommonJS need module set to node20 or nodenext. (2.0.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- The minimum supported Node.js version is now ^20.19.0 || >=22.12.0, up from >=14.18.0. (2.0.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- @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.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- @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.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- The react-native package field is removed. (2.0.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)
- 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.0) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v2.0.0)

## @peculiar/webcrypto 1

### Fixes and other changes

- AES, DES, and HMAC JWKs export alg again. (1.7.2) — [release notes](https://github.com/PeculiarVentures/webcrypto/releases/tag/v1.7.2)
