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

@metamask/utils

Package Overview
Dependencies
Maintainers
8
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/utils - npm Package Versions

124

5.0.2

Diff

Changelog

Source

[5.0.2]

Changed

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

Fixed

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

Changelog

Source

[5.0.1]

Fixed

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

Changelog

Source

[5.0.0]

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.
metamaskbot
published 4.0.0 •

Changelog

Source

[4.0.0]

Changed

  • Export new modules (keyring, transaction-types, and encryption-types) (#86)
  • BREAKING: Improve JSON validation (#85)
    • Fixes edge cases in our JSON validation logic.
    • The previous function used for JSON validation (validateJsonAndGetSize) was removed.
      • The isValidJson function now uses the new JSON validation logic.
      • To get the size of a JSON value, you can use the getJsonSize function.
metamaskbot
published 3.6.0 •

Changelog

Source

[3.6.0]

Added

  • Add Keyring types (#74)
    • New data types added. These are Keyring, Transaction (LegacyTransaction, EIP2930Transaction, EIP1559Transaction), SignedTransaction, Signature, and Eip1024EncryptedData.
metamaskbot
published 3.5.0 •

Changelog

Source

[3.5.0]

Changed

  • Improve the hasProperty function (#79, #80)
    • This function now acts as a type guard, informing TypeScript that the property exists.
    • The function is now compatible with more types of objects, such as Errors and class instances.
metamaskbot
published 3.4.1 •

Changelog

Source

[3.4.1]

Fixed

  • Bump superstruct to ^1.0.3 (#71)
metamaskbot
published 3.4.0 •

Changelog

Source

[3.4.0]

Added

  • Add types and utility functions for validating versions and checksums (#67, #69)

Fixed

  • JSON-RPC types now have a default generic Params value (#54)
ritave
published 3.3.1 •

Changelog

Source

[3.3.1]

Fixed

  • JSON-RPC parameters are now properly cast to Json upon validation (#51)
gudahtt
published 3.3.0 •

Changelog

Source

[3.3.0]

Added

  • Add more assertion utils (#49)
  • Add JSON-RPC error validation functions (#46)
  • Add convenience function for creating a DataView (#45)

Fixed

  • Update JSON validation logic (#47)
    • Validation would previously allow for undefined values, which is not a standard JSON type
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