You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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