@metamask-previews/json-rpc-engine 9.0.2-preview-0e33265 → 9.0.2-preview-ea7e75d5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -31,6 +31,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
31
 
32
32
  ### Changed
33
33
 
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`.
34
39
  - Bump TypeScript version to `~4.9.5` ([#4084](https://github.com/MetaMask/core/pull/4084))
35
40
 
36
41
  ## [8.0.1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/json-rpc-engine",
3
- "version": "9.0.2-preview-0e33265",
3
+ "version": "9.0.2-preview-ea7e75d5",
4
4
  "description": "A tool for processing JSON-RPC messages",
5
5
  "keywords": [
6
6
  "MetaMask",