From 6573523eef86c4586af6531600b2078a263864c6 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Thu, 29 Feb 2024 12:53:38 -0800 Subject: [PATCH] Release/122.0.0 (#3996) ## Explanation ## References ## Changelog ### `@metamask/package-a` - ****: Your change here - ****: Your change here ### `@metamask/package-b` - ****: Your change here - ****: Your change here ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate --------- Co-authored-by: Alex Co-authored-by: Elliot Winkler --- package.json | 2 +- .../queued-request-controller/CHANGELOG.md | 27 ++++++++++++++++++- .../queued-request-controller/package.json | 4 +-- .../selected-network-controller/CHANGELOG.md | 16 +++++++++-- .../selected-network-controller/package.json | 2 +- yarn.lock | 6 ++--- 6 files changed, 47 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 0ce3f5c2e7..56ba95383a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/core-monorepo", - "version": "121.0.0", + "version": "122.0.0", "private": true, "description": "Monorepo for packages shared between MetaMask clients", "repository": { diff --git a/packages/queued-request-controller/CHANGELOG.md b/packages/queued-request-controller/CHANGELOG.md index 88d679c420..5e39876471 100644 --- a/packages/queued-request-controller/CHANGELOG.md +++ b/packages/queued-request-controller/CHANGELOG.md @@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.6.0] + +### Added + +- Export `QueuedRequestControllerGetStateAction` and `QueuedRequestControllerStateChangeEvent` ([#3984](https://github.com/MetaMask/core/pull/3984)) + +### Changed + +- **BREAKING:** Bump `@metamask/selected-network-controller` peer dependency to `^9.0.0` ([#3996](https://github.com/MetaMask/core/pull/3996)) +- **BREAKING**: Remove the `QueuedRequestController:countChanged` event ([#3985](https://github.com/MetaMask/core/pull/3985)) + - The number of queued requests is now tracked in controller state, as the `queuedRequestCount` property. Use the `QueuedRequestController:stateChange` event to be notified of count changes instead. +- **BREAKING**: Remove the `length` method ([#3985](https://github.com/MetaMask/core/pull/3985)) + - The number of queued requests is now tracked in controller state, as the `queuedRequestCount` property. +- **BREAKING:** The `QueuedRequestController` method `enqueueRequest` is now responsible for switching the network before processing a request, rather than the `QueuedRequestMiddleware` ([#3986](https://github.com/MetaMask/core/pull/3986)) + - Functionally the behavior is the same: before processing each request, we compare the request network client with the current selected network client, and we switch the current selected network client if necessary. + - The `QueuedRequestController` messenger has four additional allowed actions: + - `NetworkController:getState` + - `NetworkController:setActiveNetwork` + - `NetworkController:getNetworkConfigurationByNetworkClientId` + - `ApprovalController:addRequest` + - The `QueuedRequestController` method `enqueueRequest` now takes one additional parameter, the request object + - The `QueuedRequestMiddleware` no longer has a controller messenger. Instead it takes the `enqueueRequest` method as a parameter. +- Bump `@metamask/rpc-errors` from `^6.2.0` to `^6.2.1` ([#3970](https://github.com/MetaMask/core/pull/3970)) + ## [0.5.0] ### Changed @@ -94,7 +118,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.5.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.6.0...HEAD +[0.6.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.5.0...@metamask/queued-request-controller@0.6.0 [0.5.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.4.0...@metamask/queued-request-controller@0.5.0 [0.4.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.3.0...@metamask/queued-request-controller@0.4.0 [0.3.0]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.2.0...@metamask/queued-request-controller@0.3.0 diff --git a/packages/queued-request-controller/package.json b/packages/queued-request-controller/package.json index e405162a24..7f55e35559 100644 --- a/packages/queued-request-controller/package.json +++ b/packages/queued-request-controller/package.json @@ -42,7 +42,7 @@ "@metamask/approval-controller": "^5.1.2", "@metamask/auto-changelog": "^3.4.4", "@metamask/network-controller": "^17.2.0", - "@metamask/selected-network-controller": "^8.0.0", + "@metamask/selected-network-controller": "^9.0.0", "@types/jest": "^27.4.1", "deepmerge": "^4.2.2", "immer": "^9.0.6", @@ -58,7 +58,7 @@ "peerDependencies": { "@metamask/approval-controller": "^5.1.2", "@metamask/network-controller": "^17.2.0", - "@metamask/selected-network-controller": "^8.0.0" + "@metamask/selected-network-controller": "^9.0.0" }, "engines": { "node": ">=16.0.0" diff --git a/packages/selected-network-controller/CHANGELOG.md b/packages/selected-network-controller/CHANGELOG.md index c660a4fdb6..6c8f875af8 100644 --- a/packages/selected-network-controller/CHANGELOG.md +++ b/packages/selected-network-controller/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [9.0.0] + +### Added + +- Listen to permissions changes and add/remove `domains` ([#3969](https://github.com/MetaMask/core/pull/3969)) + +### Changed + +- **BREAKING** remove `perDomainNetwork` from state ([#3989](https://github.com/MetaMask/core/pull/3989)) +- **BREAKING** Add dependency and peer dependency on `@metamask/permission-controller` ^8.0.1 ([#4000](https://github.com/MetaMask/core/pull/4000)) + ## [8.0.0] ### Changed @@ -30,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Selected network controller should update all domains when perDomainNetwork feature flag is off ([#3834](https://github.com/MetaMask/controllers/pull/3834)) +- Selected network controller should update all domains when perDomainNetwork feature flag is off ([#3834](https://github.com/MetaMask/core/pull/3834)) ## [7.0.0] @@ -125,7 +136,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial Release ([#1643](https://github.com/MetaMask/core/pull/1643)) -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@8.0.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@9.0.0...HEAD +[9.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@8.0.0...@metamask/selected-network-controller@9.0.0 [8.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@7.0.1...@metamask/selected-network-controller@8.0.0 [7.0.1]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@7.0.0...@metamask/selected-network-controller@7.0.1 [7.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@6.0.0...@metamask/selected-network-controller@7.0.0 diff --git a/packages/selected-network-controller/package.json b/packages/selected-network-controller/package.json index cb5259f4c1..d66b9e80c2 100644 --- a/packages/selected-network-controller/package.json +++ b/packages/selected-network-controller/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/selected-network-controller", - "version": "8.0.0", + "version": "9.0.0", "description": "Provides an interface to the currently selected networkClientId for a given domain", "keywords": [ "MetaMask", diff --git a/yarn.lock b/yarn.lock index c50e15ac4b..21fd97142e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2593,7 +2593,7 @@ __metadata: "@metamask/json-rpc-engine": ^7.3.2 "@metamask/network-controller": ^17.2.0 "@metamask/rpc-errors": ^6.2.1 - "@metamask/selected-network-controller": ^8.0.0 + "@metamask/selected-network-controller": ^9.0.0 "@metamask/swappable-obj-proxy": ^2.2.0 "@metamask/utils": ^8.3.0 "@types/jest": ^27.4.1 @@ -2610,7 +2610,7 @@ __metadata: peerDependencies: "@metamask/approval-controller": ^5.1.2 "@metamask/network-controller": ^17.2.0 - "@metamask/selected-network-controller": ^8.0.0 + "@metamask/selected-network-controller": ^9.0.0 languageName: unknown linkType: soft @@ -2665,7 +2665,7 @@ __metadata: languageName: node linkType: hard -"@metamask/selected-network-controller@^8.0.0, @metamask/selected-network-controller@workspace:packages/selected-network-controller": +"@metamask/selected-network-controller@^9.0.0, @metamask/selected-network-controller@workspace:packages/selected-network-controller": version: 0.0.0-use.local resolution: "@metamask/selected-network-controller@workspace:packages/selected-network-controller" dependencies: