From 494c5c4d287946081311ab8a3aea48a57f736da6 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Thu, 19 Nov 2020 09:50:52 -0800 Subject: [PATCH 1/2] 6.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d5bc17c..093a902 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json-rpc-engine", - "version": "5.4.0", + "version": "6.0.0", "description": "A tool for processing JSON-RPC messages.", "license": "ISC", "author": "kumavis", From 6ff86fab775a1fc9edf303d562fe1859248045ea Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Thu, 19 Nov 2020 10:48:22 -0800 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4c567a..fd3a8d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [6.0.0] - 2020-11-19 + +### Added + +- Add docstrings for public `JsonRpcEngine` methods ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70)) + +### Changed + +- **(BREAKING)** Refactor exports ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69)) + - All exports are now named, and available via the package entry point. + - All default exports have been removed. +- **(BREAKING)** Convert `asMiddleware` to instance method ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69)) + - The `asMiddleware` export has been removed. +- **(BREAKING)** Add runtime typechecks to `JsonRpcEngine.handle()`, and error responses if they fail ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70)) + - Requests will now error if: + - The request is not a plain object, or if the `method` property is not a `string`. Empty strings are allowed. + - A `next` middleware callback is called with a truthy, non-function parameter. +- Migrate to TypeScript ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69)) +- Hopefully improve stack traces by removing uses of `Promise.then` and `.catch` internally ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70)) +- Make some internal `JsonRpcEngine` methods `static` ([#71](https://github.com/MetaMask/json-rpc-engine/pull/71)) + ## [5.4.0] - 2020-11-07 ### Changed @@ -33,3 +54,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 They have been replaced with Promises and native `async`/`await`, which means that some operations are _no longer_ eagerly executed. This change may affect consumers that depend on the eager execution of middleware _during_ request processing, _outside of_ middleware functions and request handlers. - In general, it is a bad practice to work with state that depends on middleware execution, while the middleware are executing. + +[Unreleased]:https://github.com/MetaMask/json-rpc-engine/compare/v6.0.0...HEAD +[6.0.0]:https://github.com/MetaMask/json-rpc-engine/compare/v5.4.0...v6.0.0 +[5.4.0]:https://github.com/MetaMask/json-rpc-engine/compare/v5.3.0...v5.4.0 +[5.3.0]:https://github.com/MetaMask/json-rpc-engine/compare/v5.2.0...v5.3.0 +[5.2.0]:https://github.com/MetaMask/json-rpc-engine/compare/v5.1.8...v5.2.0 +[5.1.8]:https://github.com/MetaMask/json-rpc-engine/compare/v5.1.6...v5.1.8 +[5.1.6]:https://github.com/MetaMask/json-rpc-engine/compare/v5.1.5...v5.1.6 +[5.1.5]:https://github.com/MetaMask/json-rpc-engine/compare/v5.1.4...v5.1.5 +[5.1.4]:https://github.com/MetaMask/json-rpc-engine/compare/v5.1.3...v5.1.4 +[5.1.3]:https://github.com/MetaMask/json-rpc-engine/compare/v5.1.1...v5.1.3 +[5.1.1]:https://github.com/MetaMask/json-rpc-engine/compare/v5.1.0...v5.1.1 +[5.1.0]:https://github.com/MetaMask/json-rpc-engine/compare/v5.0.0...v5.1.0 +[5.0.0]:https://github.com/MetaMask/json-rpc-engine/compare/v4.0.0...v5.0.0