Skip to content

Commit 13781b2

Browse files
committed
Retroactive update of json-rpc-engine changelog
1 parent 41ba4e6 commit 13781b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/json-rpc-engine/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131

3232
### Changed
3333

34+
- Widen the `error` parameter of `JsonRpcEngineReturnHandler`, `JsonRpcEngineEndCallback` function types from `JsonRpcEngineCallbackError` to `unknown` ([#3906](https://github.com/MetaMask/core/pull/3906))
35+
- Narrow the function parameters `req`, `callback` of the last overload of the `handle` method of the `JsonRpcEngine` class ([#3906](https://github.com/MetaMask/core/pull/3906))
36+
- This applies to the overload with two function parameters, one required and one optional, and no generic parameters.
37+
- `req` is narrowed from `unknown` to `(JsonRpcRequest | JsonRpcNotification)[] | JsonRpcRequest | JsonRpcNotification`.
38+
- `callback` is narrowed from `any` to `(error: unknown, response: never) => void`.
3439
- Bump TypeScript version to `~4.9.5` ([#4084](https://github.com/MetaMask/core/pull/4084))
3540

3641
## [8.0.1]

0 commit comments

Comments
 (0)