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
`createFetchMiddleware` needs to declare that it takes an `RpcService`,
but it cannot get a type from `@metamask/network-controller` or else
this would create a circular dependency. Currently this package contains
a copy of `AbstractRpcService` from `@metamask/network-controller`
22.2.0, but there are a couple of problems: 1) this type is not
compatible with the latest version of the package, and 2) we want to
avoid further incompatibilities in the future.
This PR changes the signature for `createFetchMiddleware` so that it
requires a simplified version of `RpcService` — one that only contains a
`request` method. It also upgrades the dev dependency on
`@metamask/network-controller` to 24.1.0.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
-**BREAKING:**`createFetchMiddleware` no longer takes `fetch`, `btoa`, `rpcUrl`, and `originHttpHeaderKey` ([#402](https://github.com/MetaMask/eth-json-rpc-middleware/pull/402))
13
13
- The existing signature (`rpcService` and `options`) is now the only way to use this function; please use that instead.
14
+
-**BREAKING:**`createFetchMiddleware` now takes an RPC service object that must be compatible with `@metamask/network-controller` 24.x and `@metamask/utils` 11.x ([#403](https://github.com/MetaMask/eth-json-rpc-middleware/pull/403))
15
+
- On the other hand, the only required property for this object now is `request`; all other properties will be ignored.
14
16
- Bump `@metamask/utils` to `^11.7.0` ([#404](https://github.com/MetaMask/eth-json-rpc-middleware/pull/404))
0 commit comments