Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/122.0.0 #3996

Merged
merged 14 commits into from
Feb 29, 2024
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
27 changes: 26 additions & 1 deletion packages/queued-request-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
BelfordZ marked this conversation as resolved.
Show resolved Hide resolved
- **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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/queued-request-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
16 changes: 14 additions & 2 deletions packages/selected-network-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/selected-network-controller/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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:
Expand Down
Loading