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

@metamask/inpage-provider

Package Overview
Dependencies
Maintainers
7
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/inpage-provider - npm Package Versions

2

8.1.0

Diff

Changelog

Source

[8.1.0] - 2021-05-05

Added

  • BaseProvider, implementing EIP-1193 without any legacy features (#144)
  • createExternalExtensionProvider, from the extension-provider package (#152)
gudahtt
published 8.0.4 •

Changelog

Source

[8.0.4] - 2021-02-04

Fixed

  • Fix warning on second currentProvider access (#138)
gudahtt
published 8.0.3 •

Changelog

Source

[8.0.3] - 2021-01-20

Fixed

  • Restore 'data' provider event (#135)
rekmarks
published 8.0.2 •

Changelog

Source

[8.0.2] - 2021-01-12

Changed

  • Reduce window.web3 shim console noise (#133)
rekmarks
published 8.0.1 •

Changelog

Source

[8.0.1] - 2020-12-08

Fixed

  • Fix 8.0.0 types (#127)
rekmarks
published 8.0.0 •

Changelog

Source

[8.0.0] - 2020-12-07

Added

  • Add logger parameter to initializeProvider (#116)
  • Add window.web3 shim, shimWeb3 export (#113, #115)
    • This is to maintain window.web3.currentProvider once MetaMask stops injecting window.web3 (very soon), and to log attempts to access any properties on the shim other than currentProvider.
    • initializeWeb3 now has a shouldShimWeb3 argument, which causes the shim to be set as window.web3 if true.

Changed

  • BREAKING: Rename initProvider export to initializeProvider (#114)
  • BREAKING: Replace ethereum.publicConfigStore with new set of JSON-RPC notifications (#109)

Removed

  • BREAKING: Remove _metamask.isEnabled and _metamask.isApproved (#112)
  • BREAKING: Remove the chainIdChanged event (#111)
  • BREAKING: Remove ethereum.publicConfigStore (#109)
  • BREAKING: Remove web3.js-related functionality (#106)
    • This functionality caused the page to reload if there was a web3.js instance at window.web3, and kept web3.eth.defaultAccount in sync with ethereum.selectedAddress.
    • This functionality is replicated in @metamask/legacy-web3.

Fixed

  • Correctly implement connect and disconnect events (#120)
    • See EIP-1193 for the specification of these events.
    • disconnect emits with an RPC error. Like all such errors emitted by this module, they have a code property with a number value. There are currently two codes:
      • 1013 indicates that MetaMask is attempting to reestablish the connection
      • 1011 indicates that a page reload is required
  • Send page metadata even if page is already loaded (#119)
  • Convert MetaMaskInpageProvider logger to instance variable (#118)
    • Previously, it was erroneously a singleton across all class instances.
  • Stop emitting state change events on initialization (#117)
    • Includes accountsChanged, chainChanged, and networkChanged.
    • This prevents sites that handle any of these events by reloading the page from entering into a reload loop.
rekmarks
published 7.0.0 •

Changelog

Source

[7.0.0] - 2020-09-08

Changed

  • BREAKING: Changed casing of Metamask in all exports to MetaMask
    • A brand is a brand ¯\_(ツ)_/¯
rekmarks
published 6.3.0 •

Changelog

Source

[6.3.0] - 2020-09-04

Added

  • Types

Changed

  • ethereum.networkVersion and .chainId now default to null instead of undefined
  • Improved JSDoc comments and tags
rekmarks
published 6.2.0 •

Changelog

Source

[6.2.0] - 2020-08-04

Added

  • Package consumers can now provide a logger object to the provider constructor, to override the default logger
    • The default logger is the console global
    • The following methods are required: debug, error, info, log, trace
rekmarks
published 6.1.1 •

Changelog

Source

[6.1.1] - 2020-07-28

Changed

  • Updated dependencies, which produces a smaller bundle size
2
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