---
title: "iron-webcrypto 2.0.0 Breaking Changes on npm | Since.dev"
description: "What each iron-webcrypto release removed, renamed or changed: 31 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/iron-webcrypto
last_updated: 2026-12-04
---

# iron-webcrypto breaking changes

iron-webcrypto 2.0.0 (November 25, 2025) is its newest release with breaking changes, 31 of them. The first: iron-webcrypto 2.0.0 requires Node.js 20 or later. Every breaking API change we have recorded in iron-webcrypto on npm: 31 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.0.0`, released November 25, 2025. [Source repository](https://github.com/brc-dd/iron-webcrypto)

Its 2.0.0 release requires [Node.js 20](https://since.dev/calendar/nodejs/20.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## iron-webcrypto 2.0.0 breaking changes

iron-webcrypto 2.0.0, released November 25, 2025: 31 breaking changes.

- **Removed**  

Node.js versions below v20 are no longer supported. Upgrade Node.js to v20 or later. [github.com](https://github.com/brc-dd/iron-webcrypto/releases/tag/v2.0.0)
- **Removed**  

The base64 and buffer helper functions were internal and are no longer meant for public use. Use uint8array-extras for them. [github.com](https://github.com/brc-dd/iron-webcrypto/releases/tag/v2.0.0)
- **Removed** `base64urlDecode`  

base64urlDecode was removed in iron-webcrypto 2.0.0 [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Removed** `base64urlEncode`  

base64urlEncode was removed in iron-webcrypto 2.0.0 [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Removed** `bufferToString`  

bufferToString was removed in iron-webcrypto 2.0.0 [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Removed** `GenerateKeyOptions.hmac`  

GenerateKeyOptions.hmac was removed in iron-webcrypto 2.0.0 [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Removed** `RawPassword`  

RawPassword was removed in iron-webcrypto 2.0.0 [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Removed** `stringToBuffer`  

stringToBuffer was removed in iron-webcrypto 2.0.0 [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Behavior changed**  

The package no longer ships CommonJS. Import it with ESM syntax. [redirect.github.com](https://redirect.github.com/brc-dd/iron-webcrypto)
- **Behavior changed** `Iron.defaults`  

The default encoder throws on data that cannot round-trip through JSON, such as circular references, BigInt or NaN. To keep the old behavior, pass encode: JSON.stringify. [redirect.github.com](https://redirect.github.com/brc-dd/iron-webcrypto)
- **Signature changed** `algorithms`  

Was const algorithms: {readonly 'aes-128-ctr': {readonly keyBits: 128; readonly ivBits: 128; readonly name: "AES-CTR";}; readonly 'aes-256-cbc': {readonly keyBits: 256; readonly ivBits: 128; readonly name: "AES-CBC";}; readonly sha256... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `clone`  

Was const clone: (options: SealOptions) => SealOptions; now function clone(options: SealOptions): Mutable\<SealOptions> & {encryption: Mutable\<SealOptions\['encryption'\]>; integrity: Mutable\<SealOptions\['integrity'\]>;}. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `decrypt`  

Was const decrypt: (\_crypto: \_Crypto, password: Password, options: GenerateKeyOptions\<EncryptionAlgorithm>, data: Uint8Array | string) => Promise\<string>; now function decrypt(password: Password, options... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `encrypt`  

Was const encrypt: (\_crypto: \_Crypto, password: Password, options: GenerateKeyOptions\<EncryptionAlgorithm>, data: string) => Promise<{encrypted: Uint8Array; key: Key;}>; now function encrypt(password: Password, options... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `generateKey`  

Was const generateKey: (\_crypto: \_Crypto, password: Password, options: GenerateKeyOptions) => Promise\<Key>; now function generateKey(password: Password, options: GenerateKeyOptions\<EncryptionAlgorithm>): Promise\<Key\<EncryptionAlgorithm>>... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `GenerateKeyOptions`  

Was type GenerateKeyOptions\<Algorithm extends \_Algorithm = \_Algorithm> = Pick\<SealOptionsSub\<Algorithm>, 'algorithm' | 'iterations' | 'minPasswordlength'> & {saltBits?: number | undefined; salt?: string | undefined; iv?: Uint8Array |... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `GenerateKeyOptions.algorithm`  

Was algorithm: Algorithm; now algorithm: Algorithm$1. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `GenerateKeyOptions.iv`  

Was iv?: Uint8Array | undefined; now iv?: Uint8Array\<ArrayBuffer> | undefined. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `HMacResult`  

Was interface HMacResult; now type HMacResult = HmacResult. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `hmacWithPassword`  

Was const hmacWithPassword: (\_crypto: \_Crypto, password: Password, options: GenerateKeyOptions\<IntegrityAlgorithm>, data: string) => Promise\<HMacResult>; now function hmacWithPassword(password: Password, options... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `Key`  

Was interface Key; now type Key\<Algorithm$1 extends \_Algorithm = \_Algorithm> = Readonly<{key: CryptoKey; salt: string; iv: Algorithm$1 extends EncryptionAlgorithm ? Uint8Array\<ArrayBuffer> : undefined;}>. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `Key.iv`  

Was iv: Uint8Array; now iv: Algorithm$1 extends EncryptionAlgorithm ? Uint8Array\<ArrayBuffer> : undefined. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `password.Hash`  

Was type Hash = Record\<string, Password | Secret | Specific>; now type Hash = Readonly<{\[id: string\]: Password | Secret | Specific;}>. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `password.Secret`  

Was interface Secret; now type Secret = Readonly<{id?: string | undefined; secret: Password;}>. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `password.Specific`  

Was interface Specific; now type Specific = Readonly<{id?: string | undefined; encryption: Password; integrity: Password;}>. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `randomBits`  

Was const randomBits: (\_crypto: \_Crypto, bits: number) => Uint8Array; now function randomBits(bits: number): Uint8Array\<ArrayBuffer>. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `seal`  

seal no longer takes a crypto argument as its first parameter; it uses the global crypto. Remove that argument. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `SealOptions`  

Was interface SealOptions; now type SealOptions = Readonly<{encryption: SealOptionsSub\<EncryptionAlgorithm>; integrity: SealOptionsSub\<IntegrityAlgorithm>; ttl: number; timestampSkewSec: number; localtimeOffsetMsec: number; encode?: (data... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `SealOptionsSub`  

Was interface SealOptionsSub\<Algorithm extends \_Algorithm = \_Algorithm>; now type SealOptionsSub\<Algorithm$1 extends \_Algorithm = \_Algorithm> = Readonly<{saltBits: number; algorithm: Algorithm$1; iterations: number; minPasswordlength... [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `SealOptionsSub.algorithm`  

Was algorithm: Algorithm; now algorithm: Algorithm$1. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)
- **Signature changed** `unseal`  

unseal no longer takes a crypto argument as its first parameter; it uses the global crypto. Remove that argument. [npmjs.com](https://www.npmjs.com/package/iron-webcrypto/v/2.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
