Skip to content

Commit 52d3c27

Browse files
authored
release: 160.0.0 (#4050)
This is the release candidate for version `160.0.0`. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Mostly version/changelog packaging, but the release notes flag breaking SnapController messenger and constructor requirements that MetaMask clients must adopt when upgrading snaps-controllers. > > **Overview** > **Release candidate `160.0.0`** bumps the monorepo from `159.0.0` and publishes **`@metamask/snaps-controllers@21.0.0`** (from `20.0.6`), with the new **`[21.0.0]`** section and compare links in `packages/snaps-controllers/CHANGELOG.md`. > > The documented **breaking** changes in this cut move Snap lifecycle and OTA update analytics into **`SnapController`** (messenger now needs `AnalyticsController:trackEvent` plus install/update/uninstall events, and the constructor needs **`clientConfig`** for OTA analytics). **`SnapRegistryController`** gains **`requestPeriodicUpdate`**, along with dependency bumps for `@metamask/storage-service` and `@metamask/approval-controller`. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6014472. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent beeab74 commit 52d3c27

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

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": "159.0.0",
3+
"version": "160.0.0",
44
"private": true,
55
"repository": {
66
"type": "git",

packages/snaps-controllers/CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [21.0.0]
11+
12+
### Added
13+
14+
- **BREAKING:** Track Snap lifecycle analytics events in `SnapController` ([#4048](https://github.com/MetaMask/snaps/pull/4048))
15+
- This logic was previously in the clients, but can now be removed there.
16+
- The `SnapController` messenger now requires the following actions and events:
17+
- `AnalyticsController:trackEvent`
18+
- `SnapController:snapInstallStarted`
19+
- `SnapController:snapInstallFailed`
20+
- `SnapController:snapInstalled`
21+
- `SnapController:snapUpdated`
22+
- `SnapController:snapUninstalled`
23+
- **BREAKING:** Track analytics for OTA Snap updates ([#4049](https://github.com/MetaMask/snaps/pull/4049))
24+
- The `SnapController` constructor now requires a `clientConfig` parameter.
25+
- Add `requestPeriodicUpdate` method to `SnapRegistryController` ([#4043](https://github.com/MetaMask/snaps/pull/4043))
26+
27+
### Changed
28+
29+
- Bump `@metamask/storage-service` from `1.0.1` to `1.0.2` ([#4035](https://github.com/MetaMask/snaps/pull/4035))
30+
- Bump `@metamask/approval-controller` from `9.0.1` to `9.0.2` ([#4026](https://github.com/MetaMask/snaps/pull/4026))
31+
1032
## [20.0.6]
1133

1234
### Changed
@@ -1234,7 +1256,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12341256
- The version of the package no longer needs to match the version of all other
12351257
MetaMask Snaps packages.
12361258

1237-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@20.0.6...HEAD
1259+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@21.0.0...HEAD
1260+
[21.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@20.0.6...@metamask/snaps-controllers@21.0.0
12381261
[20.0.6]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@20.0.5...@metamask/snaps-controllers@20.0.6
12391262
[20.0.5]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@20.0.4...@metamask/snaps-controllers@20.0.5
12401263
[20.0.4]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@20.0.3...@metamask/snaps-controllers@20.0.4

packages/snaps-controllers/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-controllers",
3-
"version": "20.0.6",
3+
"version": "21.0.0",
44
"description": "Controllers for MetaMask Snaps",
55
"keywords": [
66
"MetaMask",

0 commit comments

Comments
 (0)