unstale

npm / @metamask/utils

@metamask/utils

What changed in @metamask/utils 11 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.

3 breaking7 new APIs and options1 behavior and defaults1 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

@metamask/utils 124 changes

Breaking changes 3

  • The package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.

    12.0.0release notes

  • The package is now ESM-only; CommonJS projects can use require(esm) in Node.js 22+ or dynamic imports in older Node.js versions.

    12.0.0release notes

  • Support for Node 18 and 20 has been dropped.

    12.0.0release notes

Behavior and default changes 1

  • The deprecated method now returns LegacyTxData rather than TxData; the shapes are the same, so implementations do not need changing.

    12.0.0release notes

@metamask/utils 118 changes

New APIs and options 7

  • Converts a mnemonic string into little-endian Uint16 wordlist indices encoded as a Uint8Array.

    11.12.0release notes

  • Adds an optimized sha384 utility function.

    11.12.0release notes

  • Adds an optimized sha512 utility function.

    11.12.0release notes

  • Converts little-endian Uint16 English BIP-39 wordlist indices into a mnemonic string.

    11.12.0release notes

  • Adds the Stellar CAIP namespace.

    11.11.0release notes

  • Adds a utility for converting unknown values to error.

    11.10.0release notes

  • Adds the sha256 utility function for use by developers.

    11.9.0release notes

Fixes and other changes 1

  • Fixed ESM compatibility for the BIP-39 mnemonic utilities.

    11.12.1release notes