@scure/base breaking changes
@scure/base 2.4.0 (August 28, 2026) is its newest release with breaking changes, 10 of them. The first: Behavior changed base32crockford.decode. Every breaking API change we have recorded in @scure/base on npm: 29 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.4.0, released August 28, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@scure/base 2.4.0 breaking changes
- Behavior changed
base32crockford.decode
base32crockford.decode now rejects non-ASCII input that only became valid through case folding. github.com - Behavior changed
base58
base58 now rejects inputs longer than 2048 bytes because of quadratic complexity. Callers with larger inputs must split or otherwise shorten them. github.com - Behavior changed
bech32.decode
bech32.decode now rejects input with non-printable-ASCII characters, including non-ASCII text that case folding used to normalize into valid strings. github.com - Behavior changed
bech32.decodeToBytes
bech32.decodeToBytes now rejects strings longer than 90 characters unless the limit option is set to false or a number. github.com - Behavior changed
bech32.encode
bech32.encode now throws on prefixes containing non-printable-ASCII characters, which it previously accepted. github.com - Behavior changed
bech32m.decode
bech32m.decode now rejects input with non-printable-ASCII characters, including non-ASCII text that case folding used to normalize into valid strings. github.com - Behavior changed
bech32m.decodeToBytes
bech32m.decodeToBytes now rejects strings longer than 90 characters unless the limit option is set to false or a number. github.com - Behavior changed
bech32m.encode
bech32m.encode now throws on prefixes containing non-printable-ASCII characters, which it previously accepted. github.com - Signature changed
__TESTS
Was const __TESTS: {alphabet: typeof alphabet; base64Fallback: BytesCoder; radix2: typeof radix2; radix58: typeof radix58; checksum: typeof checksum; utf8Fallback: BytesCoder; _isWellFormedShim: (str: string) => boolean;}; now const... npmjs.com - Signature changed
Bech32.decodeToBytes
Was decodeToBytes(str: string): Bech32DecodedWithArray; now decodeToBytes(str: string, limit?: number | false): Bech32DecodedWithArray. npmjs.com
@scure/base 2.3.0 breaking changes
- Removed
bytes
The internal bytes export, an alias of stringToBytes, was removed. Code that imported it must stop using it. npmjs.com - Removed
bytesToString
The internal bytesToString export was removed. Code that imported it must stop using it; the coders such as base16 and base64 are unaffected. npmjs.com - Removed
SomeCoders
The internal SomeCoders type was removed. Code that referenced it must stop using it. npmjs.com - Removed
str
The internal str export, an alias of bytesToString, was removed. Code that imported it must stop using it. npmjs.com - Removed
stringToBytes
The internal stringToBytes export was removed. Code that imported it must stop using it. npmjs.com - Removed
utils
The internal utils export was removed. Code that imported it must stop using it; the coders such as base16 and base64 are unaffected. npmjs.com - Behavior changed
Type checks are stricter and error messages changed, so inputs that were previously accepted may now be rejected. github.com - Signature changed
__TESTS
Was const __TESTS: {utf8Fallback: BytesCoder; _isWellFormedShim: (str: string) => boolean;}; now const __TESTS: {alphabet: typeof alphabet; base64Fallback: BytesCoder; radix2: typeof radix2; radix58: typeof radix58; checksum: typeof... npmjs.com
@scure/base 2.2.0 breaking changes
- Behavior changed
utf8
The utf8 decoder now rejects malformed input instead of decoding it leniently. Code that relies on invalid byte sequences being accepted must handle the stricter behavior. github.com - Signature changed
base58check
Was const base58check: (sha256: (data: Uint8Array) => Uint8Array) => BytesCoder; now const base58check: (sha256: TArg<BytesFn>) => BytesCoder. npmjs.com - Signature changed
bech32
Was const bech32: Bech32; now const bech32: TRet<Bech32>. npmjs.com - Signature changed
bech32m
Was const bech32m: Bech32; now const bech32m: TRet<Bech32>. npmjs.com - Signature changed
bytes
Was const bytes: (type: CoderType, str: string) => Uint8Array; now const bytes: (type: CoderType, str: string) => TRet<Uint8Array>. npmjs.com - Signature changed
bytesToString
Was const bytesToString: (type: CoderType, bytes: Uint8Array) => string; now const bytesToString: (type: CoderType, bytes: TArg<Uint8Array>) => string. npmjs.com - Signature changed
createBase58check
Was const createBase58check: (sha256: (data: Uint8Array) => Uint8Array) => BytesCoder; now const createBase58check: (sha256: TArg<BytesFn>) => BytesCoder. npmjs.com - Signature changed
str
Was const str: (type: CoderType, bytes: Uint8Array) => string; now const str: (type: CoderType, bytes: TArg<Uint8Array>) => string. npmjs.com - Signature changed
stringToBytes
Was const stringToBytes: (type: CoderType, str: string) => Uint8Array; now const stringToBytes: (type: CoderType, str: string) => TRet<Uint8Array>. npmjs.com
@scure/base 2.0.0 breaking changes
- Removed
Node v20.19 is now the minimum required version, so older Node.js runtimes are no longer supported. github.com - Behavior changed
The package no longer ships CommonJS builds, so code loading it with require must switch to ESM import. github.com
Related packages
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.