Skip to content

10.1.0

Latest
Compare
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