From c3ae77e7e5d02525b1ea307568cf8b0e81525e9c Mon Sep 17 00:00:00 2001 From: legobeat <109787230+legobeat@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:49:28 +0000 Subject: [PATCH] deps: @metamask/rpc-errors@^6.3.1->^7.0.0 (#4769) --- package.json | 2 +- packages/approval-controller/package.json | 2 +- packages/assets-controllers/package.json | 2 +- .../src/safe-event-emitter-provider.test.ts | 2 +- packages/network-controller/package.json | 10 +- packages/permission-controller/package.json | 4 +- .../queued-request-controller/package.json | 4 +- packages/rate-limit-controller/package.json | 2 +- packages/transaction-controller/package.json | 2 +- .../user-operation-controller/package.json | 2 +- yarn.lock | 115 +++++++----------- 11 files changed, 62 insertions(+), 85 deletions(-) diff --git a/package.json b/package.json index 1e5ef6a5b8..54cf41688f 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", "@metamask/eslint-config-typescript": "^12.1.0", - "@metamask/eth-block-tracker": "^10.0.0", + "@metamask/eth-block-tracker": "^11.0.2", "@metamask/eth-json-rpc-provider": "^4.1.5", "@metamask/json-rpc-engine": "^10.0.0", "@metamask/utils": "^9.1.0", diff --git a/packages/approval-controller/package.json b/packages/approval-controller/package.json index ce76d3945b..5531e610c1 100644 --- a/packages/approval-controller/package.json +++ b/packages/approval-controller/package.json @@ -48,7 +48,7 @@ }, "dependencies": { "@metamask/base-controller": "^7.0.1", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/rpc-errors": "^7.0.0", "@metamask/utils": "^9.1.0", "nanoid": "^3.1.31" }, diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index e046347289..3cd70be608 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -59,7 +59,7 @@ "@metamask/eth-query": "^4.0.0", "@metamask/metamask-eth-abis": "^3.1.1", "@metamask/polling-controller": "^10.0.1", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/rpc-errors": "^7.0.0", "@metamask/utils": "^9.1.0", "@types/bn.js": "^5.1.5", "@types/uuid": "^8.3.0", diff --git a/packages/eth-json-rpc-provider/src/safe-event-emitter-provider.test.ts b/packages/eth-json-rpc-provider/src/safe-event-emitter-provider.test.ts index 3503ed284b..9bd35b38ef 100644 --- a/packages/eth-json-rpc-provider/src/safe-event-emitter-provider.test.ts +++ b/packages/eth-json-rpc-provider/src/safe-event-emitter-provider.test.ts @@ -222,7 +222,7 @@ describe('SafeEventEmitterProvider', () => { ).rejects.toThrow( expect.objectContaining({ code: -32603, - message: 'Internal JSON-RPC error.', + message: 'Test error', data: { cause: expect.objectContaining({ stack: expect.stringContaining( diff --git a/packages/network-controller/package.json b/packages/network-controller/package.json index ecc336a8c3..c9a0bfaba9 100644 --- a/packages/network-controller/package.json +++ b/packages/network-controller/package.json @@ -49,13 +49,13 @@ "dependencies": { "@metamask/base-controller": "^7.0.1", "@metamask/controller-utils": "^11.3.0", - "@metamask/eth-block-tracker": "^10.0.0", - "@metamask/eth-json-rpc-infura": "^9.1.0", - "@metamask/eth-json-rpc-middleware": "^13.0.0", + "@metamask/eth-block-tracker": "^11.0.2", + "@metamask/eth-json-rpc-infura": "^10.0.0", + "@metamask/eth-json-rpc-middleware": "^15.0.0", "@metamask/eth-json-rpc-provider": "^4.1.5", "@metamask/eth-query": "^4.0.0", - "@metamask/json-rpc-engine": "^9.0.3", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/json-rpc-engine": "^10.0.0", + "@metamask/rpc-errors": "^7.0.0", "@metamask/swappable-obj-proxy": "^2.2.0", "@metamask/utils": "^9.1.0", "async-mutex": "^0.5.0", diff --git a/packages/permission-controller/package.json b/packages/permission-controller/package.json index fb63c4c5dc..76f9b434ff 100644 --- a/packages/permission-controller/package.json +++ b/packages/permission-controller/package.json @@ -49,8 +49,8 @@ "dependencies": { "@metamask/base-controller": "^7.0.1", "@metamask/controller-utils": "^11.3.0", - "@metamask/json-rpc-engine": "^9.0.3", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/json-rpc-engine": "^10.0.0", + "@metamask/rpc-errors": "^7.0.0", "@metamask/utils": "^9.1.0", "@types/deep-freeze-strict": "^1.1.0", "deep-freeze-strict": "^1.1.1", diff --git a/packages/queued-request-controller/package.json b/packages/queued-request-controller/package.json index b850de2fdf..11f9e145bd 100644 --- a/packages/queued-request-controller/package.json +++ b/packages/queued-request-controller/package.json @@ -49,8 +49,8 @@ "dependencies": { "@metamask/base-controller": "^7.0.1", "@metamask/controller-utils": "^11.3.0", - "@metamask/json-rpc-engine": "^9.0.3", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/json-rpc-engine": "^10.0.0", + "@metamask/rpc-errors": "^7.0.0", "@metamask/swappable-obj-proxy": "^2.2.0", "@metamask/utils": "^9.1.0" }, diff --git a/packages/rate-limit-controller/package.json b/packages/rate-limit-controller/package.json index c663734490..353d02cf9b 100644 --- a/packages/rate-limit-controller/package.json +++ b/packages/rate-limit-controller/package.json @@ -48,7 +48,7 @@ }, "dependencies": { "@metamask/base-controller": "^7.0.1", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/rpc-errors": "^7.0.0", "@metamask/utils": "^9.1.0" }, "devDependencies": { diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index 80615f392d..f89241d96c 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -58,7 +58,7 @@ "@metamask/eth-query": "^4.0.0", "@metamask/metamask-eth-abis": "^3.1.1", "@metamask/nonce-tracker": "^6.0.0", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/rpc-errors": "^7.0.0", "@metamask/utils": "^9.1.0", "async-mutex": "^0.5.0", "bn.js": "^5.2.1", diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index 0f7bb4ee69..7711c7053b 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -52,7 +52,7 @@ "@metamask/controller-utils": "^11.3.0", "@metamask/eth-query": "^4.0.0", "@metamask/polling-controller": "^10.0.1", - "@metamask/rpc-errors": "^6.3.1", + "@metamask/rpc-errors": "^7.0.0", "@metamask/superstruct": "^3.1.0", "@metamask/utils": "^9.1.0", "bn.js": "^5.2.1", diff --git a/yarn.lock b/yarn.lock index ed66bdca2d..d9da69d579 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2109,7 +2109,7 @@ __metadata: dependencies: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^7.0.1" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/utils": "npm:^9.1.0" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" @@ -2147,7 +2147,7 @@ __metadata: "@metamask/network-controller": "npm:^21.0.1" "@metamask/polling-controller": "npm:^10.0.1" "@metamask/preferences-controller": "npm:^13.0.3" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/utils": "npm:^9.1.0" "@types/bn.js": "npm:^5.1.5" "@types/jest": "npm:^27.4.1" @@ -2365,7 +2365,7 @@ __metadata: "@metamask/eslint-config-jest": "npm:^12.1.0" "@metamask/eslint-config-nodejs": "npm:^12.1.0" "@metamask/eslint-config-typescript": "npm:^12.1.0" - "@metamask/eth-block-tracker": "npm:^10.0.0" + "@metamask/eth-block-tracker": "npm:^11.0.2" "@metamask/eth-json-rpc-provider": "npm:^4.1.5" "@metamask/json-rpc-engine": "npm:^10.0.0" "@metamask/utils": "npm:^9.1.0" @@ -2501,16 +2501,16 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-block-tracker@npm:^10.0.0": - version: 10.0.0 - resolution: "@metamask/eth-block-tracker@npm:10.0.0" +"@metamask/eth-block-tracker@npm:^11.0.1, @metamask/eth-block-tracker@npm:^11.0.2": + version: 11.0.2 + resolution: "@metamask/eth-block-tracker@npm:11.0.2" dependencies: - "@metamask/eth-json-rpc-provider": "npm:^4.0.0" - "@metamask/safe-event-emitter": "npm:^3.0.0" - "@metamask/utils": "npm:^8.1.0" + "@metamask/eth-json-rpc-provider": "npm:^4.1.5" + "@metamask/safe-event-emitter": "npm:^3.1.1" + "@metamask/utils": "npm:^9.1.0" json-rpc-random-id: "npm:^1.0.1" pify: "npm:^5.0.0" - checksum: 10/c035482544830d2b2d07db9a6b2002f387c2df2d25c0eb82a381a11de9efbf35f7b6e35fc868cc46424d1a13a75dde4c8146dbbc9d48155a0d882625b20cfca0 + checksum: 10/11d22bd86056401aa41eff5a32e862f3644eaf03040d8aa54a95cb0c1dfd3e3ce7e650c25efabbe0954cc6ba5f92172c338b518df84f73c4601c4bbc960b588a languageName: node linkType: hard @@ -2527,50 +2527,38 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-json-rpc-infura@npm:^9.1.0": - version: 9.1.0 - resolution: "@metamask/eth-json-rpc-infura@npm:9.1.0" +"@metamask/eth-json-rpc-infura@npm:^10.0.0": + version: 10.0.0 + resolution: "@metamask/eth-json-rpc-infura@npm:10.0.0" dependencies: - "@metamask/eth-json-rpc-provider": "npm:^2.1.0" - "@metamask/json-rpc-engine": "npm:^7.1.1" - "@metamask/rpc-errors": "npm:^6.0.0" - "@metamask/utils": "npm:^8.1.0" - node-fetch: "npm:^2.7.0" - checksum: 10/9e01b3eb76d3f1b4989ba368f11acb124eb846321020e2fba8c7ff77dc5258fa2df1556f40812d736d63ee159a944beab6a761a661f72e722badcb4f78b5f0f6 + "@metamask/eth-json-rpc-provider": "npm:^4.1.5" + "@metamask/json-rpc-engine": "npm:^10.0.0" + "@metamask/rpc-errors": "npm:^7.0.0" + "@metamask/utils": "npm:^9.1.0" + checksum: 10/17e0147ff86c48107983035e9bda4d16fba321ee0e29733347e9338a4c795c506a2ffd643c44c9d5334886696412cf288f852d06311fed0d76edc8847ee6b8de languageName: node linkType: hard -"@metamask/eth-json-rpc-middleware@npm:^13.0.0": - version: 13.0.0 - resolution: "@metamask/eth-json-rpc-middleware@npm:13.0.0" +"@metamask/eth-json-rpc-middleware@npm:^15.0.0": + version: 15.0.0 + resolution: "@metamask/eth-json-rpc-middleware@npm:15.0.0" dependencies: - "@metamask/eth-block-tracker": "npm:^10.0.0" - "@metamask/eth-json-rpc-provider": "npm:^4.0.0" - "@metamask/eth-sig-util": "npm:^7.0.0" - "@metamask/json-rpc-engine": "npm:^9.0.0" - "@metamask/rpc-errors": "npm:^6.0.0" - "@metamask/utils": "npm:^8.1.0" + "@metamask/eth-block-tracker": "npm:^11.0.1" + "@metamask/eth-json-rpc-provider": "npm:^4.1.5" + "@metamask/eth-sig-util": "npm:^7.0.3" + "@metamask/json-rpc-engine": "npm:^10.0.0" + "@metamask/rpc-errors": "npm:^7.0.0" + "@metamask/utils": "npm:^9.1.0" "@types/bn.js": "npm:^5.1.5" bn.js: "npm:^5.2.1" klona: "npm:^2.0.6" pify: "npm:^5.0.0" safe-stable-stringify: "npm:^2.4.3" - checksum: 10/e2b38da46b15e7c3d75fc0a1191ff5e2a0161c847c415640024155bea635016a0c94a4bd352b5aa6aa7e95615cb45c030a0f1cbc90c2dca331de3f5306df3d3a - languageName: node - linkType: hard - -"@metamask/eth-json-rpc-provider@npm:^2.1.0": - version: 2.3.2 - resolution: "@metamask/eth-json-rpc-provider@npm:2.3.2" - dependencies: - "@metamask/json-rpc-engine": "npm:^7.3.2" - "@metamask/safe-event-emitter": "npm:^3.0.0" - "@metamask/utils": "npm:^8.3.0" - checksum: 10/e6731271aad3b972d85b9230c26d35a9b88722f3bd3024675ad2f568e634e9fdfef4717ef2892f3cc512d381cf17a4e20dbd5eb808ced765082bea3379ad6ddc + checksum: 10/3c48d34264c695535f2b4e819fb602d835b6ed37309116a06d04d1b706a7335e0205cd4ccdbf1d3e9dc15ebf40d88954a9a2dc18a91f223dcd6d6392e026a5e9 languageName: node linkType: hard -"@metamask/eth-json-rpc-provider@npm:^4.0.0, @metamask/eth-json-rpc-provider@npm:^4.1.5, @metamask/eth-json-rpc-provider@workspace:packages/eth-json-rpc-provider": +"@metamask/eth-json-rpc-provider@npm:^4.1.5, @metamask/eth-json-rpc-provider@workspace:packages/eth-json-rpc-provider": version: 0.0.0-use.local resolution: "@metamask/eth-json-rpc-provider@workspace:packages/eth-json-rpc-provider" dependencies: @@ -2604,7 +2592,7 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-sig-util@npm:^7.0.0, @metamask/eth-sig-util@npm:^7.0.1, @metamask/eth-sig-util@npm:^7.0.3": +"@metamask/eth-sig-util@npm:^7.0.1, @metamask/eth-sig-util@npm:^7.0.3": version: 7.0.3 resolution: "@metamask/eth-sig-util@npm:7.0.3" dependencies: @@ -2864,18 +2852,7 @@ __metadata: languageName: unknown linkType: soft -"@metamask/json-rpc-engine@npm:^7.1.1, @metamask/json-rpc-engine@npm:^7.3.2": - version: 7.3.3 - resolution: "@metamask/json-rpc-engine@npm:7.3.3" - dependencies: - "@metamask/rpc-errors": "npm:^6.2.1" - "@metamask/safe-event-emitter": "npm:^3.0.0" - "@metamask/utils": "npm:^8.3.0" - checksum: 10/116664c974c522d280335d9a02cba731e4f08562c2980415f7535513cd308c7e612e52618086996e5ac2b67db7f1e6ac1bd8201aba7825163db17a25f2874cc9 - languageName: node - linkType: hard - -"@metamask/json-rpc-engine@npm:^9.0.0, @metamask/json-rpc-engine@npm:^9.0.1, @metamask/json-rpc-engine@npm:^9.0.2, @metamask/json-rpc-engine@npm:^9.0.3": +"@metamask/json-rpc-engine@npm:^9.0.1, @metamask/json-rpc-engine@npm:^9.0.2": version: 9.0.3 resolution: "@metamask/json-rpc-engine@npm:9.0.3" dependencies: @@ -3048,13 +3025,13 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^7.0.1" "@metamask/controller-utils": "npm:^11.3.0" - "@metamask/eth-block-tracker": "npm:^10.0.0" - "@metamask/eth-json-rpc-infura": "npm:^9.1.0" - "@metamask/eth-json-rpc-middleware": "npm:^13.0.0" + "@metamask/eth-block-tracker": "npm:^11.0.2" + "@metamask/eth-json-rpc-infura": "npm:^10.0.0" + "@metamask/eth-json-rpc-middleware": "npm:^15.0.0" "@metamask/eth-json-rpc-provider": "npm:^4.1.5" "@metamask/eth-query": "npm:^4.0.0" - "@metamask/json-rpc-engine": "npm:^9.0.3" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/json-rpc-engine": "npm:^10.0.0" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/swappable-obj-proxy": "npm:^2.2.0" "@metamask/utils": "npm:^9.1.0" "@types/jest": "npm:^27.4.1" @@ -3179,8 +3156,8 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^7.0.1" "@metamask/controller-utils": "npm:^11.3.0" - "@metamask/json-rpc-engine": "npm:^9.0.3" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/json-rpc-engine": "npm:^10.0.0" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/utils": "npm:^9.1.0" "@types/deep-freeze-strict": "npm:^1.1.0" "@types/jest": "npm:^27.4.1" @@ -3363,9 +3340,9 @@ __metadata: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^7.0.1" "@metamask/controller-utils": "npm:^11.3.0" - "@metamask/json-rpc-engine": "npm:^9.0.3" + "@metamask/json-rpc-engine": "npm:^10.0.0" "@metamask/network-controller": "npm:^21.0.1" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/selected-network-controller": "npm:^18.0.2" "@metamask/swappable-obj-proxy": "npm:^2.2.0" "@metamask/utils": "npm:^9.1.0" @@ -3392,7 +3369,7 @@ __metadata: dependencies: "@metamask/auto-changelog": "npm:^3.4.4" "@metamask/base-controller": "npm:^7.0.1" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/utils": "npm:^9.1.0" "@types/jest": "npm:^27.4.1" deepmerge: "npm:^4.2.2" @@ -3404,7 +3381,7 @@ __metadata: languageName: unknown linkType: soft -"@metamask/rpc-errors@npm:^6.0.0, @metamask/rpc-errors@npm:^6.2.1, @metamask/rpc-errors@npm:^6.3.1": +"@metamask/rpc-errors@npm:^6.3.1": version: 6.3.1 resolution: "@metamask/rpc-errors@npm:6.3.1" dependencies: @@ -3690,7 +3667,7 @@ __metadata: "@metamask/metamask-eth-abis": "npm:^3.1.1" "@metamask/network-controller": "npm:^21.0.1" "@metamask/nonce-tracker": "npm:^6.0.0" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/utils": "npm:^9.1.0" "@types/bn.js": "npm:^5.1.5" "@types/jest": "npm:^27.4.1" @@ -3732,7 +3709,7 @@ __metadata: "@metamask/keyring-controller": "npm:^17.2.2" "@metamask/network-controller": "npm:^21.0.1" "@metamask/polling-controller": "npm:^10.0.1" - "@metamask/rpc-errors": "npm:^6.3.1" + "@metamask/rpc-errors": "npm:^7.0.0" "@metamask/superstruct": "npm:^3.1.0" "@metamask/transaction-controller": "npm:^37.3.0" "@metamask/utils": "npm:^9.1.0" @@ -3756,7 +3733,7 @@ __metadata: languageName: unknown linkType: soft -"@metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.2.0, @metamask/utils@npm:^8.3.0": +"@metamask/utils@npm:^8.2.0": version: 8.5.0 resolution: "@metamask/utils@npm:8.5.0" dependencies: @@ -10066,7 +10043,7 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^2.6.1, node-fetch@npm:^2.7.0": +"node-fetch@npm:^2.6.1": version: 2.7.0 resolution: "node-fetch@npm:2.7.0" dependencies: