Socket
Socket
Sign inDemoInstall

@metamask/providers

Package Overview
Dependencies
Maintainers
7
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/providers - npm Package Versions

23

17.1.2

Diff

Changelog

Source

[17.1.2]

Added

  • Add @metamask/providers/stream-provider export (#351)
    • This replaces the @metamask/providers/dist/StreamProvider export. It still exists for backwards compatibility, but will be removed in a future major release.

Changed

  • Bump @metamask/utils from 9.0.0 to 9.1.0 (#348)
metamaskbot
published 17.1.1 •

Changelog

Source

[17.1.1]

Changed

  • Bump @metamask/json-rpc-engine to ^9.0.1 (#345)
  • Bump @metamask/json-rpc-middleware-stream to ^8.0.1 (#345)
  • Bump @metamask/rpc-errors to ^6.3.1 (#345)
  • Bump @metamask/superstruct to ^3.1.0 (#338)
  • Bump @metamask/utils to ^9.0.0 (#345)

Fixed

  • Bump devDependency @ts-bridge/cli to ^0.2.0 (#343)
    • Fixes incorrect handling of json file imports, where an extension was appended to the file name after compilation (e.g. *.json.cjs or *.json.mjs).
metamaskbot
published 17.1.0 •

Changelog

Source

[17.1.0]

Changed

  • Bump @metamask/json-rpc-middleware-stream from ^7.0.1 to ^8.0.0 (#327)
  • Bump @metamask/json-rpc-engine from ^8.0.2 to ^9.0.0 (#328)
  • Bump extension-port-stream from ^3.0.0 to ^4.1.0 (#331)
  • Bump @metamask/utils from ^8.4.0 to ^8.5.0 (#329)
  • Bump @metamask/rpc-errors from ^6.2.1 to ^6.3.0 (#326)

Fixed

  • Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#336)
    • This fixes the issue of this package being unusable by any TypeScript project that uses Node16 or NodeNext as its moduleResolution option.
    • Previously, this package shipped with only one variant of type declaration files, and these files were only CommonJS-compatible, and the exports field in package.json linked to these files. This is an anti-pattern and was rightfully flagged by the "Are the Types Wrong?" tool as "masquerading as CJS".
  • Remove chunk files (#336).
    • Previously, the build tool we used to generate JavaScript files extracted common code to "chunk" files. While this was intended to make this package more tree-shakeable, it also made debugging more difficult for our development teams. These chunk files are no longer present.
  • Use named extension-port-stream import to ensure compatibility with bundlers such as Vite (#331)
metamaskbot
published 17.0.0 •

Changelog

Source

[17.0.0]

Changed

  • Change provider RPC error log severity from error to warn (#323)

Fixed

  • BREAKING: Change webextension-polyfill from dependency to peerDependency (#319)
    • Users are now expected to have the polyfill in their environment
metamaskbot
published 16.1.0 •

Changelog

Source

[16.1.0]

Added

  • Restore deprecated properties, networkChanged event, and offline send() net_version support (#312)
  • Bump MetaMask dependencies (#310)
  • Bump @metamask/safe-event-emitter from 3.0.0 to 3.1.1 (#309)
  • Bump @metamask/utils from 8.3.0 to 8.4.0 (#311)
  • Bump tar from 6.1.13 to 6.2.1 (#314)
metamaskbot
published 16.0.0 •

Changelog

Source

[16.0.0]

Removed

  • BREAKING: Remove deprecated properties, networkChanged event, and offline send() net_version support (#306)
    • window.ethereum.chainId has been removed. Use the 'eth_chainId' RPC method instead.
    • window.ethereum.networkVersion has been removed. Use the 'net_version' RPC method instead.
    • window.ethereum.selectedAddress has been removed. Use the 'eth_accounts' RPC method instead.
    • networkChanged event has been removed. The closest equivalent is the chainChanged event.
    • window.ethereum.send() no longer resolves net_version offline (from cache).

Changed

  • Bump @metamask/json-rpc-engine from 7.3.2 to 7.3.3 (#305)
metamaskbot
published 15.0.0 •

Changelog

Source

[15.0.0]

Added

  • BREAKING: Add ESM build (#296)
    • It's no longer possible to import files from the dist folder directly, with the exception of ./dist/StreamProvider

Changed

  • Bump several MetaMask dependencies (#304)
  • Export RequestArguments and ConsoleLike types (#302)
metamaskbot
published 14.0.2 •

Changelog

Source

[14.0.2]

Fixed

  • Don't send null params to underlying provider (#292)
metamaskbot
published 14.0.1 •

Changelog

Source

[14.0.1]

Fixed

  • Don't send undefined params to underlying provider (#290)
metamaskbot
published 14.0.0 •

Changelog

Source

[14.0.0]

Changed

  • BREAKING: Update to streams3 API (#288)
    • Update extension-port-stream from ^2.1.1 to ^3.0.0
      • Force subdependency readable-stream to ^3.6.2 in resolutions
    • Update json-rpc-middleware-stream from ^4.2.3 to ^5.0.1
    • Update @metamask/object-multiplex from ^1.3.0 to ^2.0.0
    • Add direct dependency on readable-stream@^3.6.2
    • Replace internal usage of stream with readable-stream
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc