Skip to content

15.2.0

Compare
Choose a tag to compare
@mcmire mcmire released this 12 Feb 19:07
fb247ec

Added

  • Add a way to pass an RPC service to createFetchMiddleware (#357)
    • The new, recommended function signature is now createFetchMiddleware({ rpcService: AbstractRpcService; options?: { originHttpHeaderKey?: string; } }), 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 @metamask/utils to ^11.1.0 (#358)

Deprecated

  • Deprecate passing an RPC endpoint to createFetchMiddleware (#357)
    • See recommended function signature above
    • The existing signature createFetchMiddleware({ btoa: typeof btoa; fetch: typeof fetch; rpcUrl: string; originHttpHeaderKey?: string; }) will be removed in a future major version
  • Deprecate PayloadWithOrigin type (#357)
    • There is no replacement for this type; it will be removed in a future major version.