Skip to content

Commit 4fe6141

Browse files
authored
Release/166.0.0 (#4460)
1 parent 5761ee7 commit 4fe6141

File tree

10 files changed

+87
-17
lines changed

10 files changed

+87
-17
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/core-monorepo",
3-
"version": "165.0.0",
3+
"version": "166.0.0",
44
"private": true,
55
"description": "Monorepo for packages shared between MetaMask clients",
66
"repository": {

packages/accounts-controller/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [17.1.0]
11+
12+
### Added
13+
14+
- Add `AccountsController:listMultichainAccounts` action ([#4426](https://github.com/MetaMask/core/pull/4426))
15+
16+
### Fixed
17+
18+
- Refactored `getSelectedAccount` to handle case when there are no accounts to return. The logic was previously contained in `getAccountExpect` has been transferred to `getSelectedAccount`. ([#4322](https://github.com/MetaMask/core/pull/4322))
19+
- Updated `handleAccountRemoved` to automatically select the most recent account if the removed account was the currently selected account. ([#4322](https://github.com/MetaMask/core/pull/4322))
20+
- Move `@metamask/keyring-controller` to dependency ([#4425](https://github.com/MetaMask/core/pull/4425))
21+
1022
## [17.0.0]
1123

1224
### Changed
@@ -215,7 +227,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
215227

216228
- Initial release ([#1637](https://github.com/MetaMask/core/pull/1637))
217229

218-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
230+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
231+
[17.1.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
219232
[17.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
220233
[16.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
221234
[15.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/accounts-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/accounts-controller",
3-
"version": "17.0.0",
3+
"version": "17.1.0",
44
"description": "Manages internal accounts",
55
"keywords": [
66
"MetaMask",

packages/assets-controllers/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [34.0.0]
11+
12+
### Added
13+
14+
- Add `AccountTrackerControllerGetStateAction`, `AccountTrackerControllerActions`, `AccountTrackerControllerStateChangeEvent`, and `AccountTrackerControllerEvents` types ([#4407](https://github.com/MetaMask/core/pull/4407))
15+
- Add `setIntervalLength` and `getIntervalLength` methods to `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407))
16+
- `setIntervalLength` replaces updating the polling interval via `configure`.
17+
18+
### Changed
19+
20+
- **BREAKING** `TokenBalancesController` messenger must allow the action `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. ([#4219](https://github.com/MetaMask/core/pull/4219))
21+
- **BREAKING** `TokenDetectionController` messenger must allow the action `AccountsController:getAccount`. ([#4219](https://github.com/MetaMask/core/pull/4219))
22+
- **BREAKING** `TokenDetectionController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `AccountsController:selectedAccountChange`. ([#4219](https://github.com/MetaMask/core/pull/4219))
23+
- **BREAKING** `TokenRatesController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. ([#4219](https://github.com/MetaMask/core/pull/4219))
24+
- **BREAKING** `TokenRatesController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `PreferencesController:stateChange`. ([#4219](https://github.com/MetaMask/core/pull/4219))
25+
- **BREAKING** `TokensController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount`.
26+
- **BREAKING** `TokensController` messenger must allow the event `AccountsController:selectedEvmAccountChange`. ([#4219](https://github.com/MetaMask/core/pull/4219))
27+
- Upgrade AccountTrackerController to BaseControllerV2 ([#4407](https://github.com/MetaMask/core/pull/4407))
28+
- **BREAKING:** Convert `AccountInformation` from interface to type ([#4407](https://github.com/MetaMask/core/pull/4407))
29+
- **BREAKING:** Rename `AccountTrackerState` to `AccountTrackerControllerState` and convert from interface to type ([#4407](https://github.com/MetaMask/core/pull/4407))
30+
- **BREAKING:** `AccountTrackerController` now inherits from `StaticIntervalPollingController` instead of `StaticIntervalPollingControllerV1` ([#4407](https://github.com/MetaMask/core/pull/4407))
31+
- The constructor now takes a single options object rather than three arguments. Some options have been removed; see later entries.
32+
- **BREAKING:** The `AccountTrackerController` messenger must now allow the actions `PreferencesController:getState`, `NetworkController:getState`, and `NetworkController:getNetworkClientById` ([#4407](https://github.com/MetaMask/core/pull/4407))
33+
- **BREAKING:** The `refresh` method is no longer pre-bound to the controller ([#4407](https://github.com/MetaMask/core/pull/4407))
34+
- You may now need to pre-bind it e.g. `accountTrackerController.refresh.bind(accountTrackerController)`.
35+
- Bump `@metamask/accounts-controller` to `^17.1.0` ([#4460](https://github.com/MetaMask/core/pull/4460))
36+
37+
### Removed
38+
39+
- **BREAKING** `TokensController` removes `selectedAddress` constructor argument. ([#4219](https://github.com/MetaMask/core/pull/4219))
40+
- **BREAKING** `TokenDetectionController` removes `selectedAddress` constructor argument. ([#4219](https://github.com/MetaMask/core/pull/4219))
41+
- **BREAKING:** Remove `AccountTrackerConfig` type ([#4407](https://github.com/MetaMask/core/pull/4407))
42+
- Some of these properties have been merged into the options that the `AccountTrackerController` constructor takes.
43+
- **BREAKING:** Remove `config` property and `configure` method from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407))
44+
- The controller now takes a single options object which can be used for configuration, and configuration is now kept internally.
45+
- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407))
46+
- Use the controller messenger for subscribing to and publishing events instead.
47+
- **BREAKING:** Remove `provider`, `getMultiAccountBalancesEnabled`, `getCurrentChainId`, and `getNetworkClientById` from configuration options for `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407))
48+
- The provider is now obtained directly from the network controller on demand.
49+
- The messenger is now used in place of the callbacks.
50+
1051
## [33.0.0]
1152

1253
### Added
@@ -940,7 +981,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
940981
941982
- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
942983
943-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
984+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
985+
[34.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
944986
[33.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
945987
[32.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
946988
[31.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/assets-controllers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/assets-controllers",
3-
"version": "33.0.0",
3+
"version": "34.0.0",
44
"description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
55
"keywords": [
66
"MetaMask",
@@ -47,7 +47,7 @@
4747
"@ethersproject/contracts": "^5.7.0",
4848
"@ethersproject/providers": "^5.7.0",
4949
"@metamask/abi-utils": "^2.0.2",
50-
"@metamask/accounts-controller": "^17.0.0",
50+
"@metamask/accounts-controller": "^17.1.0",
5151
"@metamask/approval-controller": "^7.0.0",
5252
"@metamask/base-controller": "^6.0.0",
5353
"@metamask/contract-metadata": "^2.4.0",

packages/transaction-controller/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [33.0.1]
11+
12+
### Changed
13+
14+
- Document TransactionStatus enum ([#4380](https://github.com/MetaMask/core/pull/4380))
15+
- Bump `@metamask/accounts-controller` to `^17.1.0` ([#4460](https://github.com/MetaMask/core/pull/4460))
16+
1017
## [33.0.0]
1118

1219
### Changed
@@ -896,7 +903,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
896903
897904
All changes listed after this point were applied to this package following the monorepo conversion.
898905
899-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
906+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
907+
[33.0.1]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
900908
[33.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
901909
[32.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
902910
[31.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/transaction-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/transaction-controller",
3-
"version": "33.0.0",
3+
"version": "33.0.1",
44
"description": "Stores transactions alongside their periodically updated statuses and manages interactions such as approval and cancellation",
55
"keywords": [
66
"MetaMask",
@@ -47,7 +47,7 @@
4747
"@ethersproject/abi": "^5.7.0",
4848
"@ethersproject/contracts": "^5.7.0",
4949
"@ethersproject/providers": "^5.7.0",
50-
"@metamask/accounts-controller": "^17.0.0",
50+
"@metamask/accounts-controller": "^17.1.0",
5151
"@metamask/approval-controller": "^7.0.0",
5252
"@metamask/base-controller": "^6.0.0",
5353
"@metamask/controller-utils": "^11.0.0",

packages/user-operation-controller/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [12.0.1]
11+
12+
### Changed
13+
14+
- Bump `@metamask/transaction-controller` to `^33.0.1` ([#4460](https://github.com/MetaMask/core/pull/4460))
15+
1016
## [12.0.0]
1117

1218
### Changed
@@ -163,7 +169,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
163169

164170
- Initial Release ([#3749](https://github.com/MetaMask/core/pull/3749))
165171

166-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
172+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
173+
[12.0.1]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
167174
[12.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
168175
[11.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
169176
[10.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/user-operation-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/user-operation-controller",
3-
"version": "12.0.0",
3+
"version": "12.0.1",
44
"description": "Creates user operations and manages their life cycle",
55
"keywords": [
66
"MetaMask",
@@ -51,7 +51,7 @@
5151
"@metamask/network-controller": "^19.0.0",
5252
"@metamask/polling-controller": "^8.0.0",
5353
"@metamask/rpc-errors": "^6.2.1",
54-
"@metamask/transaction-controller": "^33.0.0",
54+
"@metamask/transaction-controller": "^33.0.1",
5555
"@metamask/utils": "^8.3.0",
5656
"bn.js": "^5.2.1",
5757
"immer": "^9.0.6",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ __metadata:
21952195
languageName: node
21962196
linkType: hard
21972197

2198-
"@metamask/accounts-controller@^17.0.0, @metamask/accounts-controller@workspace:packages/accounts-controller":
2198+
"@metamask/accounts-controller@^17.1.0, @metamask/accounts-controller@workspace:packages/accounts-controller":
21992199
version: 0.0.0-use.local
22002200
resolution: "@metamask/accounts-controller@workspace:packages/accounts-controller"
22012201
dependencies:
@@ -2313,7 +2313,7 @@ __metadata:
23132313
"@ethersproject/contracts": ^5.7.0
23142314
"@ethersproject/providers": ^5.7.0
23152315
"@metamask/abi-utils": ^2.0.2
2316-
"@metamask/accounts-controller": ^17.0.0
2316+
"@metamask/accounts-controller": ^17.1.0
23172317
"@metamask/approval-controller": ^7.0.0
23182318
"@metamask/auto-changelog": ^3.4.4
23192319
"@metamask/base-controller": ^6.0.0
@@ -3770,7 +3770,7 @@ __metadata:
37703770
languageName: node
37713771
linkType: hard
37723772

3773-
"@metamask/transaction-controller@^33.0.0, @metamask/transaction-controller@workspace:packages/transaction-controller":
3773+
"@metamask/transaction-controller@^33.0.1, @metamask/transaction-controller@workspace:packages/transaction-controller":
37743774
version: 0.0.0-use.local
37753775
resolution: "@metamask/transaction-controller@workspace:packages/transaction-controller"
37763776
dependencies:
@@ -3781,7 +3781,7 @@ __metadata:
37813781
"@ethersproject/abi": ^5.7.0
37823782
"@ethersproject/contracts": ^5.7.0
37833783
"@ethersproject/providers": ^5.7.0
3784-
"@metamask/accounts-controller": ^17.0.0
3784+
"@metamask/accounts-controller": ^17.1.0
37853785
"@metamask/approval-controller": ^7.0.0
37863786
"@metamask/auto-changelog": ^3.4.4
37873787
"@metamask/base-controller": ^6.0.0
@@ -3837,7 +3837,7 @@ __metadata:
38373837
"@metamask/network-controller": ^19.0.0
38383838
"@metamask/polling-controller": ^8.0.0
38393839
"@metamask/rpc-errors": ^6.2.1
3840-
"@metamask/transaction-controller": ^33.0.0
3840+
"@metamask/transaction-controller": ^33.0.1
38413841
"@metamask/utils": ^8.3.0
38423842
"@types/jest": ^27.4.1
38433843
bn.js: ^5.2.1

0 commit comments

Comments
 (0)