Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/utils

Package Overview
Dependencies
Maintainers
9
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/utils - npm Package Versions

1345

8.4.0

Diff

Changelog

Source

[8.4.0]

Added

  • Add toCaipChainId utility function (#175)
  • Add KnownCaipNamespace enum (#175)

Changed

  • Update docs for createDeferredPromise to caution against using suppressUnhandledRejection (#174)

Fixed

  • Fix createSandbox to assign a unique name to the sandbox directory, so that it can be used in multiple concurrently running Jest tests (#171)
metamaskbot
published 8.3.0 •

Changelog

Source

[8.3.0]

Added

  • Add createDeferredPromise (#164)
metamaskbot
published 8.2.1 •

Changelog

Source

[8.2.1]

Fixed

  • Fix issue with source maps where line numbers were incorrect for src/error.ts (#156)
metamaskbot
published 8.2.0 •

Changelog

Source

[8.2.0]

Added

  • Add struct utils for validating JSON objects with optional values (#136)
  • Add filesystem utils (#148)
  • Add error utils (#146, #151)
  • Add base64 encoding and decoding functions (#145)

Changed

  • Use tsup for bundling (#144)
    • This makes the package fully compliant with ES modules.
  • Bump @ethereumjs/tx from 4.1.2 to 4.2.0 (#133)
metamaskbot
published 8.1.0 •

Changelog

Source

[8.1.0]

Changed

  • Make types for JSON-RPC-related structs more accurate (#134)
    • Aligning JsonRpcParams to be optional, yet not undefined.
    • Updated types:
      • InferWithParams
      • JsonRpcNotificationStruct
      • JsonRpcParamsStruct
      • JsonRpcRequestStruct
metamaskbot
published 8.0.0 •

Changelog

Source

[8.0.0]

Changed

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

Changelog

Source

[7.1.0]

Added

  • Add CAIP-2 and CAIP-10 types (#116)
metamaskbot
published 7.0.0 •

Changelog

Source

[7.0.0]

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

Changelog

Source

[6.2.0]

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
metamaskbot
published 6.1.0 •

Changelog

Source

[6.1.0]

Added

  • Add optional destroy method to Keyring type (#108)
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