Releases: MetaMask/utils
Releases · MetaMask/utils
11.4.2
Fixed
- Improve performance of
isValidChecksumAddress
and isValidHexAddress
functions (#248)
11.4.1
Fixed
- Improve performance of
getChecksumAddress
function (#246)
11.4.0
Changed
- Deprecate local
exactOptional
implementation (#244)
- Use the one from
@metamask/superstruct@>=3.2.0
instead.
11.3.0
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
Added
- Add optional
signEip7702Authorization
method to Keyring
type (#231)
11.1.0
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
Fixed
- Improve error message for invalid JSON values (#224)
11.0.0
Changed
- BREAKING:
generateRandomMnemonic
now returns Promise<void>
instead of void
(#222)
10.0.1
Added
- Add Solana CAIP namespace (#219)
10.0.0
Changed
- BREAKING: Drop support for Node.js versions 16, 21 (#212)
- Improve JSON validation performance (#218)