Socket
Book a DemoInstallSign in
Socket

@metamask/providers

Package Overview
Dependencies
Maintainers
9
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/providers - npm Package Versions

234

22.1.0

Diff
m
metamaskbot
published 22.1.0 •

Changelog

Source

[22.1.0]

Changed

  • Adds a new shouldAnnounceCaip294 flag to initializeProvider options (defaulted to true), so instead of the providerInfo.rdns value determining whether or not to announce the caip-294 target, the caller of initializeProvider can directly control this (#419)
m
metamaskbot
published 22.0.1 •

Changelog

Source

[22.0.1]

Fixed

  • Catch error when ethereum provider is set before we attempt to set it (#416)
m
metamaskbot
published 22.0.0 •

Changelog

Source

[22.0.0]

Changed

  • BREAKING: initializeProvider announces the extensionId, when available, via a caip-348 target on in the new targets property of the CAIP-294 wallet announcement event instead of the previous extensionId property (#413)
m
metamaskbot
published 21.0.0 •

Changelog

Source

[21.0.0]

Changed

  • BREAKING: initializeProvider() no longer accepts the jsonRpcStreamName option param. (#410)
    • This helper no longers instantiates a jsonRpcStreamName named substream from the connectionStream Duplex stream option param.
    • Callers of initializeProvider() should now instantiate their own metamask-provider named substream and pass it in as the value for connectionStream.
m
metamaskbot
published 20.0.0 •

Changelog

Source

[20.0.0]

Changed

  • BREAKING: An isConnected boolean property is now expected in the result of metamask_getProviderState and metamask_chainChanged events (#404)
  • BREAKING: A networkVersion value of loading received by the chainChanged event handler is now interpreted to be null. In this case, the networkChanged event emits a null value as well. (#404)
  • BREAKING: The disconnect event is now tied to the new isConnected property instead of the networkVersion property. (#404)
  • A change in the isUnlocked boolean property of the metamask_getProviderState and metamask_accountsChanged events (from what is in state) no longer causes the accountsChanged event to be emitted (#405)
  • MetaMaskInpageProvider.isUnlocked() will always return true until the inpage to contentscript stream ends and the provider enters a permanently disconnected state (#405)
m
metamaskbot
published 19.0.0 •

Changelog

Source

[19.0.0]

Changed

  • BREAKING: StreamProvider no longer accepts a jsonRpcStreamName parameter (#400)
    • Previously, this parameter was used internally to create an ObjectMultiplex stream and substream for JSON-RPC communication
    • Now, the consumer is responsible for creating and managing the stream multiplexing if needed
    • The provider will use the provided stream connection directly without any multiplexing
  • BREAKING: MetaMaskInpageProvider no longer accepts a jsonRpcStreamName parameter (#400)
    • This change is inherited from StreamProvider, as MetaMaskInpageProvider extends StreamProvider
    • Stream multiplexing should be handled before provider instantiation
  • initializeInpageProvider now handles stream multiplexing internally (#400)
    • Creates an ObjectMultiplex instance and substream using the provided jsonRpcStreamName
    • This maintains backwards compatibility for consumers using initializeInpageProvider
  • createExternalExtensionProvider now handles stream multiplexing internally (#400)
    • Creates an ObjectMultiplex instance and substream for JSON-RPC communication
    • This maintains backwards compatibility for consumers using createExternalExtensionProvider
m
metamaskbot
published 18.3.1 •

Changelog

Source

[18.3.1]

Changed

  • Bump @metamask/json-rpc-engine from ^10.0.1 to ^10.0.2 (#397)
  • Bump @metamask/json-rpc-middleware-stream from ^8.0.5 to ^8.0.6 (#397)
  • Bump @metamask/rpc-errors from ^7.0.1 to ^7.0.2 (#397)
  • Bump @metamask/utils from ^10.0.0 to ^11.0.1 (#397)
m
metamaskbot
published 18.3.0 •

Changelog

Source

[18.3.0]

Added

  • Implement Wallet Discovery via CAIP-294 for Wallet Multichain API (#395)
m
metamaskbot
published 18.2.0 •

Changelog

Source

[18.2.0]

Added

  • Add new export for initializeInpageProvider with legacy build system support (#391)
    • Previously this module could be imported from /dist/initializeInpageProvider, but this only worked with build systems that support the exports field (e.g. browserify).
    • This new initializeInpageProvider export has a JavaScript redirect for older build systems, so it should work correctly in all cases.
m
metamaskbot
published 18.1.2 •

Changelog

Source

[18.1.2]

Fixed

  • Allow optional jsonRpcStreamName for initializeInpageProvider (#390)
    • This parameter was accidentally made required in v18.1.0
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.