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
The following changes extend
c26899a:
- `eth-json-rpc-middleware`
- There were some unnecessary type assertions in `inflight-cache.ts`
that have been removed.
- `message-manager`
- The rename of `OriginalRequest` introduced a breaking change.
We don't strictly need to do this now, so we keep the old type
around for backward compatibility.
- `network-controller`
- The changelog has been updated to mention that a new export was
added, and to detail more changes to `createWalletMiddleware`.
- The signatures of `request` in `RpcServiceRequestable` and
`RpcServiceChain` were updated to match the same method in
`RpcService` (and the change to `RpcServiceRequestable` was marked
as breaking).
Copy file name to clipboardExpand all lines: packages/eth-json-rpc-middleware/CHANGELOG.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Added
11
+
12
+
- Add new function `providerAsMiddlewareV2` for converting an `InternalProvider` into a `JsonRpcEngine` v2-compatible middleware ([#7138](https://github.com/MetaMask/core/pull/7138))
13
+
10
14
### Changed
11
15
12
-
-**BREAKING:** Migrate to `JsonRpcEngineV2` ([#7065](https://github.com/MetaMask/core/pull/7065))
13
-
- Migrates all middleware from `JsonRpcEngine` to `JsonRpcEngineV2`.
14
-
- Signatures of various middleware dependencies, e.g. `processTransaction` of `createWalletMiddleware`, have changed
15
-
and must be updated by consumers.
16
-
- Be advised that request objects are now deeply frozen, and cannot be mutated.
16
+
-**BREAKING:** Migrate all middleware from `JsonRpcEngine` to `JsonRpcEngineV2` ([#7065](https://github.com/MetaMask/core/pull/7065))
17
17
- To continue using this package with the legacy `JsonRpcEngine`, use the `asLegacyMiddleware` backwards compatibility function.
18
+
-**BREAKING:** Change the signatures of hooks for `createWalletMiddleware` ([#7065](https://github.com/MetaMask/core/pull/7065))
19
+
- To wit:
20
+
-`getAccounts` takes an origin argument (`string`) instead of a `JsonRpcRequest`
21
+
-`processDecryptMessage` and `processEncryptionPublicKey` take a `MessageRequest` from `@metamask/message-manager` instead of `JsonRpcRequest`
22
+
-`processPersonalMessage`, `processTransaction`, `processSignTransaction`, `processTypedMessage`, `processTypedMessageV3` and `processTypedMessageV4` take a `context` as the third argument, before any other arguments
23
+
- Be advised that request objects are now deeply frozen, and cannot be mutated.
18
24
-**BREAKING:** Use `InternalProvider` instead of `SafeEventEmitterProvider` ([#6796](https://github.com/MetaMask/core/pull/6796))
19
25
- Wherever a `SafeEventEmitterProvider` was expected, an `InternalProvider` is now expected instead.
20
26
-**BREAKING:** Stop retrying `undefined` results for methods that include a block tag parameter ([#7001](https://github.com/MetaMask/core/pull/7001))
21
27
- The `retryOnEmpty` middleware will now throw an error if it encounters an `undefined` result when dispatching
22
28
a request with a later block number than the originally requested block number.
23
29
- In practice, this should happen rarely if ever.
24
-
- Migrate all uses of `interface` to `type` ([#6885](https://github.com/MetaMask/core/pull/6885))
30
+
-**BREAKING:**Migrate all uses of `interface` to `type` ([#6885](https://github.com/MetaMask/core/pull/6885))
Copy file name to clipboardExpand all lines: packages/network-controller/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
- In practice, this should happen rarely if ever.
20
20
-**BREAKING:** Migrate `NetworkClient` to `JsonRpcEngineV2` ([#7065](https://github.com/MetaMask/core/pull/7065))
21
21
- This ought to be unobservable, but we mark it as breaking out of an abundance of caution.
22
+
-**BREAKING:** Update signature of `request` in `AbstractRpcService` and `RpcServiceRequestable` so that the JSON-RPC request must be frozen ([#7138](https://github.com/MetaMask/core/pull/7138))
22
23
- Bump `@metamask/controller-utils` from `^11.14.1` to `^11.15.0` ([#7003](https://github.com/MetaMask/core/pull/7003))
0 commit comments