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@metamask/utils 124 changes
Breaking changes 3
The package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.
The package is now ESM-only; CommonJS projects can use require(esm) in Node.js 22+ or dynamic imports in older Node.js versions.
Support for Node 18 and 20 has been dropped.
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.
@metamask/utils 118 changes
New APIs and options 7
Converts a mnemonic string into little-endian Uint16 wordlist indices encoded as a Uint8Array.
Adds an optimized sha384 utility function.
Adds an optimized sha512 utility function.
Converts little-endian Uint16 English BIP-39 wordlist indices into a mnemonic string.
Adds the Stellar CAIP namespace.
Adds a utility for converting unknown values to error.
Adds the sha256 utility function for use by developers.
Fixes and other changes 1
Fixed ESM compatibility for the BIP-39 mnemonic utilities.