Skip to content

Releases: MetaMask/utils

8.0.0

28 Aug 19:43
58b1611
Compare
Choose a tag to compare

Changed

  • BREAKING: JsonRpcParams type no longer accepts undefined as value, as undefined is not a valid JSON type (#130)

7.1.0

01 Aug 17:09
4cffdd4
Compare
Choose a tag to compare

Added

  • CAIP-2 and CAIP-10 Types (#116)

7.0.0

25 Jul 15:39
e5bc219
Compare
Choose a tag to compare

Added

  • Add getKnownPropertyNames function (#111)

Changed

  • BREAKING: Build the package as both CJS and ESM (#115, #124)
    • It's no longer possible to import from the dist folder. Everything must be imported from @metamask/utils.
  • Bump semver to ^7.5.4 (#123)

6.2.0

11 Jul 17:59
68384c6
Compare
Choose a tag to compare

Added

  • Add address related utils (#112)
    • isValidHexAddress has been added to check the validity of an hex address
    • getChecksumAddress has been added to calculate the ERC-55 mixed-case checksum of an hex address
    • isValidChecksumAddress has been added to check the validity of an ERC-55 mixed-case checksum address

6.1.0

20 Jun 14:08
1daaa37
Compare
Choose a tag to compare

Added

  • Add optional destroy method to Keyring type (#108)

6.0.1

14 Jun 12:31
b59adde
Compare
Choose a tag to compare

Fixed

  • Strip __proto__ and constructor JSON properties in getSafeJson (#105)

6.0.0

31 May 09:12
719854b
Compare
Choose a tag to compare

Changed

  • BREAKING: Bump minimum Node version to 16 (#102)
  • BREAKING: Target ES2020 (#102)

Fixed

  • Fix JSON validation security issue (#103)
    • This adds a new function getSafeJson which validates and returns sanitized JSON.

5.0.2

25 Apr 11:43
b217ca1
Compare
Choose a tag to compare

Changed

  • The Keyring exposes a new optional method init (#99)

Fixed

  • Bump @ethereumjs/tx to 4.1.2 to address runtime compatibility issues (#100)

5.0.1

11 Apr 14:07
32d423c
Compare
Choose a tag to compare

Fixed

  • Keep original type when using hasProperty if defined (#94)

5.0.0

06 Mar 21:25
f424d21
Compare
Choose a tag to compare

Changed

  • BREAKING: Update Keyring type (#89)
    • The Keyring class now uses the data types TypedTransaction and TxData from @ethereumjs/tx (v4.1.1).
    • The Keyring now exposes a new optional method called generateRandomMnemonic.