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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+126-1Lines changed: 126 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,120 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [Unreleased]
8
8
9
+
## [17.0.0]
10
+
### Changed
11
+
-**BREAKING:** Support version `2.0.0` of EIP-5792 ([#370](https://github.com/MetaMask/eth-json-rpc-middleware/pull/370))
12
+
- Add `atomicRequired` property to `SendCallsStruct`.
13
+
- Make `from` optional in `SendCallsStruct`.
14
+
- Add `atomic` property to `GetCallsStatusResult`.
15
+
- Validate `address` in `GetCapabilitiesParams` is added to wallet.
16
+
- Use `-32602` code for all EIP-5792 schema errors.
17
+
18
+
## [16.0.1]
19
+
### Fixed
20
+
- Fix `fetch` middleware so that non-standard JSON-RPC error responses are no longer treated as successful responses ([#367](https://github.com/MetaMask/eth-json-rpc-middleware/pull/367))
21
+
- A "non-standard" error response is one with an `error` field but where there are more properties in the error object than expected
22
+
23
+
## [16.0.0]
24
+
### Added
25
+
- Support updated EIP-5792 specification ([#363](https://github.com/MetaMask/eth-json-rpc-middleware/pull/363))
26
+
- Add optional `id` to `SendCallsParams`.
27
+
- Add optional `capabilities` to each call in `SendCallsParams`.
28
+
- Add `optional` property to both top-level and call-level capabilities.
29
+
- Add `SendCallsResult` type.
30
+
- Add `id`, `version`, and optional `capabilities` to `GetCallsStatusResult`.
31
+
- Add `GetCallsStatusCode` enum.
32
+
- Add `GetCallsStatusHook` type.
33
+
- Add optional `chainIds` argument to `GetCapabilitiesParams`.
34
+
35
+
### Changed
36
+
-**BREAKING:** Support updated EIP-5792 specification ([#363](https://github.com/MetaMask/eth-json-rpc-middleware/pull/363))
37
+
- Return `SendCallsResult` from `wallet_sendCalls` instead of `string`.
38
+
- Change `GetCallsStatusParams` to contain `Hex` instead of `string`.
39
+
- Change `status` in `GetCallsStatusResult` to `number` instead of `string`.
40
+
- Replace `GetTransactionReceiptsByBatchIdHook` with `GetCallsStatusHook`.
41
+
42
+
### Removed
43
+
-**BREAKING:** Support updated EIP-5792 specification ([#363](https://github.com/MetaMask/eth-json-rpc-middleware/pull/363))
- Support EIP-5792 ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/359))
50
+
- Add support for RPC methods:
51
+
-`wallet_sendCalls`
52
+
-`wallet_getCallsStatus`
53
+
-`wallet_getCapabilities`
54
+
- Add optional hooks to `WalletMiddlewareOptions`:
55
+
-`getCapabilities`
56
+
-`getTransactionReceiptsByBatchId`
57
+
-`processSendCalls`
58
+
- Add types:
59
+
-`GetCallsStatusParams`
60
+
-`GetCallsStatusReceipt`
61
+
-`GetCallsStatusResult`
62
+
-`GetCapabilitiesHook`
63
+
-`GetCapabilitiesParams`
64
+
-`GetCapabilitiesResult`
65
+
-`GetTransactionReceiptsByBatchIdHook`
66
+
-`ProcessSendCallsHook`
67
+
-`SendCalls`
68
+
-`SendCallsParams`
69
+
70
+
## [15.2.0]
71
+
### Added
72
+
- Add a way to pass an RPC service to `createFetchMiddleware` ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/357))
73
+
- The new, recommended function signature is now `createFetchMiddleware({ rpcService: AbstractRpcService; options?: { originHttpHeaderKey?: string; } })`, where `AbstractRpcService` matches the same interface from `@metamask/network-controller`
74
+
- This allows us to support automatic failover to a secondary node when the network goes down
75
+
76
+
### Changed
77
+
- Bump `@metamask/utils` to `^11.1.0` ([#358](https://github.com/MetaMask/eth-json-rpc-middleware/pull/358))
78
+
79
+
### Deprecated
80
+
- Deprecate passing an RPC endpoint to `createFetchMiddleware` ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/357))
81
+
- See recommended function signature above
82
+
- The existing signature `createFetchMiddleware({ btoa: typeof btoa; fetch: typeof fetch; rpcUrl: string; originHttpHeaderKey?: string; })` will be removed in a future major version
83
+
- Deprecate `PayloadWithOrigin` type ([#357](https://github.com/MetaMask/eth-json-rpc-middleware/pull/357))
84
+
- There is no replacement for this type; it will be removed in a future major version.
85
+
86
+
## [15.1.2]
87
+
### Changed
88
+
- Fix validation of primary type for signTypedDataV3 and signTypedDataV4 ([#353](https://github.com/MetaMask/eth-json-rpc-middleware/pull/353))
89
+
- It was updated to handle `undefined` input
90
+
91
+
## [15.1.1]
92
+
### Changed
93
+
- Bump `@metamask/eth-block-tracker` from `^11.0.3` to `^11.0.4` ([#351](https://github.com/MetaMask/eth-json-rpc-middleware/pull/351))
94
+
- Bump `@metamask/eth-json-rpc-provider` from `^4.1.5` to `^4.1.7` ([#351](https://github.com/MetaMask/eth-json-rpc-middleware/pull/351))
95
+
- Bump `@metamask/eth-sig-util` from `^7.0.3` to `^8.1.2` ([#351](https://github.com/MetaMask/eth-json-rpc-middleware/pull/351))
96
+
- Bump `@metamask/json-rpc-engine` from `^10.0.0` to `^10.0.2` ([#351](https://github.com/MetaMask/eth-json-rpc-middleware/pull/351))
97
+
- Bump `@metamask/rpc-errors` from `^7.0.0` to `^7.0.2` ([#351](https://github.com/MetaMask/eth-json-rpc-middleware/pull/351))
98
+
- Bump `@metamask/utils` from `^9.1.0` to `^11.0.1` ([#351](https://github.com/MetaMask/eth-json-rpc-middleware/pull/351))
99
+
100
+
## [15.1.0]
101
+
### Changed
102
+
- Improved validation of primary type for signTypedDataV3 and signTypedDataV4 ([#350](https://github.com/MetaMask/eth-json-rpc-middleware/pull/350))
103
+
104
+
## [15.0.1]
105
+
### Changed
106
+
- Bump `@metamask/eth-block-tracker` from `^11.0.1` to `^11.0.3` ([#347](https://github.com/MetaMask/eth-json-rpc-middleware/pull/347))
107
+
108
+
## [15.0.0]
109
+
### Changed
110
+
-**BREAKING**: Update `@metamask/rpc-errors` from `^6.3.1` to `^7.0.0` ([#342](https://github.com/MetaMask/eth-json-rpc-middleware/pull/342))
111
+
-**BREAKING**: Update `@metamask/json-rpc-engine` from `^9.0.2` to `^10.0.0` ([#342](https://github.com/MetaMask/eth-json-rpc-middleware/pull/342))
112
+
- Bump `@metamask/eth-json-rpc-provider` from `^4.1.1` to `^4.1.5` ([#342](https://github.com/MetaMask/eth-json-rpc-middleware/pull/342))
113
+
114
+
### Removed
115
+
-**BREAKING**: Remove `eth_sign` support ([#320](https://github.com/MetaMask/eth-json-rpc-middleware/pull/320))
116
+
- The functions `ethSign` and `processEthSignMessage` have been removed
117
+
118
+
## [14.0.2]
119
+
### Fixed
120
+
- Allow the string "cosmos" in the "verifyingContract" field of EIP-712 signatures ([#333](https://github.com/MetaMask/eth-json-rpc-middleware/pull/333))
121
+
- This change was made to support Ethermint's EIP-712 implementation, which was broken by validation added in v14.0.0
122
+
9
123
## [14.0.1]
10
124
### Fixed
11
125
- Request validation should not throw if verifyingContract is not defined in typed signature ([#328](https://github.com/MetaMask/eth-json-rpc-middleware/pull/328))
@@ -206,7 +320,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
0 commit comments