From cede015a25efcc47df210f0e266460a23d060fce Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Tue, 23 Jul 2024 10:41:37 -0400 Subject: [PATCH] Release 58.0.0 (#2595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Explanation This is the release candidate for `v58.0.0`. - `@metamask/snaps-controllers@9.3.1` (patch) - `@metamask/snaps-execution-environments@6.6.2` (patch) - `@metamask/snaps-rpc-methods@10.0.1` (patch) - `@metamask/snaps-utils@7.8.1` (patch) ## Notes - Removes `@metamask/utils` yarn resolution to `9.1.0`. - Bumps `@metamask/eth-json-rpc-middleware` from `^12.1.2` to `^13.0.0` in `@metamask/snaps-{jest,simulator}`. - The `permission-controller` major version bump doesn't affect the snaps monorepo as a breaking change, as the updated enums `CaveatMutatorOperations`, `MethodNames` are not used in any snaps package. ## Blockers - [x] Blocked by https://github.com/MetaMask/snaps/issues/2579: With yarn resolution for `@metamask/utils` removed, `@metamask/snaps-execution-environments` experiences a build error due to version mismatch between `@metamask/providers` (`@metamask/utils@8.5.0`) and `@metamask/utils@9.1.0`. - Resolved with `@metamask/providers@17.1.2` - With `@metamask/providers@17.0.0` ```ts ➤ YN0000: [@metamask/snaps-execution-environments]: src/common/BaseSnapExecutor.ts(373,23): error TS2322: Type 'import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/json-rpc-engine/dist/types/JsonRpcEngine").JsonRpcMiddleware' is not assignable to type 'import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/utils/dist/json").JsonRpcRequest'. ➤ YN0000: [@metamask/snaps-execution-environments]: Type 'JsonRpcRequest' is not assignable to type '{ params?: ((Record | Json[]) & ExactOptionalGuard) | undefined; id: string | number | null; method: string; jsonrpc: "2.0"; }'. ➤ YN0000: [@metamask/snaps-execution-environments]: Types of property 'params' are incompatible. ➤ YN0000: [@metamask/snaps-execution-environments]: Type '(((Record | Json[]) & ExactOptionalGuard) & JsonRpcParams) | undefined' is not assignable to type '((Record | Json[]) & ExactOptionalGuard) | undefined'. ➤ YN0000: [@metamask/snaps-execution-environments]: Type 'Record & ExactOptionalGuard' is not assignable to type '((Record | Json[]) & ExactOptionalGuard) | undefined'. ➤ YN0000: [@metamask/snaps-execution-environments]: Type 'Record & ExactOptionalGuard' is not assignable to type 'Json[] & ExactOptionalGuard'. ➤ YN0000: [@metamask/snaps-execution-environments]: Type 'Record & ExactOptionalGua ``` - With yarn resolution entry `"@metamask/snaps-execution-environments/@metamask/providers": "17.1.1"` ```ts ➤ YN0000: [@metamask/snaps-execution-environments]: node_modules/@metamask/providers/dist/EIP6963.d.cts(11,9): error TS2717: Subsequent property declarations must have the same type. Property '[EIP6963EventNames.Request]' must be of type 'EIP6963RequestProviderEvent', but here has type 'EIP6963RequestProviderEvent'. ➤ YN0000: [@metamask/snaps-execution-environments]: node_modules/@metamask/providers/dist/EIP6963.d.cts(12,9): error TS2717: Subsequent property declarations must have the same type. Property '[EIP6963EventNames.Announce]' must be of type 'EIP6963AnnounceProviderEvent', but here has type 'EIP6963AnnounceProviderEvent'. ``` --- package.json | 3 +- packages/snaps-controllers/CHANGELOG.md | 13 ++- packages/snaps-controllers/package.json | 2 +- .../snaps-execution-environments/CHANGELOG.md | 8 +- .../lavamoat/browserify/iframe/policy.json | 17 +++- .../browserify/node-process/policy.json | 20 ++++- .../browserify/node-thread/policy.json | 20 ++++- .../lavamoat/browserify/webview/policy.json | 17 +++- .../browserify/worker-executor/policy.json | 17 +++- .../browserify/worker-pool/policy.json | 17 +++- .../snaps-execution-environments/package.json | 2 +- packages/snaps-jest/package.json | 2 +- packages/snaps-rpc-methods/CHANGELOG.md | 9 ++- packages/snaps-rpc-methods/package.json | 2 +- packages/snaps-simulator/package.json | 2 +- packages/snaps-utils/CHANGELOG.md | 8 +- packages/snaps-utils/package.json | 2 +- yarn.lock | 80 +++++++++++-------- 18 files changed, 188 insertions(+), 53 deletions(-) diff --git a/package.json b/package.json index c70793675d..4d69251cea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "root", - "version": "57.0.0", + "version": "58.0.0", "private": true, "repository": { "type": "git", @@ -50,7 +50,6 @@ "@babel/core": "patch:@babel/core@npm%3A7.23.2#./.yarn/patches/@babel-core-npm-7.23.2-b93f586907.patch", "@esbuild-plugins/node-modules-polyfill@^0.2.2": "patch:@esbuild-plugins/node-modules-polyfill@npm%3A0.2.2#./.yarn/patches/@esbuild-plugins-node-modules-polyfill-npm-0.2.2-f612681798.patch", "@lavamoat/lavapack@^6.1.1": "patch:@lavamoat/lavapack@npm%3A6.1.1#./.yarn/patches/@lavamoat-lavapack-npm-6.1.1-b81af21193.patch", - "@metamask/utils": "9.1.0", "@puppeteer/browsers@1.4.6": "patch:@puppeteer/browsers@npm%3A1.7.0#./.yarn/patches/@puppeteer-browsers-npm-1.7.0-203cb4f44b.patch", "@puppeteer/browsers@^1.6.0": "patch:@puppeteer/browsers@npm%3A1.7.0#./.yarn/patches/@puppeteer-browsers-npm-1.7.0-203cb4f44b.patch", "@types/glob@*": "patch:@types/glob@npm%3A7.1.4#./.yarn/patches/@types-glob-npm-7.1.4-d45247eaa2.patch", diff --git a/packages/snaps-controllers/CHANGELOG.md b/packages/snaps-controllers/CHANGELOG.md index 14dce5a0c0..3109f1b49f 100644 --- a/packages/snaps-controllers/CHANGELOG.md +++ b/packages/snaps-controllers/CHANGELOG.md @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [9.3.1] +### Changed +- Bump `@metamask/approval-controller` from `^7.0.0` to `^7.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/base-controller` from `^6.0.1` to `^6.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/json-rpc-engine` from `^9.0.0` to `^9.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/json-rpc-middleware-stream` from `^8.0.0` to `^8.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/permission-controller` from `^10.0.1` to `^11.0.0` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/phishing-controller` from `^10.0.0` to `^10.1.1` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/snaps-utils` from `^7.8.0` to `^7.8.1` ([#2595](https://github.com/MetaMask/snaps/pull/2595)) + ## [9.3.0] ### Added - Add `snap_resolveInterface` RPC method to the `SnapInterfaceController` ([#2509](https://github.com/metamask/snaps/pull/2509)) @@ -331,7 +341,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@9.3.0...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@9.3.1...HEAD +[9.3.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@9.3.0...@metamask/snaps-controllers@9.3.1 [9.3.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@9.2.0...@metamask/snaps-controllers@9.3.0 [9.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@9.1.0...@metamask/snaps-controllers@9.2.0 [9.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@9.0.0...@metamask/snaps-controllers@9.1.0 diff --git a/packages/snaps-controllers/package.json b/packages/snaps-controllers/package.json index be2237a071..cf476cdc6b 100644 --- a/packages/snaps-controllers/package.json +++ b/packages/snaps-controllers/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-controllers", - "version": "9.3.0", + "version": "9.3.1", "description": "Controllers for MetaMask Snaps.", "repository": { "type": "git", diff --git a/packages/snaps-execution-environments/CHANGELOG.md b/packages/snaps-execution-environments/CHANGELOG.md index 86576c6eb1..bedf52aec1 100644 --- a/packages/snaps-execution-environments/CHANGELOG.md +++ b/packages/snaps-execution-environments/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [6.6.2] +### Changed +- Bump `@metamask/json-rpc-engine` from `^9.0.0` to `^9.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/snaps-utils` from `^7.8.0` to `^7.8.1` ([#2595](https://github.com/MetaMask/snaps/pull/2595)) + ## [6.6.1] ### Changed - Bump `@metamask/rpc-errors` from `^6.2.1` to `^6.3.1` ([#2445](https://github.com/MetaMask/snaps/pull/2445)) @@ -235,7 +240,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.6.1...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.6.2...HEAD +[6.6.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.6.1...@metamask/snaps-execution-environments@6.6.2 [6.6.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.6.0...@metamask/snaps-execution-environments@6.6.1 [6.6.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.5.0...@metamask/snaps-execution-environments@6.6.0 [6.5.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-execution-environments@6.4.0...@metamask/snaps-execution-environments@6.5.0 diff --git a/packages/snaps-execution-environments/lavamoat/browserify/iframe/policy.json b/packages/snaps-execution-environments/lavamoat/browserify/iframe/policy.json index dae83f8c30..dfbe254cd1 100644 --- a/packages/snaps-execution-environments/lavamoat/browserify/iframe/policy.json +++ b/packages/snaps-execution-environments/lavamoat/browserify/iframe/policy.json @@ -33,10 +33,25 @@ "removeEventListener": true }, "packages": { - "@metamask/utils": true, + "@metamask/post-message-stream>@metamask/utils": true, "readable-stream": true } }, + "@metamask/post-message-stream>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/superstruct": true, + "@metamask/utils>@noble/hashes": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "browserify>buffer": true, + "depcheck>semver": true, + "tsup>debug": true + } + }, "@metamask/providers": { "globals": { "console": true diff --git a/packages/snaps-execution-environments/lavamoat/browserify/node-process/policy.json b/packages/snaps-execution-environments/lavamoat/browserify/node-process/policy.json index c448fad6ed..b86f744573 100644 --- a/packages/snaps-execution-environments/lavamoat/browserify/node-process/policy.json +++ b/packages/snaps-execution-environments/lavamoat/browserify/node-process/policy.json @@ -39,11 +39,29 @@ "removeEventListener": true }, "packages": { - "@metamask/utils": true, + "@metamask/post-message-stream>@metamask/utils": true, "readable-stream": true, "worker_threads": true } }, + "@metamask/post-message-stream>@metamask/utils": { + "builtin": { + "buffer.Buffer": true + }, + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/superstruct": true, + "@metamask/utils>@noble/hashes": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "buffer": true, + "depcheck>semver": true, + "tsup>debug": true + } + }, "@metamask/providers": { "globals": { "console": true diff --git a/packages/snaps-execution-environments/lavamoat/browserify/node-thread/policy.json b/packages/snaps-execution-environments/lavamoat/browserify/node-thread/policy.json index c448fad6ed..b86f744573 100644 --- a/packages/snaps-execution-environments/lavamoat/browserify/node-thread/policy.json +++ b/packages/snaps-execution-environments/lavamoat/browserify/node-thread/policy.json @@ -39,11 +39,29 @@ "removeEventListener": true }, "packages": { - "@metamask/utils": true, + "@metamask/post-message-stream>@metamask/utils": true, "readable-stream": true, "worker_threads": true } }, + "@metamask/post-message-stream>@metamask/utils": { + "builtin": { + "buffer.Buffer": true + }, + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/superstruct": true, + "@metamask/utils>@noble/hashes": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "buffer": true, + "depcheck>semver": true, + "tsup>debug": true + } + }, "@metamask/providers": { "globals": { "console": true diff --git a/packages/snaps-execution-environments/lavamoat/browserify/webview/policy.json b/packages/snaps-execution-environments/lavamoat/browserify/webview/policy.json index 67f5890896..9a320a6b25 100644 --- a/packages/snaps-execution-environments/lavamoat/browserify/webview/policy.json +++ b/packages/snaps-execution-environments/lavamoat/browserify/webview/policy.json @@ -12,10 +12,25 @@ "removeEventListener": true }, "packages": { - "@metamask/utils": true, + "@metamask/post-message-stream>@metamask/utils": true, "readable-stream": true } }, + "@metamask/post-message-stream>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/superstruct": true, + "@metamask/utils>@noble/hashes": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "browserify>buffer": true, + "depcheck>semver": true, + "tsup>debug": true + } + }, "@metamask/rpc-errors": { "packages": { "@metamask/rpc-errors>fast-safe-stringify": true, diff --git a/packages/snaps-execution-environments/lavamoat/browserify/worker-executor/policy.json b/packages/snaps-execution-environments/lavamoat/browserify/worker-executor/policy.json index dae83f8c30..dfbe254cd1 100644 --- a/packages/snaps-execution-environments/lavamoat/browserify/worker-executor/policy.json +++ b/packages/snaps-execution-environments/lavamoat/browserify/worker-executor/policy.json @@ -33,10 +33,25 @@ "removeEventListener": true }, "packages": { - "@metamask/utils": true, + "@metamask/post-message-stream>@metamask/utils": true, "readable-stream": true } }, + "@metamask/post-message-stream>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/superstruct": true, + "@metamask/utils>@noble/hashes": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "browserify>buffer": true, + "depcheck>semver": true, + "tsup>debug": true + } + }, "@metamask/providers": { "globals": { "console": true diff --git a/packages/snaps-execution-environments/lavamoat/browserify/worker-pool/policy.json b/packages/snaps-execution-environments/lavamoat/browserify/worker-pool/policy.json index 67f5890896..9a320a6b25 100644 --- a/packages/snaps-execution-environments/lavamoat/browserify/worker-pool/policy.json +++ b/packages/snaps-execution-environments/lavamoat/browserify/worker-pool/policy.json @@ -12,10 +12,25 @@ "removeEventListener": true }, "packages": { - "@metamask/utils": true, + "@metamask/post-message-stream>@metamask/utils": true, "readable-stream": true } }, + "@metamask/post-message-stream>@metamask/utils": { + "globals": { + "TextDecoder": true, + "TextEncoder": true + }, + "packages": { + "@metamask/superstruct": true, + "@metamask/utils>@noble/hashes": true, + "@metamask/utils>@scure/base": true, + "@metamask/utils>pony-cause": true, + "browserify>buffer": true, + "depcheck>semver": true, + "tsup>debug": true + } + }, "@metamask/rpc-errors": { "packages": { "@metamask/rpc-errors>fast-safe-stringify": true, diff --git a/packages/snaps-execution-environments/package.json b/packages/snaps-execution-environments/package.json index 53b2b11981..f50b25dc3c 100644 --- a/packages/snaps-execution-environments/package.json +++ b/packages/snaps-execution-environments/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-execution-environments", - "version": "6.6.1", + "version": "6.6.2", "description": "Snap sandbox environments for executing SES javascript", "repository": { "type": "git", diff --git a/packages/snaps-jest/package.json b/packages/snaps-jest/package.json index bcf3af8be7..09668a4940 100644 --- a/packages/snaps-jest/package.json +++ b/packages/snaps-jest/package.json @@ -41,7 +41,7 @@ "@jest/expect": "^29.5.0", "@jest/globals": "^29.5.0", "@metamask/base-controller": "^6.0.2", - "@metamask/eth-json-rpc-middleware": "^12.1.2", + "@metamask/eth-json-rpc-middleware": "^13.0.0", "@metamask/json-rpc-engine": "^9.0.2", "@metamask/json-rpc-middleware-stream": "^8.0.2", "@metamask/key-tree": "^9.1.2", diff --git a/packages/snaps-rpc-methods/CHANGELOG.md b/packages/snaps-rpc-methods/CHANGELOG.md index 4385e8894b..b4e2faeb66 100644 --- a/packages/snaps-rpc-methods/CHANGELOG.md +++ b/packages/snaps-rpc-methods/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [10.0.1] +### Changed +- Bump `@metamask/json-rpc-engine` from `^9.0.0` to `^9.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/permission-controller` from `^10.0.1` to `^11.0.0` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/snaps-utils` from `^7.8.0` to `^7.8.1` ([#2595](https://github.com/MetaMask/snaps/pull/2595)) + ## [10.0.0] ### Added - **BREAKING:** `snap_dialog` now takes the `requestUserApproval` hook ([#2509](https://github.com/metamask/snaps/pull/2509)) @@ -178,7 +184,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@10.0.0...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@10.0.1...HEAD +[10.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@10.0.0...@metamask/snaps-rpc-methods@10.0.1 [10.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.1.4...@metamask/snaps-rpc-methods@10.0.0 [9.1.4]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.1.3...@metamask/snaps-rpc-methods@9.1.4 [9.1.3]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-rpc-methods@9.1.2...@metamask/snaps-rpc-methods@9.1.3 diff --git a/packages/snaps-rpc-methods/package.json b/packages/snaps-rpc-methods/package.json index d480361378..77916046cc 100644 --- a/packages/snaps-rpc-methods/package.json +++ b/packages/snaps-rpc-methods/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-rpc-methods", - "version": "10.0.0", + "version": "10.0.1", "description": "MetaMask Snaps JSON-RPC method implementations.", "repository": { "type": "git", diff --git a/packages/snaps-simulator/package.json b/packages/snaps-simulator/package.json index 9570b51222..57645bfda3 100644 --- a/packages/snaps-simulator/package.json +++ b/packages/snaps-simulator/package.json @@ -31,7 +31,7 @@ "@emotion/styled": "^11.10.8", "@ethersproject/units": "^5.7.0", "@metamask/base-controller": "^6.0.2", - "@metamask/eth-json-rpc-middleware": "^12.1.2", + "@metamask/eth-json-rpc-middleware": "^13.0.0", "@metamask/json-rpc-engine": "^9.0.2", "@metamask/json-rpc-middleware-stream": "^8.0.2", "@metamask/key-tree": "^9.1.2", diff --git a/packages/snaps-utils/CHANGELOG.md b/packages/snaps-utils/CHANGELOG.md index 6e66d02cf1..d057938770 100644 --- a/packages/snaps-utils/CHANGELOG.md +++ b/packages/snaps-utils/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [7.8.1] +### Changed +- Bump `@metamask/base-controller` from `^6.0.1` to `^6.0.2` ([#2593](https://github.com/metamask/snaps/pull/2593)) +- Bump `@metamask/permission-controller` from `^10.0.1` to `^11.0.0` ([#2593](https://github.com/metamask/snaps/pull/2593)) + ## [7.8.0] ### Added - Move `serialiseJsx` function from `snaps-jest` to `snaps-utils` ([#2409](https://github.com/metamask/snaps/pull/2409)) @@ -282,7 +287,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The version of the package no longer needs to match the version of all other MetaMask Snaps packages. -[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.8.0...HEAD +[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.8.1...HEAD +[7.8.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.8.0...@metamask/snaps-utils@7.8.1 [7.8.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.7.0...@metamask/snaps-utils@7.8.0 [7.7.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.6.0...@metamask/snaps-utils@7.7.0 [7.6.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-utils@7.5.0...@metamask/snaps-utils@7.6.0 diff --git a/packages/snaps-utils/package.json b/packages/snaps-utils/package.json index a4ff857e3d..f4b1b9e9cd 100644 --- a/packages/snaps-utils/package.json +++ b/packages/snaps-utils/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/snaps-utils", - "version": "7.8.0", + "version": "7.8.1", "repository": { "type": "git", "url": "https://github.com/MetaMask/snaps.git" diff --git a/yarn.lock b/yarn.lock index 62ab4642e7..c83a1fdb9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4409,44 +4409,48 @@ __metadata: languageName: node linkType: hard -"@metamask/eth-block-tracker@npm:^9.0.3": - version: 9.0.3 - resolution: "@metamask/eth-block-tracker@npm:9.0.3" +"@metamask/eth-block-tracker@npm:^10.0.0": + version: 10.0.0 + resolution: "@metamask/eth-block-tracker@npm:10.0.0" dependencies: - "@metamask/eth-json-rpc-provider": ^3.0.2 + "@metamask/eth-json-rpc-provider": ^4.0.0 "@metamask/safe-event-emitter": ^3.0.0 "@metamask/utils": ^8.1.0 json-rpc-random-id: ^1.0.1 pify: ^5.0.0 - checksum: edd3d59a0416752d90c8e2d8c10c31635dbe3eb323fcb054c401528afe4cbbb6a5a85aedd6ffee4a504d9779656bfab027f2274fd95981c90bf56b6f565dbca2 + checksum: 3b897a41305debe9828d6d18e079289f05e07f99d829f7425ce8703b16d00f3fcd1f108b34f946dee892400e30f4fe87d8fad66311ba8b46c39258ad875f83a6 languageName: node linkType: hard -"@metamask/eth-json-rpc-middleware@npm:^12.1.2": - version: 12.1.2 - resolution: "@metamask/eth-json-rpc-middleware@npm:12.1.2" +"@metamask/eth-json-rpc-middleware@npm:^13.0.0": + version: 13.0.0 + resolution: "@metamask/eth-json-rpc-middleware@npm:13.0.0" dependencies: - "@metamask/eth-block-tracker": ^9.0.3 - "@metamask/eth-json-rpc-provider": ^3.0.2 + "@metamask/eth-block-tracker": ^10.0.0 + "@metamask/eth-json-rpc-provider": ^4.0.0 "@metamask/eth-sig-util": ^7.0.0 - "@metamask/json-rpc-engine": ^8.0.2 + "@metamask/json-rpc-engine": ^9.0.0 "@metamask/rpc-errors": ^6.0.0 "@metamask/utils": ^8.1.0 + "@types/bn.js": ^5.1.5 + bn.js: ^5.2.1 klona: ^2.0.6 pify: ^5.0.0 safe-stable-stringify: ^2.4.3 - checksum: 0334fa8e51d73488e42e1cd663e90012f4055c5cd04cb4ff371ecb3552b82cd271f27a88ff0187ad23f195cfbbba467126711c08b20c1124083a706a85524a82 + checksum: b061c72a2da290db57a8fa6bdbdc49e4651fedd4c9b3448c549197c42fdf21ca0bd6c958f279901580ac4fcb772d52523da8bd075e29d09f5914f81563c41d07 languageName: node linkType: hard -"@metamask/eth-json-rpc-provider@npm:^3.0.2": - version: 3.0.2 - resolution: "@metamask/eth-json-rpc-provider@npm:3.0.2" +"@metamask/eth-json-rpc-provider@npm:^4.0.0": + version: 4.1.1 + resolution: "@metamask/eth-json-rpc-provider@npm:4.1.1" dependencies: - "@metamask/json-rpc-engine": ^8.0.2 + "@metamask/json-rpc-engine": ^9.0.1 + "@metamask/rpc-errors": ^6.3.1 "@metamask/safe-event-emitter": ^3.0.0 - "@metamask/utils": ^8.3.0 - checksum: 0321eaad6fa205a9d3ddcfaf28e63c05291614893cb2e116151185a4acbd6bb6a508d6e556b3cb8bc4d3caef4bf0a638202d9b6bdc127fbcb81715eb2660a809 + "@metamask/utils": ^9.0.0 + uuid: ^8.3.2 + checksum: a429d9511f33a62eb5f2f2f82f26d30a2a8f27d48aa3c8819d6ba03c2c0eef0e7eee7894a0899dd9af4b7d7f3e2092c25304bb34ab6e8d0daffee717f4109b5c languageName: node linkType: hard @@ -4877,18 +4881,7 @@ __metadata: languageName: unknown linkType: soft -"@metamask/json-rpc-engine@npm:^8.0.2": - version: 8.0.2 - resolution: "@metamask/json-rpc-engine@npm:8.0.2" - dependencies: - "@metamask/rpc-errors": ^6.2.1 - "@metamask/safe-event-emitter": ^3.0.0 - "@metamask/utils": ^8.3.0 - checksum: c240d298ad503d93922a94a62cf59f0344b6d6644a523bc8ea3c0f321bea7172b89f2747a5618e2861b2e8152ae5086b76f391a10e4566529faa50b8850c051d - languageName: node - linkType: hard - -"@metamask/json-rpc-engine@npm:^9.0.1, @metamask/json-rpc-engine@npm:^9.0.2": +"@metamask/json-rpc-engine@npm:^9.0.0, @metamask/json-rpc-engine@npm:^9.0.1, @metamask/json-rpc-engine@npm:^9.0.2": version: 9.0.2 resolution: "@metamask/json-rpc-engine@npm:9.0.2" dependencies: @@ -5344,7 +5337,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.0.0, @metamask/rpc-errors@npm:^6.3.1": version: 6.3.1 resolution: "@metamask/rpc-errors@npm:6.3.1" dependencies: @@ -5742,7 +5735,7 @@ __metadata: "@metamask/eslint-config-jest": ^12.1.0 "@metamask/eslint-config-nodejs": ^12.1.0 "@metamask/eslint-config-typescript": ^12.1.0 - "@metamask/eth-json-rpc-middleware": ^12.1.2 + "@metamask/eth-json-rpc-middleware": ^13.0.0 "@metamask/json-rpc-engine": ^9.0.2 "@metamask/json-rpc-middleware-stream": ^8.0.2 "@metamask/key-tree": ^9.1.2 @@ -5942,7 +5935,7 @@ __metadata: "@metamask/eslint-config-jest": ^12.1.0 "@metamask/eslint-config-nodejs": ^12.1.0 "@metamask/eslint-config-typescript": ^12.1.0 - "@metamask/eth-json-rpc-middleware": ^12.1.2 + "@metamask/eth-json-rpc-middleware": ^13.0.0 "@metamask/json-rpc-engine": ^9.0.2 "@metamask/json-rpc-middleware-stream": ^8.0.2 "@metamask/key-tree": ^9.1.2 @@ -6162,7 +6155,7 @@ __metadata: languageName: unknown linkType: soft -"@metamask/superstruct@npm:^3.1.0": +"@metamask/superstruct@npm:^3.0.0, @metamask/superstruct@npm:^3.1.0": version: 3.1.0 resolution: "@metamask/superstruct@npm:3.1.0" checksum: 00e4d0c0aae8b25ccc1885c1db0bb4ed1590010570140c255e4deee3bf8a10c859c8fce5e475b4ae09c8a56316207af87585b91f7f5a5c028d668ccd111f19e3 @@ -6262,7 +6255,24 @@ __metadata: languageName: unknown linkType: soft -"@metamask/utils@npm:9.1.0": +"@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.2.0, @metamask/utils@npm:^8.2.1": + version: 8.5.0 + resolution: "@metamask/utils@npm:8.5.0" + dependencies: + "@ethereumjs/tx": ^4.2.0 + "@metamask/superstruct": ^3.0.0 + "@noble/hashes": ^1.3.1 + "@scure/base": ^1.1.3 + "@types/debug": ^4.1.7 + debug: ^4.3.4 + pony-cause: ^2.1.10 + semver: ^7.5.4 + uuid: ^9.0.1 + checksum: e8eac1c796c3f6b623be3c2736e8682248620f666b180f5c12ce56ee09587d4e28b6811862139a05c7a1bec91415f10ccf0516f3cdf342f88b0189d2a057c24b + languageName: node + linkType: hard + +"@metamask/utils@npm:^9.0.0, @metamask/utils@npm:^9.1.0": version: 9.1.0 resolution: "@metamask/utils@npm:9.1.0" dependencies: