Skip to content

Releases: MetaMask/eth-json-rpc-infura

10.3.0

Choose a tag to compare

@github-actions github-actions released this 24 Sep 17:11
81e1c22

Changed

  • Simplify rpcService parameter type of createInfuraMiddleware (#127)
  • Bump @metamask/eth-json-rpc-provider from ^4.1.7 to ^5.0.0 (#126)
  • Bump @metamask/json-rpc-engine from ^10.0.2 to ^10.1.0 (#126)

10.2.0

Choose a tag to compare

@github-actions github-actions released this 23 May 13:25
311dd47

Added

  • Add sei-mainnet and sei-testnet as Infura supported network (#117)

10.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Apr 15:35
f10fd06

Fixed

  • Fix middleware so that non-standard JSON-RPC error responses are no longer treated as successful responses (#123)
    • A "non-standard" error response is one with an error field but where there are more properties in the error object than expected

10.1.0

Choose a tag to compare

@github-actions github-actions released this 12 Feb 19:07
7f45fca

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

10.0.0

Choose a tag to compare

@github-actions github-actions released this 18 Oct 09:01
a775100

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)

9.1.0

Choose a tag to compare

@github-actions github-actions released this 27 Feb 20:43
f16eb3d

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)

9.0.0

Choose a tag to compare

@github-actions github-actions released this 21 Sep 07:45
aba1d0a

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

8.1.2

Choose a tag to compare

@github-actions github-actions released this 12 Sep 10:13
f0e9661

Changed

  • Bump @metamask/utils to ^5.0.1 (#87)

8.1.1

Choose a tag to compare

@github-actions github-actions released this 12 Jul 22:21
c56849d

Changed

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

8.1.0

Choose a tag to compare

@github-actions github-actions released this 06 Jun 16:20
7bb5ae7

Added

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