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
{{ message }}
This repository was archived by the owner on Nov 9, 2023. It is now read-only.
- All exports are now named, and available via the package entry point.
20
+
- All default exports have been removed.
21
+
-**(BREAKING)** Convert `asMiddleware` to instance method ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69))
22
+
- The `asMiddleware` export has been removed.
23
+
-**(BREAKING)** Add runtime typechecks to `JsonRpcEngine.handle()`, and error responses if they fail ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70))
24
+
- Requests will now error if:
25
+
- The request is not a plain object, or if the `method` property is not a `string`. Empty strings are allowed.
26
+
- A `next` middleware callback is called with a truthy, non-function parameter.
27
+
- Migrate to TypeScript ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69))
28
+
- Hopefully improve stack traces by removing uses of `Promise.then` and `.catch` internally ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70))
29
+
- Make some internal `JsonRpcEngine` methods `static` ([#71](https://github.com/MetaMask/json-rpc-engine/pull/71))
30
+
10
31
## [5.4.0] - 2020-11-07
11
32
12
33
### Changed
@@ -33,3 +54,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
54
They have been replaced with Promises and native `async`/`await`, which means that some operations are _no longer_ eagerly executed.
34
55
This change may affect consumers that depend on the eager execution of middleware _during_ request processing, _outside of_ middleware functions and request handlers.
35
56
- In general, it is a bad practice to work with state that depends on middleware execution, while the middleware are executing.
0 commit comments