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

@metamask/eth-json-rpc-infura

Package Overview
Dependencies
Maintainers
12
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/eth-json-rpc-infura - npm Package Versions

10.1.0

Diff

Changelog

Source

[10.1.0]

Added

  • Add a way to pass an RPC service to createInfuraMiddleware (#116)
    • The new, recommended function signature is now createInfuraMiddleware({ rpcService: AbstractRpcService; options?: { source?: string; headers?: HeadersInit } }), where AbstractRpcService matches the same interface from @metamask/network-controller
    • This allows us to support automatic failover to a secondary node when the network goes down

Changed

  • Bump dependencies to remove pre-11.x versions of @metamask/utils from dependency tree (#118)
    • Bump @metamask/eth-json-rpc-provider from ^4.1.5 to ^4.1.7
    • Bump @metamask/json-rpc-engine from ^10.0.0 to ^10.0.2
    • Bump @metamask/rpc-errors from ^7.0.0 to ^7.0.2
    • Bump @metamask/utils from ^9.1.0 to ^11.1.0

Deprecated

  • Deprecate passing an RPC endpoint to createInfuraMiddleware (#116)
    • See recommended function signature above
    • The existing signature createInfuraMiddleware({ network?: InfuraJsonRpcSupportedNetwork; maxAttempts?: number; source?: string; projectId: string; headers?: Record<string, string>; }) will be removed in a future major version
lgbot
published 10.0.0 •

Changelog

Source

[10.0.0]

Changed

  • BREAKING: @metamask/json-rpc-engine from ^7.1.1 to ^10.0.0 (#112)
  • BREAKING: Update @metamask/rpc-errors from ^6.0.0 to ^7.0.0 (#111)
  • BREAKING: Drop support for Node.js versions 16, 21 (#109)

Removed

  • Drop node-fetch dependency (#110)
mcmire
published 9.1.0 •

Changelog

Source

[9.1.0]

Added

  • Add linea-sepolia to InfuraJsonRpcSupportedNetwork to allow requests to Linea Sepolia on Infura (#101)

Changed

  • Bump node-fetch from ^2.6.7 to ^2.7.0 (#93)
gudahtt
published 9.0.0 •

Changelog

Source

[9.0.0]

Changed

  • BREAKING: Minimum Node.js version is now v16 (#91)
  • BREAKING: Update dependencies (#95)
    • Bump @metamask/eth-json-rpc-provider from ^1.0.0 to ^2.1.0
    • Bump @metamask/utils from ^5.0.1 to ^8.1.0
    • Update from eth-rpc-errors@^4.0.3 to @metamask/rpc-errors@^6.0.0
    • Update from json-rpc-engine@^6.1.0 to @metamask/json-rpc-engine@^7.1.0
gudahtt
published 8.1.1 •

Changelog

Source

[8.1.1]

Changed

  • Bump @metamask/utils to ^4.0.0 (#83)
  • Replace eth-json-rpc-middleware with @metamask/eth-json-rpc-provider (#82)
gudahtt
published 8.1.0 •

Changelog

Source

[8.1.0]

Added

  • Add linea-goerli and linea-mainnet as Infura supported networks (#72)
gudahtt
published 8.0.0 •

Changelog

Source

[8.0.0]

Changed

  • BREAKING: Update InfuraJsonRpcSupportedNetwork with supported networks (#69)
    • The following networks have been removed from this type because they are no longer supported by Infura:
      • 'ropsten'
      • 'rinkeby'
      • 'kovan'
      • 'eth2-beacon-mainnet'
      • 'optimism-kovan'
      • 'arbitrum-rinkeby'
gudahtt
published 7.0.0 •

Changelog

Source

[7.0.0]

Added

  • Add logging (#63)
    • You will not be able to see log messages by default, but you can turn them on for this library by setting the DEBUG environment variable to metamask:eth-json-rpc-infura:* or metamask:*.

Changed

  • BREAKING: Require Node >= 14 (#62)
gudahtt
published 6.0.0 •

Changelog

Source

[6.0.0] - 2022-05-04

Added

  • Add TypeScript type definitions (#58)

Changed

  • Rename package to @metamask/eth-json-rpc-infura (#61)
    • eth-json-rpc-infura is deprecated and future releases will no longer occur under this name.
  • Upgrade dependencies to make use of new TypeScript type definitions (#58)
    • eth-json-rpc-middleware: ^6.0.0 -> ^8.1.0 (changelog)
    • eth-rpc-errors: ^3.0.0 -> ^4.0.3 (changelog)
    • json-rpc-engine: ^5.3.0 -> ^6.1.0 (changelog)
  • BREAKING: Simplify exports (#58)
    • All existing exports are now available under the package entrypoint. For instance, instead of:
      import createProvider from 'eth-json-rpc-infura/src/createProvider';
      
      you must now say:
      import { createProvider } from '@metamask/eth-json-rpc-infura';
      
  • BREAKING: Add required Node version of >= 12 (#44)

Security

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