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
On this page
Latest version 2.0.0, released November 25, 2025. Source repository
Its 2.0.0 release requires Node.js 20 or later. Node.js end of life dates.
iron-webcrypto 2.0.0 breaking changes
- Removed
Node.js versions below v20 are no longer supported. Upgrade Node.js to v20 or later. github.com - Removed
The base64 and buffer helper functions were internal and are no longer meant for public use. Use uint8array-extras for them. github.com - Removed
base64urlDecode
base64urlDecode was removed in iron-webcrypto 2.0.0 npmjs.com - Removed
base64urlEncode
base64urlEncode was removed in iron-webcrypto 2.0.0 npmjs.com - Removed
bufferToString
bufferToString was removed in iron-webcrypto 2.0.0 npmjs.com - Removed
GenerateKeyOptions.hmac
GenerateKeyOptions.hmac was removed in iron-webcrypto 2.0.0 npmjs.com - Removed
RawPassword
RawPassword was removed in iron-webcrypto 2.0.0 npmjs.com - Removed
stringToBuffer
stringToBuffer was removed in iron-webcrypto 2.0.0 npmjs.com - Behavior changed
The package no longer ships CommonJS. Import it with ESM syntax. redirect.github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
GenerateKeyOptions.algorithm
Was algorithm: Algorithm; now algorithm: Algorithm$1. npmjs.com - Signature changed
GenerateKeyOptions.iv
Was iv?: Uint8Array | undefined; now iv?: Uint8Array<ArrayBuffer> | undefined. npmjs.com - Signature changed
HMacResult
Was interface HMacResult; now type HMacResult = HmacResult. npmjs.com - 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 - 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 - Signature changed
Key.iv
Was iv: Uint8Array; now iv: Algorithm$1 extends EncryptionAlgorithm ? Uint8Array<ArrayBuffer> : undefined. npmjs.com - Signature changed
password.Hash
Was type Hash = Record<string, Password | Secret | Specific>; now type Hash = Readonly<{[id: string]: Password | Secret | Specific;}>. npmjs.com - Signature changed
password.Secret
Was interface Secret; now type Secret = Readonly<{id?: string | undefined; secret: Password;}>. npmjs.com - Signature changed
password.Specific
Was interface Specific; now type Specific = Readonly<{id?: string | undefined; encryption: Password; integrity: Password;}>. npmjs.com - Signature changed
randomBits
Was const randomBits: (_crypto: _Crypto, bits: number) => Uint8Array; now function randomBits(bits: number): Uint8Array<ArrayBuffer>. npmjs.com - Signature changed
seal
seal no longer takes a crypto argument as its first parameter; it uses the global crypto. Remove that argument. npmjs.com - 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 - 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 - Signature changed
SealOptionsSub.algorithm
Was algorithm: Algorithm; now algorithm: Algorithm$1. npmjs.com - Signature changed
unseal
unseal no longer takes a crypto argument as its first parameter; it uses the global crypto. Remove that argument. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.