New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/utils

Package Overview
Dependencies
Maintainers
9
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/utils - npm Package Versions

2345

11.1.0

Diff

Changelog

Source

[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)
metamaskbot
published 11.0.1 •

Changelog

Source

[11.0.1]

Fixed

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

Changelog

Source

[11.0.0]

Changed

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

Changelog

Source

[10.0.1]

Added

  • Add Solana CAIP namespace (#219)
metamaskbot
published 10.0.0 •

Changelog

Source

[10.0.0]

Changed

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

Changelog

Source

[9.3.0]

Added

  • Add support for CAIP-19 (#183)
  • Add Bip122 member to KnownCaipNamespace (#213)
metamaskbot
published 9.2.1 •

Changelog

Source

[9.2.1]

Fixed

  • Fix wrong types for CAIP-2 and CAIP-10 structs (#210)
metamaskbot
published 9.2.0 •

Changelog

Source

[9.2.0]

Added

  • Add Wallet member to KnownCaipNamespace enum (#207)
metamaskbot
published 9.1.0 •

Changelog

Source

[9.1.0]

Added

  • Add PublicInterface type (#197)
metamaskbot
published 9.0.0 •

Changelog

Source

[9.0.0]

Changed

  • BREAKING: The return types of functions getChecksumAddress, numberToHex, bigIntToHex are narrowed from string to Hex (#193)

Fixed

  • Bump @metamask/superstruct from ^3.0.0 to ^3.1.0 (#194)
    • If @metamask/utils <=8.5.0 is used with @metamask/superstruct >=3.1.0 the following error may be encountered:
    error TS2742: The inferred type of 'ExampleType' cannot be named without a reference to '@metamask/utils/node_modules/@metamask/superstruct'. This is likely not portable. A type annotation is necessary.
    
    This can be resolved by updating @metamask/utils to >=9.0.0.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc