Skip to content

Commit

Permalink
Release 58.0.0 (#2595)
Browse files Browse the repository at this point in the history
## 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 #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<import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/utils/dist/json").JsonRpcParams, import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/utils/dist/json").J...' is not assignable to type 'import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/providers/node_modules/@metamask/json-rpc-engine/dist/types/JsonRpcEngine").JsonRpcMiddleware<import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/providers/node_modules/@metamask/utils/dist/json").JsonRpcParams, import("/Users/majorl...'.
➤ YN0000: [@metamask/snaps-execution-environments]:   Types of parameters 'req' and 'req' are incompatible.
➤ YN0000: [@metamask/snaps-execution-environments]:     Type 'import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/providers/node_modules/@metamask/utils/dist/json").JsonRpcRequest<import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/providers/node_modules/@metamask/utils/dist/json").JsonRpcParams>' is not assignable to type 'import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/utils/dist/json").JsonRpcRequest<import("/Users/majorlift/Code/metamask/snaps/node_modules/@metamask/utils/dist/json").JsonRpcParams>'.
➤ YN0000: [@metamask/snaps-execution-environments]:       Type 'JsonRpcRequest<JsonRpcParams>' is not assignable to type '{ params?: ((Record<string, Json> | 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<string, Json> | Json[]) & ExactOptionalGuard) & JsonRpcParams) | undefined' is not assignable to type '((Record<string, Json> | Json[]) & ExactOptionalGuard) | undefined'.
➤ YN0000: [@metamask/snaps-execution-environments]:             Type 'Record<string, Json> & ExactOptionalGuard' is not assignable to type '((Record<string, Json> | Json[]) & ExactOptionalGuard) | undefined'.
➤ YN0000: [@metamask/snaps-execution-environments]:               Type 'Record<string, Json> & ExactOptionalGuard' is not assignable to type 'Json[] & ExactOptionalGuard'.
➤ YN0000: [@metamask/snaps-execution-environments]:                 Type 'Record<string, Json> & 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'.
```
  • Loading branch information
MajorLift authored Jul 23, 2024
1 parent 223878c commit cede015
Show file tree
Hide file tree
Showing 18 changed files with 188 additions and 53 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "root",
"version": "57.0.0",
"version": "58.0.0",
"private": true,
"repository": {
"type": "git",
Expand Down Expand Up @@ -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",
Expand Down
13 changes: 12 additions & 1 deletion packages/snaps-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-controllers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/snaps-controllers",
"version": "9.3.0",
"version": "9.3.1",
"description": "Controllers for MetaMask Snaps.",
"repository": {
"type": "git",
Expand Down
8 changes: 7 additions & 1 deletion packages/snaps-execution-environments/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-execution-environments/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 8 additions & 1 deletion packages/snaps-rpc-methods/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-rpc-methods/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 7 additions & 1 deletion packages/snaps-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-utils/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading

0 comments on commit cede015

Please sign in to comment.