---
title: "@scure/base 2.4.0 Breaking Changes on npm | Since.dev"
description: "What each @scure/base release removed, renamed or changed: 29 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@scure/base
last_updated: 2026-12-04
---

# @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

Latest version `2.4.0`, released August 28, 2026. [Source repository](https://github.com/paulmillr/scure-base)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [2.4.0](#v-2-4-0): 27 breaking changes in 3 versions.

## @scure/base 2.4.0 breaking changes

@scure/base 2.4.0, released August 28, 2026: 10 breaking changes.

- **Behavior changed** `base32crockford.decode`  

base32crockford.decode now rejects non-ASCII input that only became valid through case folding. [github.com](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **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](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **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](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **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](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **Behavior changed** `bech32.encode`  

bech32.encode now throws on prefixes containing non-printable-ASCII characters, which it previously accepted. [github.com](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **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](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **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](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **Behavior changed** `bech32m.encode`  

bech32m.encode now throws on prefixes containing non-printable-ASCII characters, which it previously accepted. [github.com](https://github.com/paulmillr/scure-base/releases/tag/2.4.0)
- **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](https://www.npmjs.com/package/@scure/base/v/2.4.0)
- **Signature changed** `Bech32.decodeToBytes`  

Was decodeToBytes(str: string): Bech32DecodedWithArray; now decodeToBytes(str: string, limit?: number | false): Bech32DecodedWithArray. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.4.0)

## @scure/base 2.3.0 breaking changes

@scure/base 2.3.0, released August 8, 2026: 8 breaking changes.

- **Removed** `bytes`  

The internal bytes export, an alias of stringToBytes, was removed. Code that imported it must stop using it. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.3.0)
- **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](https://www.npmjs.com/package/@scure/base/v/2.3.0)
- **Removed** `SomeCoders`  

The internal SomeCoders type was removed. Code that referenced it must stop using it. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.3.0)
- **Removed** `str`  

The internal str export, an alias of bytesToString, was removed. Code that imported it must stop using it. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.3.0)
- **Removed** `stringToBytes`  

The internal stringToBytes export was removed. Code that imported it must stop using it. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.3.0)
- **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](https://www.npmjs.com/package/@scure/base/v/2.3.0)
- **Behavior changed**  

Type checks are stricter and error messages changed, so inputs that were previously accepted may now be rejected. [github.com](https://github.com/paulmillr/scure-base/releases/tag/2.3.0)
- **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](https://www.npmjs.com/package/@scure/base/v/2.3.0)

## @scure/base 2.2.0 breaking changes

@scure/base 2.2.0, released April 21, 2026: 9 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](https://github.com/paulmillr/scure-base/releases/tag/2.2.0)
- **Signature changed** `base58check`  

Was const base58check: (sha256: (data: Uint8Array) => Uint8Array) => BytesCoder; now const base58check: (sha256: TArg\<BytesFn>) => BytesCoder. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)
- **Signature changed** `bech32`  

Was const bech32: Bech32; now const bech32: TRet\<Bech32>. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)
- **Signature changed** `bech32m`  

Was const bech32m: Bech32; now const bech32m: TRet\<Bech32>. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)
- **Signature changed** `bytes`  

Was const bytes: (type: CoderType, str: string) => Uint8Array; now const bytes: (type: CoderType, str: string) => TRet\<Uint8Array>. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)
- **Signature changed** `bytesToString`  

Was const bytesToString: (type: CoderType, bytes: Uint8Array) => string; now const bytesToString: (type: CoderType, bytes: TArg\<Uint8Array>) => string. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)
- **Signature changed** `createBase58check`  

Was const createBase58check: (sha256: (data: Uint8Array) => Uint8Array) => BytesCoder; now const createBase58check: (sha256: TArg\<BytesFn>) => BytesCoder. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)
- **Signature changed** `str`  

Was const str: (type: CoderType, bytes: Uint8Array) => string; now const str: (type: CoderType, bytes: TArg\<Uint8Array>) => string. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)
- **Signature changed** `stringToBytes`  

Was const stringToBytes: (type: CoderType, str: string) => Uint8Array; now const stringToBytes: (type: CoderType, str: string) => TRet\<Uint8Array>. [npmjs.com](https://www.npmjs.com/package/@scure/base/v/2.2.0)

## @scure/base 2.0.0 breaking changes

@scure/base 2.0.0, released August 25, 2025: 2 breaking changes.

- **Removed**  

Node v20.19 is now the minimum required version, so older Node.js runtimes are no longer supported. [github.com](https://github.com/paulmillr/scure-base/releases/tag/2.0.0)
- **Behavior changed**  

The package no longer ships CommonJS builds, so code loading it with require must switch to ESM import. [github.com](https://github.com/paulmillr/scure-base/releases/tag/2.0.0)

## Related packages

- [@scure/bip32](https://since.dev/packages/npm/@scure/bip32.md)
- [@scure/bip39](https://since.dev/packages/npm/@scure/bip39.md)

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