unstale

npm / @scure/base

@scure/base

What changed in @scure/base 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

11 breaking3 new APIs and options3 performance2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@scure/base 219 changes

Breaking changes 11

  • Rejects non-ASCII input that becomes valid only through case folding.

    2.4.0release notes

  • Inputs are limited to 2048 bytes because of quadratic complexity.

    2.4.0release notes

  • Inputs are limited to 2048 bytes because of quadratic complexity.

    2.4.0release notes

  • Rejects non-printable-ASCII input instead of allowing case folding to normalize it into a valid string.

    2.4.0release notes

  • Enforces the 90-character BIP-173 length limit by default; pass false or a number to override.

    2.4.0release notes

  • Rejects non-printable-ASCII prefixes.

    2.4.0release notes

  • Rejects non-printable-ASCII input instead of allowing case folding to normalize it into a valid string.

    2.4.0release notes

  • Enforces the 90-character BIP-173 length limit by default; pass false or a number to override.

    2.4.0release notes

  • Rejects non-printable-ASCII prefixes.

    2.4.0release notes

  • Error messages are improved and type checks are stricter.

    2.3.0release notes

  • The UTF-8 decoder is now strict and uses isWellFormed, which is polyfilled in some environments.

    2.2.0release notes

New APIs and options 3

  • Adds a base36 coder for lowercase alphanumeric encoding with the multibase k payload used by IPFS/IPNS addresses.

    2.4.0release notes

  • An overload allows Bech32.decode to handle arbitrary string input.

    2.2.0release notes

  • A strict ASCII decoder is added for character codes in the range 0..127.

    2.2.0release notes

Performance 3

  • Encoding and decoding algorithms are substantially faster, including base64, base32, base16, bech32 toWords, and base58 decode.

    2.3.0release notes

  • Source maps are disabled, reducing the on-disk package size.

    2.3.0release notes

  • Tree-shaking is improved to reduce bundle sizes.

    2.2.0release notes

Fixes and other changes 2

  • Compilation issues on TypeScript v6 are fixed.

    2.2.0release notes

  • Byte array types now work with TypeScript 5.6 and TypeScript 5.9+, avoiding incompatibilities and errors such as TS2345.

    2.2.0release notes