@metamask-previews/json-rpc-engine 11.0.0-preview-d4ac59b6e → 11.0.0-preview-c3d36da85
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.
- package/CHANGELOG.md +5 -111
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -223,7 +223,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
223
223
|
|
|
224
224
|
### Added
|
|
225
225
|
|
|
226
|
-
-
|
|
226
|
+
- This package was migrated from `MetaMask/json-rpc-engine` to the
|
|
227
|
+
`MetaMask/core` monorepo ([#1895](https://github.com/MetaMask/core/pull/1895))
|
|
228
|
+
- See [`MetaMask/json-rpc-engine`](https://github.com/MetaMask/json-rpc-engine/blob/main/CHANGELOG.md)
|
|
229
|
+
for the original changelog.
|
|
227
230
|
|
|
228
231
|
### Changed
|
|
229
232
|
|
|
@@ -231,106 +234,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
231
234
|
- Bump `@metamask/rpc-errors` from `^6.0.0` to `^6.1.0` ([#1882](https://github.com/MetaMask/core/pull/1882))
|
|
232
235
|
- Bump `@metamask/auto-changelog` from `3.4.2` to `3.4.3` ([#1997](https://github.com/MetaMask/core/pull/1997))
|
|
233
236
|
|
|
234
|
-
## [7.2.0]
|
|
235
|
-
|
|
236
|
-
### Added
|
|
237
|
-
|
|
238
|
-
- Applied eslint rules from core monorepo ([#172](https://github.com/MetaMask/json-rpc-engine/pull/172))
|
|
239
|
-
|
|
240
|
-
## [7.1.1]
|
|
241
|
-
|
|
242
|
-
### Changed
|
|
243
|
-
|
|
244
|
-
- Bumped `@metamask/utils` from `^5.0.2` to `^8.1.0` [#158](https://github.com/MetaMask/json-rpc-engine/pull/158) ([#162](https://github.com/MetaMask/json-rpc-engine/pull/162))
|
|
245
|
-
- Bumped `@metamask/rpc-errors` from `^5.0.0` to `^6.0.0` ([#162](https://github.com/MetaMask/json-rpc-engine/pull/162))
|
|
246
|
-
|
|
247
|
-
## [7.1.0]
|
|
248
|
-
|
|
249
|
-
### Changed
|
|
250
|
-
|
|
251
|
-
- Bumped `@metamask/safe-event-emitter` from `^2.0.0` to `^3.0.0` ([#148](https://github.com/MetaMask/json-rpc-engine/pull/148))
|
|
252
|
-
- Bumped `@metamask/utils` from `^5.0.1` to `^5.0.2` ([#151](https://github.com/MetaMask/json-rpc-engine/pull/151))
|
|
253
|
-
|
|
254
|
-
### Fixed
|
|
255
|
-
|
|
256
|
-
- Fixed handling of empty batch array in requests ([#153](https://github.com/MetaMask/json-rpc-engine/pull/153))
|
|
257
|
-
|
|
258
|
-
## [7.0.0]
|
|
259
|
-
|
|
260
|
-
### Added
|
|
261
|
-
|
|
262
|
-
- Added JSON-RPC notification handling ([#104](https://github.com/MetaMask/json-rpc-engine/pull/104))
|
|
263
|
-
- Added `destroy` method ([#106](https://github.com/MetaMask/json-rpc-engine/pull/106))
|
|
264
|
-
|
|
265
|
-
### Changed
|
|
266
|
-
|
|
267
|
-
- **BREAKING:** Require a minimum Node version of 16 ([#139](https://github.com/MetaMask/json-rpc-engine/pull/139))
|
|
268
|
-
- **BREAKING:** Use `@metamask/utils` types ([#105](https://github.com/MetaMask/json-rpc-engine/pull/105))
|
|
269
|
-
- The JSON-RPC engine and all middleware now use `@metamask/utils` JSON-RPC types
|
|
270
|
-
- **(BREAKING)** Return a `null` instead of `undefined` response `id` for malformed request objects ([#91](https://github.com/MetaMask/json-rpc-engine/pull/91))
|
|
271
|
-
- This is very unlikely to be breaking in practice, but the behavior could have been relied on.
|
|
272
|
-
- Change package name to `@metamask/json-rpc-engine` ([#139](https://github.com/MetaMask/json-rpc-engine/pull/139))
|
|
273
|
-
- Use `@metamask/rpc-errors` ([#138](https://github.com/MetaMask/json-rpc-engine/pull/138))
|
|
274
|
-
|
|
275
|
-
## [6.1.0] - 2020-11-20
|
|
276
|
-
|
|
277
|
-
### Added
|
|
278
|
-
|
|
279
|
-
- Add `PendingJsonRpcResponse` interface for use in middleware ([#75](https://github.com/MetaMask/json-rpc-engine/pull/75))
|
|
280
|
-
|
|
281
|
-
### Changed
|
|
282
|
-
|
|
283
|
-
- Use `async`/`await` and `try`/`catch` instead of Promise methods everywhere ([#74](https://github.com/MetaMask/json-rpc-engine/pull/74))
|
|
284
|
-
- Consumers may notice improved stack traces on certain platforms.
|
|
285
|
-
|
|
286
|
-
## [6.0.0] - 2020-11-19
|
|
287
|
-
|
|
288
|
-
### Added
|
|
289
|
-
|
|
290
|
-
- Add docstrings for public `JsonRpcEngine` methods ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70))
|
|
291
|
-
|
|
292
|
-
### Changed
|
|
293
|
-
|
|
294
|
-
- **(BREAKING)** Refactor exports ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69))
|
|
295
|
-
- All exports are now named, and available via the package entry point.
|
|
296
|
-
- All default exports have been removed.
|
|
297
|
-
- **(BREAKING)** Convert `asMiddleware` to instance method ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69))
|
|
298
|
-
- The `asMiddleware` export has been removed.
|
|
299
|
-
- **(BREAKING)** Add runtime typechecks to `JsonRpcEngine.handle()`, and error responses if they fail ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70))
|
|
300
|
-
- Requests will now error if:
|
|
301
|
-
- The request is not a plain object, or if the `method` property is not a `string`. Empty strings are allowed.
|
|
302
|
-
- A `next` middleware callback is called with a truthy, non-function parameter.
|
|
303
|
-
- Migrate to TypeScript ([#69](https://github.com/MetaMask/json-rpc-engine/pull/69))
|
|
304
|
-
- Hopefully improve stack traces by removing uses of `Promise.then` and `.catch` internally ([#70](https://github.com/MetaMask/json-rpc-engine/pull/70))
|
|
305
|
-
- Make some internal `JsonRpcEngine` methods `static` ([#71](https://github.com/MetaMask/json-rpc-engine/pull/71))
|
|
306
|
-
|
|
307
|
-
## [5.4.0] - 2020-11-07
|
|
308
|
-
|
|
309
|
-
### Changed
|
|
310
|
-
|
|
311
|
-
- Make the TypeScript types not terrible ([#66](https://github.com/MetaMask/json-rpc-engine/pull/66), [#67](https://github.com/MetaMask/json-rpc-engine/pull/67))
|
|
312
|
-
|
|
313
|
-
## [5.3.0] - 2020-07-30
|
|
314
|
-
|
|
315
|
-
### Changed
|
|
316
|
-
|
|
317
|
-
- Response object errors no longer include a `stack` property
|
|
318
|
-
|
|
319
|
-
## [5.2.0] - 2020-07-24
|
|
320
|
-
|
|
321
|
-
### Added
|
|
322
|
-
|
|
323
|
-
- Promise signatures for `engine.handle` ([#55](https://github.com/MetaMask/json-rpc-engine/pull/55))
|
|
324
|
-
- So, in addition to `engine.handle(request, callback)`, you can do e.g. `await engine.handle(request)`.
|
|
325
|
-
|
|
326
|
-
### Changed
|
|
327
|
-
|
|
328
|
-
- Remove `async` and `promise-to-callback` dependencies
|
|
329
|
-
- These dependencies were used internally for middleware flow control.
|
|
330
|
-
They have been replaced with Promises and native `async`/`await`, which means that some operations are _no longer_ eagerly executed.
|
|
331
|
-
This change may affect consumers that depend on the eager execution of middleware _during_ request processing, _outside of_ middleware functions and request handlers.
|
|
332
|
-
- In general, it is a bad practice to work with state that depends on middleware execution, while the middleware are executing.
|
|
333
|
-
|
|
334
237
|
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@11.0.0...HEAD
|
|
335
238
|
[11.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@10.5.0...@metamask/json-rpc-engine@11.0.0
|
|
336
239
|
[10.5.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@10.4.0...@metamask/json-rpc-engine@10.5.0
|
|
@@ -357,13 +260,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
357
260
|
[7.3.3]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@7.3.2...@metamask/json-rpc-engine@7.3.3
|
|
358
261
|
[7.3.2]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@7.3.1...@metamask/json-rpc-engine@7.3.2
|
|
359
262
|
[7.3.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@7.3.0...@metamask/json-rpc-engine@7.3.1
|
|
360
|
-
[7.3.0]: https://github.com/MetaMask/core/
|
|
361
|
-
[7.2.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@7.1.1...@metamask/json-rpc-engine@7.2.0
|
|
362
|
-
[7.1.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@7.1.0...@metamask/json-rpc-engine@7.1.1
|
|
363
|
-
[7.1.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-engine@7.0.0...@metamask/json-rpc-engine@7.1.0
|
|
364
|
-
[7.0.0]: https://github.com/MetaMask/core/compare/json-rpc-engine@6.1.0...@metamask/json-rpc-engine@7.0.0
|
|
365
|
-
[6.1.0]: https://github.com/MetaMask/core/compare/json-rpc-engine@6.0.0...json-rpc-engine@6.1.0
|
|
366
|
-
[6.0.0]: https://github.com/MetaMask/core/compare/json-rpc-engine@5.4.0...json-rpc-engine@6.0.0
|
|
367
|
-
[5.4.0]: https://github.com/MetaMask/core/compare/json-rpc-engine@5.3.0...json-rpc-engine@5.4.0
|
|
368
|
-
[5.3.0]: https://github.com/MetaMask/core/compare/json-rpc-engine@5.2.0...json-rpc-engine@5.3.0
|
|
369
|
-
[5.2.0]: https://github.com/MetaMask/core/releases/tag/json-rpc-engine@5.2.0
|
|
263
|
+
[7.3.0]: https://github.com/MetaMask/core/releases/tag/@metamask/json-rpc-engine@7.3.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/json-rpc-engine",
|
|
3
|
-
"version": "11.0.0-preview-
|
|
3
|
+
"version": "11.0.0-preview-c3d36da85",
|
|
4
4
|
"description": "A tool for processing JSON-RPC messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ethereum",
|
|
@@ -45,13 +45,14 @@
|
|
|
45
45
|
"build:clean": "yarn build:only-clean && yarn build",
|
|
46
46
|
"build:docs": "typedoc",
|
|
47
47
|
"build:only-clean": "rimraf './dist' './tsconfig.build.tsbuildinfo'",
|
|
48
|
-
"changelog:update": "../../scripts/update-changelog.sh @metamask/json-rpc-engine
|
|
49
|
-
"changelog:validate": "../../scripts/validate-changelog.sh
|
|
48
|
+
"changelog:update": "../../scripts/update-changelog.sh @metamask/json-rpc-engine",
|
|
49
|
+
"changelog:validate": "../../scripts/validate-changelog.sh",
|
|
50
50
|
"lint:tsconfigs": "node --import ../../scripts/resolver/register.ts ../../scripts/lint-tsconfigs/lint-tsconfigs.ts",
|
|
51
51
|
"lint:tsconfigs:fix": "node --import ../../scripts/resolver/register.ts ../../scripts/lint-tsconfigs/lint-tsconfigs.ts --fix",
|
|
52
52
|
"since-latest-release": "../../scripts/since-latest-release.sh",
|
|
53
53
|
"test": "vitest",
|
|
54
54
|
"test:clean": "vitest --clearCache",
|
|
55
|
+
"test:coverage": "vitest --coverage",
|
|
55
56
|
"test:verbose": "vitest --reporter=verbose",
|
|
56
57
|
"test:watch": "vitest --watch"
|
|
57
58
|
},
|
|
@@ -67,12 +68,12 @@
|
|
|
67
68
|
"devDependencies": {
|
|
68
69
|
"@lavamoat/allow-scripts": "^5.1.0",
|
|
69
70
|
"@lavamoat/preinstall-always-fail": "^3.0.0",
|
|
70
|
-
"@metamask/auto-changelog": "^
|
|
71
|
+
"@metamask/auto-changelog": "^7.1.0",
|
|
71
72
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
72
73
|
"rimraf": "^6.1.3",
|
|
73
74
|
"typedoc": "^0.28.20",
|
|
74
75
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
75
|
-
"vitest": "
|
|
76
|
+
"vitest": "5.0.3"
|
|
76
77
|
},
|
|
77
78
|
"engines": {
|
|
78
79
|
"node": "^22.14.0 || ^24 || ^26"
|