Skip to content
This repository was archived by the owner on Sep 11, 2026. It is now read-only.

Releases: MetaMask/utils

12.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Sep 16:06
94b19fb

Changed

  • BREAKING: Bump TypeScript target to ES2022 (#333)
    • This package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.
  • BREAKING: Drop support for Node 18 and 20 (#328)
  • BREAKING: Drop CommonJS support (#9536)
    • This package is now ESM-only, but can still be used in CommonJS projects via require(esm) in modern Node.js versions (22+), or dynamic imports in older Node.js versions.
  • Bump @ethereumjs/tx from ^4.2.0 to ^5.4.0 (#321)
    • The deprecated Keyring.signTransaction now returns LegacyTxData rather than TxData. These describe the same shape: @ethereumjs/tx@5 repurposed the name TxData for a map keyed by transaction type and renamed the old meaning to LegacyTxData. Implementations do not need changing.
  • Bump @metamask/scure-bip39 from ^2.0.3 to ^2.1.1 (#311)
  • Bump @metamask/superstruct from ^3.1.0 to ^3.4.1 (#311)
  • Bump @noble/hashes from ^1.3.1 to ^1.8.0 (#311)
  • Bump @scure/base from ^1.1.3 to ^1.2.6 (#311)
  • Bump semver from ^7.5.4 to ^7.6.3 (#311)

11.12.1

Choose a tag to compare

@github-actions github-actions released this 03 Sep 14:52
c68eef0

Fixed

  • Fix ESM compatibility for the BIP-39 mnemonic utilities (#309)

11.12.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 11:54
51f15da

Added

  • Add uint8ArrayToMnemonic and convertMnemonicToWordlistIndices utilities (#300)
    • uint8ArrayToMnemonic converts little-endian Uint16 English BIP-39 wordlist indices into a mnemonic string.
    • convertMnemonicToWordlistIndices converts a mnemonic string into little-endian Uint16 wordlist indices encoded as a Uint8Array.
  • Add @metamask/scure-bip39 as a dependency (#300)
  • Add optimized sha512 and sha384 utility functions (#305)

11.11.0

Choose a tag to compare

@github-actions github-actions released this 01 Apr 12:39
9c4af7e

Added

  • Add Stellar CAIP namespace (#278)

11.10.0

Choose a tag to compare

@github-actions github-actions released this 12 Feb 12:21
6b14e89

Added

  • Add ensureError utility for converting unknown values to error (#275)

11.9.0

Choose a tag to compare

@github-actions github-actions released this 17 Dec 13:26
b83ef12

Added

  • Add sha256 utility function (#273)

11.8.1

Choose a tag to compare

@github-actions github-actions released this 24 Sep 12:11
339faae

Changed

  • Replace superstruct.is with faster regex checks for isCaip* functions (#270)
    • Those calls were slow especially on our mobile client.

11.8.0

Choose a tag to compare

@github-actions github-actions released this 12 Sep 11:20
40ed2bd

Added

  • Add areUint8ArraysEqual function to compare two Uint8Array types (#268)

11.7.0

Choose a tag to compare

@github-actions github-actions released this 02 Sep 14:18
486ea89

Added

  • Add Tron CAIP namespace (#266)

Fixed

  • Fix API docs generation (#264)

11.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Aug 18:06
758b1d1

Added

  • Migrate units conversion utils from @metamask/ethjs-unit (#255)

Changed

  • Make KnownCaipNamespacedChainId type generic over Namespace type parameter (#262)