Skip to content

Commit 02eb9e1

Browse files
release: 161.0.0 (#4065)
Release candidate for `161.0.0`. Mainly includes the messenger support for preinstalled Snaps. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Messenger endowment lets preinstalled Snaps invoke allowlisted wallet controller actions, which is security-sensitive even though this PR is mostly versioning and manifest churn. > > **Overview** > **Release `161.0.0`** cuts updated package versions and changelogs across the monorepo, with **`@metamask/snaps-sdk` `11.2.0`** as the new platform line reflected in example Snap manifests (`platformVersion` **11.1.1 → 11.2.0**, refreshed bundle `shasum`s). > > The release packages **messenger support for preinstalled Snaps** via **`endowment:messenger`**: **`@metamask/snaps-sdk`** adds **`getMessenger`**, **`@metamask/snaps-rpc-methods`** **`17.1.0`** wires RPC handling, **`@metamask/snaps-utils`** **`12.3.0`** adds permission validation, and **`@metamask/snaps-jest`** / **`@metamask/snaps-simulation`** gain test/simulation support. The preinstalled example (**`0.8.0`**) documents a **`messengerCall`** RPC path (e.g. `PhishingController:testOrigin`), and **`@metamask/test-snaps` `3.5.0`** adds UI to exercise it. > > Dependency bumps called out in changelogs include **`@metamask/messenger` `^2.0.0`** and **`@metamask/superstruct` `^3.3.0`** on several packages; root **`package.json`** resolutions pin **`@metamask/messenger` `^2.0.0`**. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 223ebec. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
1 parent 785d0f7 commit 02eb9e1

54 files changed

Lines changed: 168 additions & 93 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/snaps-monorepo",
3-
"version": "160.0.0",
3+
"version": "161.0.0",
44
"private": true,
55
"repository": {
66
"type": "git",

packages/examples/packages/background-events/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "pGQoi9fAJJ70akt2YXnoid5KaA5vBtEWwqNrb7wyM+o=",
10+
"shasum": "YRSkpcjb7pj4iYdpXuT8cmqVFjSWPR+qA9Eh0z1A/Ps=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -24,6 +24,6 @@
2424
"endowment:cronjob": {},
2525
"snap_dialog": {}
2626
},
27-
"platformVersion": "11.1.1",
27+
"platformVersion": "11.2.0",
2828
"manifestVersion": "0.1"
2929
}

packages/examples/packages/bip32/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "prC/0vZUtzwiOHSievoseESTMAg/0D+L7iaU5vjPR/A=",
10+
"shasum": "pHP9y8PEST/oIy4s8pIg/a0815n+2TUqO+RUNCRAosc=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -43,6 +43,6 @@
4343
}
4444
]
4545
},
46-
"platformVersion": "11.1.1",
46+
"platformVersion": "11.2.0",
4747
"manifestVersion": "0.1"
4848
}

packages/examples/packages/bip44/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "2KB8BmN8Ef47GHfFJDvFJOOBL3qXRwhcc/qfuk7ruIQ=",
10+
"shasum": "CtrWo6CzHTm6nULFnTp7puFCfkrFisuv9ZhMpKXp5o4=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -31,6 +31,6 @@
3131
}
3232
]
3333
},
34-
"platformVersion": "11.1.1",
34+
"platformVersion": "11.2.0",
3535
"manifestVersion": "0.1"
3636
}

packages/examples/packages/client-status/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "B3Cf7jXxbKQs64/OZUSEqpOwUzR/zzCqOhUy55v5GiM=",
10+
"shasum": "dy36Np7dTVtSlisQAm9XgN2oxzhL7yigrJQTBtqxAtM=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -22,6 +22,6 @@
2222
"snaps": false
2323
}
2424
},
25-
"platformVersion": "11.1.1",
25+
"platformVersion": "11.2.0",
2626
"manifestVersion": "0.1"
2727
}

packages/examples/packages/cronjob-duration/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "2uLRdxaG+Dweyx5ypYxUCG6bN9UanLZsa9QZXnNIjxQ=",
10+
"shasum": "f2jWWk+fmwh1aJN/DT9oiKcpA/yeHDy9qmIztsz+Uug=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -29,6 +29,6 @@
2929
},
3030
"snap_notify": {}
3131
},
32-
"platformVersion": "11.1.1",
32+
"platformVersion": "11.2.0",
3333
"manifestVersion": "0.1"
3434
}

packages/examples/packages/cronjobs/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "4bmJG2CK8rwU+woYLXt+FXxmJFzXMT8gf7KaXFmL14U=",
10+
"shasum": "PZCYU6/WQhWskSlCSlnYexKMpGoxP638q/behYV6rs0=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -29,6 +29,6 @@
2929
},
3030
"snap_dialog": {}
3131
},
32-
"platformVersion": "11.1.1",
32+
"platformVersion": "11.2.0",
3333
"manifestVersion": "0.1"
3434
}

packages/examples/packages/dialogs/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "cNDwXr0ECzzmgNZwB+ipHhLdfqGM4PgLBcCGEqYLo1U=",
10+
"shasum": "zXOfa0tOJyHyB0rAMLAMZF6PTV2WSxh/FLtu2B0Wpk0=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -22,6 +22,6 @@
2222
},
2323
"snap_dialog": {}
2424
},
25-
"platformVersion": "11.1.1",
25+
"platformVersion": "11.2.0",
2626
"manifestVersion": "0.1"
2727
}

packages/examples/packages/errors/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "3JXrC70BoMl7xMCIjy9yGtoHA84/EfAgtpLW+596/6w=",
10+
"shasum": "ZWCNoy+lOU16WaCOxtQwKPJwmUsbC+MdKmrXms5Q4tw=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -21,6 +21,6 @@
2121
"dapps": true
2222
}
2323
},
24-
"platformVersion": "11.1.1",
24+
"platformVersion": "11.2.0",
2525
"manifestVersion": "0.1"
2626
}

packages/examples/packages/ethereum-provider/snap.manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "YOOkqLB3Xo+hBWJV2qBo9ovWSgnGwHnURWiwjdOtiPg=",
10+
"shasum": "4ekAHiebDHvAWnipSqyw4SLT4t0HSgbJT/wGTuYer2k=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",
@@ -22,6 +22,6 @@
2222
},
2323
"endowment:ethereum-provider": {}
2424
},
25-
"platformVersion": "11.1.1",
25+
"platformVersion": "11.2.0",
2626
"manifestVersion": "0.1"
2727
}

0 commit comments

Comments
 (0)