Skip to content

Releases: MetaMask/utils

11.4.2

02 Jul 08:24
1bea7f3
Compare
Choose a tag to compare

Fixed

  • Improve performance of isValidChecksumAddress and isValidHexAddress functions (#248)

11.4.1

30 Jun 12:21
33629cb
Compare
Choose a tag to compare

Fixed

  • Improve performance of getChecksumAddress function (#246)

11.4.0

02 Apr 17:05
7c9d3a2
Compare
Choose a tag to compare

Changed

  • Deprecate local exactOptional implementation (#244)
    • Use the one from @metamask/superstruct@>=3.2.0 instead.

11.3.0

13 Mar 21:41
55b22a7
Compare
Choose a tag to compare

Added

  • Add default JSON-RPC generics that extend Json to Json (#241)

Changed

  • Deprecate Keyring types (#236)
    • These should now be imported from @metamask/keyring-utils.

11.2.0

11 Feb 14:44
7994643
Compare
Choose a tag to compare

Added

  • Add optional signEip7702Authorization method to Keyring type (#231)

11.1.0

29 Jan 10:33
90837ba
Compare
Choose a tag to compare

Added

  • Add additional CAIP-19 types (CaipAsset{Namespace,Reference,TokenId} support (#227)
  • Add CAIP-19 CaipAssetTypeOrId (#229)
    • This one combines both CaipAssetType and CaipAssetId to avoid relying on superstruct.union, resulting in better error messages.
  • Add definePattern superstruct helper (#228)
    • Allow to define a superstruct.pattern while naming the struct and enforcing its type.

Changed

  • Use named structs for all CAIP types (#228)

11.0.1

10 Dec 12:49
10b5c69
Compare
Choose a tag to compare

Fixed

  • Improve error message for invalid JSON values (#224)

11.0.0

26 Nov 18:08
6201c23
Compare
Choose a tag to compare

Changed

  • BREAKING: generateRandomMnemonic now returns Promise<void> instead of void (#222)

10.0.1

05 Nov 11:08
88f742a
Compare
Choose a tag to compare

Added

  • Add Solana CAIP namespace (#219)

10.0.0

22 Oct 09:03
76ad2df
Compare
Choose a tag to compare

Changed

  • BREAKING: Drop support for Node.js versions 16, 21 (#212)
  • Improve JSON validation performance (#218)