From edeb479a855c020d94656a5d76d29f003215d15c Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Tue, 25 Jun 2024 22:07:20 +0800 Subject: [PATCH 01/15] Initialize Release 166.0.0 --- packages/accounts-controller/CHANGELOG.md | 7 ++++++ packages/address-book-controller/CHANGELOG.md | 5 ++++ packages/approval-controller/CHANGELOG.md | 5 ++++ packages/assets-controllers/CHANGELOG.md | 6 +++++ packages/base-controller/CHANGELOG.md | 4 ++++ packages/composable-controller/CHANGELOG.md | 4 ++++ packages/controller-utils/CHANGELOG.md | 4 ++++ packages/ens-controller/CHANGELOG.md | 5 ++++ packages/gas-fee-controller/CHANGELOG.md | 6 +++++ .../json-rpc-middleware-stream/CHANGELOG.md | 24 +++++++++++-------- packages/logging-controller/CHANGELOG.md | 5 ++++ packages/message-manager/CHANGELOG.md | 4 ++++ packages/name-controller/CHANGELOG.md | 5 ++++ packages/network-controller/CHANGELOG.md | 8 +++++++ packages/notification-controller/CHANGELOG.md | 4 ++++ packages/permission-controller/CHANGELOG.md | 5 ++++ .../permission-log-controller/CHANGELOG.md | 4 ++++ packages/phishing-controller/CHANGELOG.md | 5 ++++ packages/polling-controller/CHANGELOG.md | 4 ++++ packages/preferences-controller/CHANGELOG.md | 4 ++++ packages/rate-limit-controller/CHANGELOG.md | 4 ++++ .../selected-network-controller/CHANGELOG.md | 5 ++++ packages/signature-controller/CHANGELOG.md | 6 +++++ packages/transaction-controller/CHANGELOG.md | 6 +++++ .../user-operation-controller/CHANGELOG.md | 6 +++++ 25 files changed, 135 insertions(+), 10 deletions(-) diff --git a/packages/accounts-controller/CHANGELOG.md b/packages/accounts-controller/CHANGELOG.md index 3c750b0d52..8cd4df27af 100644 --- a/packages/accounts-controller/CHANGELOG.md +++ b/packages/accounts-controller/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- fix: update handleAccountRemoved logic ([#4322](https://github.com/MetaMask/core/pull/4322)) +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- feat: add listMultichainAccounts action ([#4426](https://github.com/MetaMask/core/pull/4426)) +- fix: move `@metamask/keyring-controller` to dependency in `@metamask/accounts-controller` ([#4425](https://github.com/MetaMask/core/pull/4425)) + ## [17.0.0] ### Changed diff --git a/packages/address-book-controller/CHANGELOG.md b/packages/address-book-controller/CHANGELOG.md index 0ce44eb48b..a6af50b178 100644 --- a/packages/address-book-controller/CHANGELOG.md +++ b/packages/address-book-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- upgrade address book controller to base controller v2 ([#4392](https://github.com/MetaMask/core/pull/4392)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [5.0.0] ### Changed diff --git a/packages/approval-controller/CHANGELOG.md b/packages/approval-controller/CHANGELOG.md index ef5cf06d1c..8a2826819b 100644 --- a/packages/approval-controller/CHANGELOG.md +++ b/packages/approval-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [7.0.0] ### Changed diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index c8c8a1b216..049250b849 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- fix: update tokens controllers to use selectedAccountId instead of selectedAddress ([#4219](https://github.com/MetaMask/core/pull/4219)) +- feat: upgrade AccountTrackerController to BaseControllerV2 ([#4407](https://github.com/MetaMask/core/pull/4407)) + ## [33.0.0] ### Added diff --git a/packages/base-controller/CHANGELOG.md b/packages/base-controller/CHANGELOG.md index 801dc144f6..a0fbe3c78f 100644 --- a/packages/base-controller/CHANGELOG.md +++ b/packages/base-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [6.0.0] ### Changed diff --git a/packages/composable-controller/CHANGELOG.md b/packages/composable-controller/CHANGELOG.md index a074b1488b..fcff4a3ccb 100644 --- a/packages/composable-controller/CHANGELOG.md +++ b/packages/composable-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [7.0.0] ### Changed diff --git a/packages/controller-utils/CHANGELOG.md b/packages/controller-utils/CHANGELOG.md index fbbca40d6b..74420a82b2 100644 --- a/packages/controller-utils/CHANGELOG.md +++ b/packages/controller-utils/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [11.0.0] ### Added diff --git a/packages/ens-controller/CHANGELOG.md b/packages/ens-controller/CHANGELOG.md index 89f1a1bfab..69121a2d15 100644 --- a/packages/ens-controller/CHANGELOG.md +++ b/packages/ens-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) +- EnsController: providerConfig -> selectedNetworkClientId ([#4354](https://github.com/MetaMask/core/pull/4354)) + ## [12.0.0] ### Changed diff --git a/packages/gas-fee-controller/CHANGELOG.md b/packages/gas-fee-controller/CHANGELOG.md index 19e0ef69e7..fda6b39156 100644 --- a/packages/gas-fee-controller/CHANGELOG.md +++ b/packages/gas-fee-controller/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) +- GasFeeController: providerConfig -> selectedNetworkClientId ([#4356](https://github.com/MetaMask/core/pull/4356)) + ## [17.0.0] ### Changed diff --git a/packages/json-rpc-middleware-stream/CHANGELOG.md b/packages/json-rpc-middleware-stream/CHANGELOG.md index c72854d014..7d7f3ec805 100644 --- a/packages/json-rpc-middleware-stream/CHANGELOG.md +++ b/packages/json-rpc-middleware-stream/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- bugfix for json-rpc-middleware-stream incorrect notification handling ([#4427](https://github.com/MetaMask/core/pull/4427)) + ## [8.0.0] ### Changed @@ -136,13 +140,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [7.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.2...@metamask/json-rpc-middleware-stream@7.0.0 [6.0.2]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.1...@metamask/json-rpc-middleware-stream@6.0.2 [6.0.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.0...@metamask/json-rpc-middleware-stream@6.0.1 -[6.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@5.0.1...@metamask/json-rpc-middleware-stream@6.0.0 -[5.0.1]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@5.0.0...json-rpc-middleware-stream@5.0.1 -[5.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.3...json-rpc-middleware-stream@5.0.0 -[4.2.3]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.2...json-rpc-middleware-stream@4.2.3 -[4.2.2]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.1...json-rpc-middleware-stream@4.2.2 -[4.2.1]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.0...json-rpc-middleware-stream@4.2.1 -[4.2.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.1.0...json-rpc-middleware-stream@4.2.0 -[4.1.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.0.0...json-rpc-middleware-stream@4.1.0 -[4.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@3.0.0...json-rpc-middleware-stream@4.0.0 -[3.0.0]: https://github.com/MetaMask/core/releases/tag/json-rpc-middleware-stream@3.0.0 +[6.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@5.0.1...@metamask/json-rpc-middleware-stream@6.0.0 +[5.0.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@5.0.0...@metamask/json-rpc-middleware-stream@5.0.1 +[5.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.3...@metamask/json-rpc-middleware-stream@5.0.0 +[4.2.3]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.2...@metamask/json-rpc-middleware-stream@4.2.3 +[4.2.2]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.1...@metamask/json-rpc-middleware-stream@4.2.2 +[4.2.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.0...@metamask/json-rpc-middleware-stream@4.2.1 +[4.2.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.1.0...@metamask/json-rpc-middleware-stream@4.2.0 +[4.1.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.0.0...@metamask/json-rpc-middleware-stream@4.1.0 +[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@3.0.0...@metamask/json-rpc-middleware-stream@4.0.0 +[3.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/json-rpc-middleware-stream@3.0.0 diff --git a/packages/logging-controller/CHANGELOG.md b/packages/logging-controller/CHANGELOG.md index 006f42b4e0..fabad6b937 100644 --- a/packages/logging-controller/CHANGELOG.md +++ b/packages/logging-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [5.0.0] ### Changed diff --git a/packages/message-manager/CHANGELOG.md b/packages/message-manager/CHANGELOG.md index 1cb9b3b848..d73dded835 100644 --- a/packages/message-manager/CHANGELOG.md +++ b/packages/message-manager/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [10.0.0] ### Changed diff --git a/packages/name-controller/CHANGELOG.md b/packages/name-controller/CHANGELOG.md index 1d76978d49..d7f6def53b 100644 --- a/packages/name-controller/CHANGELOG.md +++ b/packages/name-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [8.0.0] ### Changed diff --git a/packages/network-controller/CHANGELOG.md b/packages/network-controller/CHANGELOG.md index de3beeb534..887fb18eea 100644 --- a/packages/network-controller/CHANGELOG.md +++ b/packages/network-controller/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- fix(deps): @metamask/eth-block-tracker@^9.0.2->^9.0.3 ([#4418](https://github.com/MetaMask/core/pull/4418)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) +- chore(test): Refactor FakeBlockTracker provider injection ([#4345](https://github.com/MetaMask/core/pull/4345)) +- AssetsContractController: providerConfig -> selectedNetworkClientId ([#4315](https://github.com/MetaMask/core/pull/4315)) + ### Changed - **BREAKING:** Update `networksMetadata` state property so that the keys in the object will only ever be network client IDs and not RPC URLs ([#4254](https://github.com/MetaMask/core/pull/4254)) diff --git a/packages/notification-controller/CHANGELOG.md b/packages/notification-controller/CHANGELOG.md index 182d9021cc..bf891e6295 100644 --- a/packages/notification-controller/CHANGELOG.md +++ b/packages/notification-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [6.0.0] ### Changed diff --git a/packages/permission-controller/CHANGELOG.md b/packages/permission-controller/CHANGELOG.md index c768e0c80d..9f1c10662a 100644 --- a/packages/permission-controller/CHANGELOG.md +++ b/packages/permission-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [10.0.0] ### Changed diff --git a/packages/permission-log-controller/CHANGELOG.md b/packages/permission-log-controller/CHANGELOG.md index ad1ff6dd12..7d4a356779 100644 --- a/packages/permission-log-controller/CHANGELOG.md +++ b/packages/permission-log-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [3.0.0] ### Changed diff --git a/packages/phishing-controller/CHANGELOG.md b/packages/phishing-controller/CHANGELOG.md index 4c88127577..8aa1d3fcd6 100644 --- a/packages/phishing-controller/CHANGELOG.md +++ b/packages/phishing-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) +- [phishing-controller] Add `PhishingDetector` from `eth-phishing-detector` ([#4137](https://github.com/MetaMask/core/pull/4137)) + ## [10.0.0] ### Changed diff --git a/packages/polling-controller/CHANGELOG.md b/packages/polling-controller/CHANGELOG.md index 35d0580fb3..d935102599 100644 --- a/packages/polling-controller/CHANGELOG.md +++ b/packages/polling-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [8.0.0] ### Changed diff --git a/packages/preferences-controller/CHANGELOG.md b/packages/preferences-controller/CHANGELOG.md index 00f62607e9..c46b58f361 100644 --- a/packages/preferences-controller/CHANGELOG.md +++ b/packages/preferences-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Release 161.0.0 ([#4413](https://github.com/MetaMask/core/pull/4413)) + ## [13.0.0] ### Changed diff --git a/packages/rate-limit-controller/CHANGELOG.md b/packages/rate-limit-controller/CHANGELOG.md index 91da273a4d..32affd94bc 100644 --- a/packages/rate-limit-controller/CHANGELOG.md +++ b/packages/rate-limit-controller/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [6.0.0] ### Changed diff --git a/packages/selected-network-controller/CHANGELOG.md b/packages/selected-network-controller/CHANGELOG.md index d5a4504e54..950c9c3a7f 100644 --- a/packages/selected-network-controller/CHANGELOG.md +++ b/packages/selected-network-controller/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- test: cleanup/fix `SelectedNetworkController` specs ([#4409](https://github.com/MetaMask/core/pull/4409)) + ## [15.0.2] ### Fixed diff --git a/packages/signature-controller/CHANGELOG.md b/packages/signature-controller/CHANGELOG.md index 10f37cd76f..5c36c7e6dc 100644 --- a/packages/signature-controller/CHANGELOG.md +++ b/packages/signature-controller/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Release 161.0.0 ([#4413](https://github.com/MetaMask/core/pull/4413)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [18.0.0] ### Changed diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index 65809c324a..a7db02eda8 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- docs: document TransactionStatus enum ([#4380](https://github.com/MetaMask/core/pull/4380)) +- fix: disable some transaction controller integration tests ([#4429](https://github.com/MetaMask/core/pull/4429)) + ## [33.0.0] ### Changed diff --git a/packages/user-operation-controller/CHANGELOG.md b/packages/user-operation-controller/CHANGELOG.md index c6812db3ae..ba47e3ccf6 100644 --- a/packages/user-operation-controller/CHANGELOG.md +++ b/packages/user-operation-controller/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Uncategorized + +- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Release 161.0.0 ([#4413](https://github.com/MetaMask/core/pull/4413)) +- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) + ## [12.0.0] ### Changed From c4956058a0e842d1f81f13a43f9604ee39b69104 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Tue, 25 Jun 2024 22:07:56 +0800 Subject: [PATCH 02/15] Update Release 166.0.0 --- package.json | 2 +- packages/accounts-controller/CHANGELOG.md | 5 +++- packages/accounts-controller/package.json | 2 +- packages/address-book-controller/CHANGELOG.md | 5 ---- packages/approval-controller/CHANGELOG.md | 5 ---- packages/assets-controllers/CHANGELOG.md | 5 +++- packages/assets-controllers/package.json | 2 +- packages/base-controller/CHANGELOG.md | 4 ---- packages/composable-controller/CHANGELOG.md | 4 ---- packages/controller-utils/CHANGELOG.md | 4 ---- packages/ens-controller/CHANGELOG.md | 5 ---- packages/gas-fee-controller/CHANGELOG.md | 6 ----- .../json-rpc-middleware-stream/CHANGELOG.md | 24 ++++++++----------- packages/logging-controller/CHANGELOG.md | 5 ---- packages/message-manager/CHANGELOG.md | 4 ---- packages/name-controller/CHANGELOG.md | 5 ---- packages/network-controller/CHANGELOG.md | 8 ------- packages/notification-controller/CHANGELOG.md | 4 ---- packages/permission-controller/CHANGELOG.md | 5 ---- .../permission-log-controller/CHANGELOG.md | 4 ---- packages/phishing-controller/CHANGELOG.md | 5 ---- packages/polling-controller/CHANGELOG.md | 4 ---- packages/preferences-controller/CHANGELOG.md | 4 ---- packages/rate-limit-controller/CHANGELOG.md | 4 ---- .../selected-network-controller/CHANGELOG.md | 5 ---- packages/signature-controller/CHANGELOG.md | 6 ----- packages/transaction-controller/CHANGELOG.md | 5 +++- packages/transaction-controller/package.json | 2 +- .../user-operation-controller/CHANGELOG.md | 5 +++- .../user-operation-controller/package.json | 2 +- 30 files changed, 31 insertions(+), 119 deletions(-) diff --git a/package.json b/package.json index 40e94dd553..a7ada84b7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/core-monorepo", - "version": "165.0.0", + "version": "166.0.0", "private": true, "description": "Monorepo for packages shared between MetaMask clients", "repository": { diff --git a/packages/accounts-controller/CHANGELOG.md b/packages/accounts-controller/CHANGELOG.md index 8cd4df27af..005d52e29b 100644 --- a/packages/accounts-controller/CHANGELOG.md +++ b/packages/accounts-controller/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [17.1.0] + ### Uncategorized - fix: update handleAccountRemoved logic ([#4322](https://github.com/MetaMask/core/pull/4322)) @@ -222,7 +224,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release ([#1637](https://github.com/MetaMask/core/pull/1637)) -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/accounts-controller@17.0.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/accounts-controller@17.1.0...HEAD +[17.1.0]: https://github.com/MetaMask/core/compare/@metamask/accounts-controller@17.0.0...@metamask/accounts-controller@17.1.0 [17.0.0]: https://github.com/MetaMask/core/compare/@metamask/accounts-controller@16.0.0...@metamask/accounts-controller@17.0.0 [16.0.0]: https://github.com/MetaMask/core/compare/@metamask/accounts-controller@15.0.0...@metamask/accounts-controller@16.0.0 [15.0.0]: https://github.com/MetaMask/core/compare/@metamask/accounts-controller@14.0.0...@metamask/accounts-controller@15.0.0 diff --git a/packages/accounts-controller/package.json b/packages/accounts-controller/package.json index 5658a9c3e4..9fe154d750 100644 --- a/packages/accounts-controller/package.json +++ b/packages/accounts-controller/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/accounts-controller", - "version": "17.0.0", + "version": "17.1.0", "description": "Manages internal accounts", "keywords": [ "MetaMask", diff --git a/packages/address-book-controller/CHANGELOG.md b/packages/address-book-controller/CHANGELOG.md index a6af50b178..0ce44eb48b 100644 --- a/packages/address-book-controller/CHANGELOG.md +++ b/packages/address-book-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- upgrade address book controller to base controller v2 ([#4392](https://github.com/MetaMask/core/pull/4392)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [5.0.0] ### Changed diff --git a/packages/approval-controller/CHANGELOG.md b/packages/approval-controller/CHANGELOG.md index 8a2826819b..ef5cf06d1c 100644 --- a/packages/approval-controller/CHANGELOG.md +++ b/packages/approval-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [7.0.0] ### Changed diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index 049250b849..03051ca269 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [34.0.0] + ### Uncategorized - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) @@ -946,7 +948,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845)) -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@33.0.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@34.0.0...HEAD +[34.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@33.0.0...@metamask/assets-controllers@34.0.0 [33.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@32.0.0...@metamask/assets-controllers@33.0.0 [32.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@31.0.0...@metamask/assets-controllers@32.0.0 [31.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@30.0.0...@metamask/assets-controllers@31.0.0 diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index f592e17c74..3236f6a8ae 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/assets-controllers", - "version": "33.0.0", + "version": "34.0.0", "description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)", "keywords": [ "MetaMask", diff --git a/packages/base-controller/CHANGELOG.md b/packages/base-controller/CHANGELOG.md index a0fbe3c78f..801dc144f6 100644 --- a/packages/base-controller/CHANGELOG.md +++ b/packages/base-controller/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [6.0.0] ### Changed diff --git a/packages/composable-controller/CHANGELOG.md b/packages/composable-controller/CHANGELOG.md index fcff4a3ccb..a074b1488b 100644 --- a/packages/composable-controller/CHANGELOG.md +++ b/packages/composable-controller/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [7.0.0] ### Changed diff --git a/packages/controller-utils/CHANGELOG.md b/packages/controller-utils/CHANGELOG.md index 74420a82b2..fbbca40d6b 100644 --- a/packages/controller-utils/CHANGELOG.md +++ b/packages/controller-utils/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [11.0.0] ### Added diff --git a/packages/ens-controller/CHANGELOG.md b/packages/ens-controller/CHANGELOG.md index 69121a2d15..89f1a1bfab 100644 --- a/packages/ens-controller/CHANGELOG.md +++ b/packages/ens-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) -- EnsController: providerConfig -> selectedNetworkClientId ([#4354](https://github.com/MetaMask/core/pull/4354)) - ## [12.0.0] ### Changed diff --git a/packages/gas-fee-controller/CHANGELOG.md b/packages/gas-fee-controller/CHANGELOG.md index fda6b39156..19e0ef69e7 100644 --- a/packages/gas-fee-controller/CHANGELOG.md +++ b/packages/gas-fee-controller/CHANGELOG.md @@ -7,12 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) -- GasFeeController: providerConfig -> selectedNetworkClientId ([#4356](https://github.com/MetaMask/core/pull/4356)) - ## [17.0.0] ### Changed diff --git a/packages/json-rpc-middleware-stream/CHANGELOG.md b/packages/json-rpc-middleware-stream/CHANGELOG.md index 7d7f3ec805..c72854d014 100644 --- a/packages/json-rpc-middleware-stream/CHANGELOG.md +++ b/packages/json-rpc-middleware-stream/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- bugfix for json-rpc-middleware-stream incorrect notification handling ([#4427](https://github.com/MetaMask/core/pull/4427)) - ## [8.0.0] ### Changed @@ -140,13 +136,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [7.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.2...@metamask/json-rpc-middleware-stream@7.0.0 [6.0.2]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.1...@metamask/json-rpc-middleware-stream@6.0.2 [6.0.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@6.0.0...@metamask/json-rpc-middleware-stream@6.0.1 -[6.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@5.0.1...@metamask/json-rpc-middleware-stream@6.0.0 -[5.0.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@5.0.0...@metamask/json-rpc-middleware-stream@5.0.1 -[5.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.3...@metamask/json-rpc-middleware-stream@5.0.0 -[4.2.3]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.2...@metamask/json-rpc-middleware-stream@4.2.3 -[4.2.2]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.1...@metamask/json-rpc-middleware-stream@4.2.2 -[4.2.1]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.2.0...@metamask/json-rpc-middleware-stream@4.2.1 -[4.2.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.1.0...@metamask/json-rpc-middleware-stream@4.2.0 -[4.1.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@4.0.0...@metamask/json-rpc-middleware-stream@4.1.0 -[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/json-rpc-middleware-stream@3.0.0...@metamask/json-rpc-middleware-stream@4.0.0 -[3.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/json-rpc-middleware-stream@3.0.0 +[6.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@5.0.1...@metamask/json-rpc-middleware-stream@6.0.0 +[5.0.1]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@5.0.0...json-rpc-middleware-stream@5.0.1 +[5.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.3...json-rpc-middleware-stream@5.0.0 +[4.2.3]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.2...json-rpc-middleware-stream@4.2.3 +[4.2.2]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.1...json-rpc-middleware-stream@4.2.2 +[4.2.1]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.2.0...json-rpc-middleware-stream@4.2.1 +[4.2.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.1.0...json-rpc-middleware-stream@4.2.0 +[4.1.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@4.0.0...json-rpc-middleware-stream@4.1.0 +[4.0.0]: https://github.com/MetaMask/core/compare/json-rpc-middleware-stream@3.0.0...json-rpc-middleware-stream@4.0.0 +[3.0.0]: https://github.com/MetaMask/core/releases/tag/json-rpc-middleware-stream@3.0.0 diff --git a/packages/logging-controller/CHANGELOG.md b/packages/logging-controller/CHANGELOG.md index fabad6b937..006f42b4e0 100644 --- a/packages/logging-controller/CHANGELOG.md +++ b/packages/logging-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [5.0.0] ### Changed diff --git a/packages/message-manager/CHANGELOG.md b/packages/message-manager/CHANGELOG.md index d73dded835..1cb9b3b848 100644 --- a/packages/message-manager/CHANGELOG.md +++ b/packages/message-manager/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [10.0.0] ### Changed diff --git a/packages/name-controller/CHANGELOG.md b/packages/name-controller/CHANGELOG.md index d7f6def53b..1d76978d49 100644 --- a/packages/name-controller/CHANGELOG.md +++ b/packages/name-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [8.0.0] ### Changed diff --git a/packages/network-controller/CHANGELOG.md b/packages/network-controller/CHANGELOG.md index 887fb18eea..de3beeb534 100644 --- a/packages/network-controller/CHANGELOG.md +++ b/packages/network-controller/CHANGELOG.md @@ -7,14 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- fix(deps): @metamask/eth-block-tracker@^9.0.2->^9.0.3 ([#4418](https://github.com/MetaMask/core/pull/4418)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) -- chore(test): Refactor FakeBlockTracker provider injection ([#4345](https://github.com/MetaMask/core/pull/4345)) -- AssetsContractController: providerConfig -> selectedNetworkClientId ([#4315](https://github.com/MetaMask/core/pull/4315)) - ### Changed - **BREAKING:** Update `networksMetadata` state property so that the keys in the object will only ever be network client IDs and not RPC URLs ([#4254](https://github.com/MetaMask/core/pull/4254)) diff --git a/packages/notification-controller/CHANGELOG.md b/packages/notification-controller/CHANGELOG.md index bf891e6295..182d9021cc 100644 --- a/packages/notification-controller/CHANGELOG.md +++ b/packages/notification-controller/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [6.0.0] ### Changed diff --git a/packages/permission-controller/CHANGELOG.md b/packages/permission-controller/CHANGELOG.md index 9f1c10662a..c768e0c80d 100644 --- a/packages/permission-controller/CHANGELOG.md +++ b/packages/permission-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [10.0.0] ### Changed diff --git a/packages/permission-log-controller/CHANGELOG.md b/packages/permission-log-controller/CHANGELOG.md index 7d4a356779..ad1ff6dd12 100644 --- a/packages/permission-log-controller/CHANGELOG.md +++ b/packages/permission-log-controller/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [3.0.0] ### Changed diff --git a/packages/phishing-controller/CHANGELOG.md b/packages/phishing-controller/CHANGELOG.md index 8aa1d3fcd6..4c88127577 100644 --- a/packages/phishing-controller/CHANGELOG.md +++ b/packages/phishing-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) -- [phishing-controller] Add `PhishingDetector` from `eth-phishing-detector` ([#4137](https://github.com/MetaMask/core/pull/4137)) - ## [10.0.0] ### Changed diff --git a/packages/polling-controller/CHANGELOG.md b/packages/polling-controller/CHANGELOG.md index d935102599..35d0580fb3 100644 --- a/packages/polling-controller/CHANGELOG.md +++ b/packages/polling-controller/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [8.0.0] ### Changed diff --git a/packages/preferences-controller/CHANGELOG.md b/packages/preferences-controller/CHANGELOG.md index c46b58f361..00f62607e9 100644 --- a/packages/preferences-controller/CHANGELOG.md +++ b/packages/preferences-controller/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Release 161.0.0 ([#4413](https://github.com/MetaMask/core/pull/4413)) - ## [13.0.0] ### Changed diff --git a/packages/rate-limit-controller/CHANGELOG.md b/packages/rate-limit-controller/CHANGELOG.md index 32affd94bc..91da273a4d 100644 --- a/packages/rate-limit-controller/CHANGELOG.md +++ b/packages/rate-limit-controller/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [6.0.0] ### Changed diff --git a/packages/selected-network-controller/CHANGELOG.md b/packages/selected-network-controller/CHANGELOG.md index 950c9c3a7f..d5a4504e54 100644 --- a/packages/selected-network-controller/CHANGELOG.md +++ b/packages/selected-network-controller/CHANGELOG.md @@ -7,11 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- test: cleanup/fix `SelectedNetworkController` specs ([#4409](https://github.com/MetaMask/core/pull/4409)) - ## [15.0.2] ### Fixed diff --git a/packages/signature-controller/CHANGELOG.md b/packages/signature-controller/CHANGELOG.md index 5c36c7e6dc..10f37cd76f 100644 --- a/packages/signature-controller/CHANGELOG.md +++ b/packages/signature-controller/CHANGELOG.md @@ -7,12 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Uncategorized - -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Release 161.0.0 ([#4413](https://github.com/MetaMask/core/pull/4413)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) - ## [18.0.0] ### Changed diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index a7db02eda8..d0631ff27a 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [33.1.0] + ### Uncategorized - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) @@ -902,7 +904,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 All changes listed after this point were applied to this package following the monorepo conversion. -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.1.0...HEAD +[33.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.0...@metamask/transaction-controller@33.1.0 [33.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@32.0.0...@metamask/transaction-controller@33.0.0 [32.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@31.0.0...@metamask/transaction-controller@32.0.0 [31.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@30.0.0...@metamask/transaction-controller@31.0.0 diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index 1b34db2bf6..bf79690841 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/transaction-controller", - "version": "33.0.0", + "version": "33.1.0", "description": "Stores transactions alongside their periodically updated statuses and manages interactions such as approval and cancellation", "keywords": [ "MetaMask", diff --git a/packages/user-operation-controller/CHANGELOG.md b/packages/user-operation-controller/CHANGELOG.md index ba47e3ccf6..80c9d84246 100644 --- a/packages/user-operation-controller/CHANGELOG.md +++ b/packages/user-operation-controller/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [12.1.0] + ### Uncategorized - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) @@ -169,7 +171,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial Release ([#3749](https://github.com/MetaMask/core/pull/3749)) -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.0...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.1.0...HEAD +[12.1.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.0...@metamask/user-operation-controller@12.1.0 [12.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@11.0.0...@metamask/user-operation-controller@12.0.0 [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@10.0.0...@metamask/user-operation-controller@11.0.0 [10.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@9.0.0...@metamask/user-operation-controller@10.0.0 diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index bac9c0a988..e9dde7da2a 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/user-operation-controller", - "version": "12.0.0", + "version": "12.1.0", "description": "Creates user operations and manages their life cycle", "keywords": [ "MetaMask", From c8961c9a6a448c8d26d6a9a6ce7689548b9b275c Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Tue, 25 Jun 2024 22:24:54 +0800 Subject: [PATCH 03/15] chore: update change log --- packages/accounts-controller/CHANGELOG.md | 11 +++++++---- packages/assets-controllers/CHANGELOG.md | 15 ++++++++++++--- packages/assets-controllers/package.json | 2 +- packages/transaction-controller/CHANGELOG.md | 9 ++++++--- packages/transaction-controller/package.json | 2 +- packages/user-operation-controller/CHANGELOG.md | 4 +--- packages/user-operation-controller/package.json | 2 +- yarn.lock | 6 +++--- 8 files changed, 32 insertions(+), 19 deletions(-) diff --git a/packages/accounts-controller/CHANGELOG.md b/packages/accounts-controller/CHANGELOG.md index 005d52e29b..297cc1a040 100644 --- a/packages/accounts-controller/CHANGELOG.md +++ b/packages/accounts-controller/CHANGELOG.md @@ -9,12 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [17.1.0] -### Uncategorized +### Added + +- Add `listMultichainAccounts` action ([#4426](https://github.com/MetaMask/core/pull/4426)) + +### Fixed -- fix: update handleAccountRemoved logic ([#4322](https://github.com/MetaMask/core/pull/4322)) +- Update `handleAccountRemoved` to one update ([#4322](https://github.com/MetaMask/core/pull/4322)) - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- feat: add listMultichainAccounts action ([#4426](https://github.com/MetaMask/core/pull/4426)) -- fix: move `@metamask/keyring-controller` to dependency in `@metamask/accounts-controller` ([#4425](https://github.com/MetaMask/core/pull/4425)) +- Move `@metamask/keyring-controller` to dependency in `@metamask/accounts-controller` ([#4425](https://github.com/MetaMask/core/pull/4425)) ## [17.0.0] diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index 03051ca269..c744640038 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -9,11 +9,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [34.0.0] -### Uncategorized +### Changed - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- fix: update tokens controllers to use selectedAccountId instead of selectedAddress ([#4219](https://github.com/MetaMask/core/pull/4219)) -- feat: upgrade AccountTrackerController to BaseControllerV2 ([#4407](https://github.com/MetaMask/core/pull/4407)) +- **BREAKING** Update Assets Controllers ([#4219](https://github.com/MetaMask/core/pull/4219)) + - `TokenBalancesController` messenger must allow the action `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. + - `TokenDetectionController` messenger must allow the action `AccountsController:getAccount`. + - `TokenDetectionController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `AccountsController:selectedAccountChange`. + - `TokenDetectionController` removes `selectedAddress` constructor argument. + - `TokenRatesController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. + - `TokenRatesController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `PreferencesController:stateChange`. + - `TokensController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount`. + - `TokensController` messenger must allow the event `AccountsController:selectedEvmAccountChange`. + - `TokensController` removes `selectedAddress` constructor argument. +- Upgrade AccountTrackerController to BaseControllerV2 ([#4407](https://github.com/MetaMask/core/pull/4407)) ## [33.0.0] diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 3236f6a8ae..986ada42fc 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -88,7 +88,7 @@ "typescript": "~4.9.5" }, "peerDependencies": { - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index d0631ff27a..77485e5aa3 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -9,11 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [33.1.0] -### Uncategorized +### Fixed + +- Disable some transaction controller integration tests ([#4429](https://github.com/MetaMask/core/pull/4429)) + +### Changed - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- docs: document TransactionStatus enum ([#4380](https://github.com/MetaMask/core/pull/4380)) -- fix: disable some transaction controller integration tests ([#4429](https://github.com/MetaMask/core/pull/4429)) +- Document TransactionStatus enum ([#4380](https://github.com/MetaMask/core/pull/4380)) ## [33.0.0] diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index bf79690841..b07f80fc4d 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -86,7 +86,7 @@ }, "peerDependencies": { "@babel/runtime": "^7.23.9", - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/gas-fee-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0" diff --git a/packages/user-operation-controller/CHANGELOG.md b/packages/user-operation-controller/CHANGELOG.md index 80c9d84246..794f5548e8 100644 --- a/packages/user-operation-controller/CHANGELOG.md +++ b/packages/user-operation-controller/CHANGELOG.md @@ -9,11 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [12.1.0] -### Uncategorized +### Changed - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Release 161.0.0 ([#4413](https://github.com/MetaMask/core/pull/4413)) -- Restore ESLint warnings as errors (ignoring them for now) ([#4382](https://github.com/MetaMask/core/pull/4382)) ## [12.0.0] diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index e9dde7da2a..63b72f00b9 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -74,7 +74,7 @@ "@metamask/gas-fee-controller": "^17.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", - "@metamask/transaction-controller": "^33.0.0" + "@metamask/transaction-controller": "^34.0.0" }, "engines": { "node": "^18.18 || >=20" diff --git a/yarn.lock b/yarn.lock index 7d3f5cedb5..3dd2afed42 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2351,7 +2351,7 @@ __metadata: typescript: ~4.9.5 uuid: ^8.3.2 peerDependencies: - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3816,7 +3816,7 @@ __metadata: uuid: ^8.3.2 peerDependencies: "@babel/runtime": ^7.23.9 - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/gas-fee-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3856,7 +3856,7 @@ __metadata: "@metamask/gas-fee-controller": ^17.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 - "@metamask/transaction-controller": ^33.0.0 + "@metamask/transaction-controller": ^34.0.0 languageName: unknown linkType: soft From 39d90065e5c72392df1a9a7b546935d0f20d9159 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Tue, 25 Jun 2024 22:32:54 +0800 Subject: [PATCH 04/15] fix: lint --- packages/assets-controllers/package.json | 2 +- packages/transaction-controller/package.json | 2 +- packages/user-operation-controller/package.json | 4 ++-- yarn.lock | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 986ada42fc..80b829d94d 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -47,7 +47,7 @@ "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", "@metamask/abi-utils": "^2.0.2", - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/base-controller": "^6.0.0", "@metamask/contract-metadata": "^2.4.0", diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index b07f80fc4d..a9bd200dc0 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -47,7 +47,7 @@ "@ethersproject/abi": "^5.7.0", "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/base-controller": "^6.0.0", "@metamask/controller-utils": "^11.0.0", diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index 63b72f00b9..6c0803da72 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -51,7 +51,7 @@ "@metamask/network-controller": "^19.0.0", "@metamask/polling-controller": "^8.0.0", "@metamask/rpc-errors": "^6.2.1", - "@metamask/transaction-controller": "^33.0.0", + "@metamask/transaction-controller": "^33.1.0", "@metamask/utils": "^8.3.0", "bn.js": "^5.2.1", "immer": "^9.0.6", @@ -74,7 +74,7 @@ "@metamask/gas-fee-controller": "^17.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", - "@metamask/transaction-controller": "^34.0.0" + "@metamask/transaction-controller": "^33.1.0" }, "engines": { "node": "^18.18 || >=20" diff --git a/yarn.lock b/yarn.lock index 3dd2afed42..d52359a1a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2195,7 +2195,7 @@ __metadata: languageName: node linkType: hard -"@metamask/accounts-controller@^17.0.0, @metamask/accounts-controller@workspace:packages/accounts-controller": +"@metamask/accounts-controller@^17.1.0, @metamask/accounts-controller@workspace:packages/accounts-controller": version: 0.0.0-use.local resolution: "@metamask/accounts-controller@workspace:packages/accounts-controller" dependencies: @@ -2313,7 +2313,7 @@ __metadata: "@ethersproject/contracts": ^5.7.0 "@ethersproject/providers": ^5.7.0 "@metamask/abi-utils": ^2.0.2 - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/auto-changelog": ^3.4.4 "@metamask/base-controller": ^6.0.0 @@ -3770,7 +3770,7 @@ __metadata: languageName: node linkType: hard -"@metamask/transaction-controller@^33.0.0, @metamask/transaction-controller@workspace:packages/transaction-controller": +"@metamask/transaction-controller@^33.1.0, @metamask/transaction-controller@workspace:packages/transaction-controller": version: 0.0.0-use.local resolution: "@metamask/transaction-controller@workspace:packages/transaction-controller" dependencies: @@ -3781,7 +3781,7 @@ __metadata: "@ethersproject/abi": ^5.7.0 "@ethersproject/contracts": ^5.7.0 "@ethersproject/providers": ^5.7.0 - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/auto-changelog": ^3.4.4 "@metamask/base-controller": ^6.0.0 @@ -3837,7 +3837,7 @@ __metadata: "@metamask/network-controller": ^19.0.0 "@metamask/polling-controller": ^8.0.0 "@metamask/rpc-errors": ^6.2.1 - "@metamask/transaction-controller": ^33.0.0 + "@metamask/transaction-controller": ^33.1.0 "@metamask/utils": ^8.3.0 "@types/jest": ^27.4.1 bn.js: ^5.2.1 @@ -3856,7 +3856,7 @@ __metadata: "@metamask/gas-fee-controller": ^17.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 - "@metamask/transaction-controller": ^34.0.0 + "@metamask/transaction-controller": ^33.1.0 languageName: unknown linkType: soft From 9d6c0fd199ac25c954bf232f094ba5bd0974250b Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Tue, 25 Jun 2024 22:40:36 +0800 Subject: [PATCH 05/15] fix: update change log --- packages/transaction-controller/CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index 77485e5aa3..5f0f01b150 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -9,15 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [33.1.0] -### Fixed - -- Disable some transaction controller integration tests ([#4429](https://github.com/MetaMask/core/pull/4429)) - ### Changed - Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) - Document TransactionStatus enum ([#4380](https://github.com/MetaMask/core/pull/4380)) +### Fixed + +- Disable some transaction controller integration tests ([#4429](https://github.com/MetaMask/core/pull/4429)) + ## [33.0.0] ### Changed From 7d1af2964f92fb162e1753e70e7de2a2e00fd570 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Wed, 26 Jun 2024 01:10:58 +0800 Subject: [PATCH 06/15] fix: changelog --- packages/accounts-controller/CHANGELOG.md | 5 +-- packages/assets-controllers/CHANGELOG.md | 45 ++++++++++++++----- packages/transaction-controller/CHANGELOG.md | 6 +-- .../user-operation-controller/CHANGELOG.md | 2 +- 4 files changed, 38 insertions(+), 20 deletions(-) diff --git a/packages/accounts-controller/CHANGELOG.md b/packages/accounts-controller/CHANGELOG.md index 297cc1a040..a94cbbe16c 100644 --- a/packages/accounts-controller/CHANGELOG.md +++ b/packages/accounts-controller/CHANGELOG.md @@ -11,13 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Add `listMultichainAccounts` action ([#4426](https://github.com/MetaMask/core/pull/4426)) +- Add `AccountsController:listMultichainAccounts` action ([#4426](https://github.com/MetaMask/core/pull/4426)) ### Fixed - Update `handleAccountRemoved` to one update ([#4322](https://github.com/MetaMask/core/pull/4322)) -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- Move `@metamask/keyring-controller` to dependency in `@metamask/accounts-controller` ([#4425](https://github.com/MetaMask/core/pull/4425)) +- Move `@metamask/keyring-controller` to dependency ([#4425](https://github.com/MetaMask/core/pull/4425)) ## [17.0.0] diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index c744640038..b3b32c2ffa 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -9,20 +9,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [34.0.0] +## Added + +- Add `AccountTrackerControllerGetStateAction`, `AccountTrackerControllerActions`, `AccountTrackerControllerStateChangeEvent`, and `AccountTrackerControllerEvents` types ([#4407](https://github.com/MetaMask/core/pull/4407)) +- Add `setIntervalLength` and `getIntervalLength` methods to `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - `setIntervalLength` replaces updating the polling interval via `configure`. + +## Removed + +- **BREAKING** `TokensController` removes `selectedAddress` constructor argument. +- **BREAKING** `TokenDetectionController` removes `selectedAddress` constructor argument. +- **BREAKING:** Remove `AccountTrackerConfig` type ([#4407](https://github.com/MetaMask/core/pull/4407)) + - Some of these properties have been merged into the options that the `AccountTrackerController` constructor takes. +- **BREAKING:** Remove `config` property and `configure` method from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - The controller now takes a single options object which can be used for configuration, and configuration is now kept internally. +- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - Use the controller messenger for subscribing to and publishing events instead. +- **BREAKING:** Remove `provider`, `getMultiAccountBalancesEnabled`, `getCurrentChainId`, and `getNetworkClientById` from configuration options for `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - The provider is now obtained directly from the network controller on demand. + - The messenger is now used in place of the callbacks. + ### Changed -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) -- **BREAKING** Update Assets Controllers ([#4219](https://github.com/MetaMask/core/pull/4219)) - - `TokenBalancesController` messenger must allow the action `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. - - `TokenDetectionController` messenger must allow the action `AccountsController:getAccount`. - - `TokenDetectionController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `AccountsController:selectedAccountChange`. - - `TokenDetectionController` removes `selectedAddress` constructor argument. - - `TokenRatesController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. - - `TokenRatesController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `PreferencesController:stateChange`. - - `TokensController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount`. - - `TokensController` messenger must allow the event `AccountsController:selectedEvmAccountChange`. - - `TokensController` removes `selectedAddress` constructor argument. +- **BREAKING** `TokenBalancesController` messenger must allow the action `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. +- **BREAKING** `TokenDetectionController` messenger must allow the action `AccountsController:getAccount`. +- **BREAKING** `TokenDetectionController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `AccountsController:selectedAccountChange`. +- **BREAKING** `TokenRatesController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. +- **BREAKING** `TokenRatesController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `PreferencesController:stateChange`. +- **BREAKING** `TokensController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount`. +- **BREAKING** `TokensController` messenger must allow the event `AccountsController:selectedEvmAccountChange`. - Upgrade AccountTrackerController to BaseControllerV2 ([#4407](https://github.com/MetaMask/core/pull/4407)) +- **BREAKING:** Convert `AccountInformation` from interface to type ([#4407](https://github.com/MetaMask/core/pull/4407)) +- **BREAKING:** Rename `AccountTrackerState` to `AccountTrackerControllerState` and convert from interface to type ([#4407](https://github.com/MetaMask/core/pull/4407)) +- **BREAKING:** `AccountTrackerController` now inherits from `StaticIntervalPollingController` instead of `StaticIntervalPollingControllerV1` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - The constructor now takes a single options object rather than three arguments. Some options have been removed; see later entries. +- **BREAKING:** The `AccountTrackerController` messenger must now allow the actions `PreferencesController:getState`, `NetworkController:getState`, and `NetworkController:getNetworkClientById` ([#4407](https://github.com/MetaMask/core/pull/4407)) +- **BREAKING:** The `refresh` method is no longer pre-bound to the controller ([#4407](https://github.com/MetaMask/core/pull/4407)) + - You may now need to pre-bind it e.g. `accountTrackerController.refresh.bind(accountTrackerController)`. ## [33.0.0] diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index 5f0f01b150..160603fe73 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -11,12 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) - Document TransactionStatus enum ([#4380](https://github.com/MetaMask/core/pull/4380)) - -### Fixed - -- Disable some transaction controller integration tests ([#4429](https://github.com/MetaMask/core/pull/4429)) +- Bump `@metamask/accounts-controller` to `^17.1.0` ([#4460](https://github.com/MetaMask/core/pull/4460)) ## [33.0.0] diff --git a/packages/user-operation-controller/CHANGELOG.md b/packages/user-operation-controller/CHANGELOG.md index 794f5548e8..57c75e877d 100644 --- a/packages/user-operation-controller/CHANGELOG.md +++ b/packages/user-operation-controller/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Enable `resetMocks` Jest configuration option ([#4417](https://github.com/MetaMask/core/pull/4417)) +- Bump `@metamask/transaction-controller` to `^33.1.0` ([#4460](https://github.com/MetaMask/core/pull/4460)) ## [12.0.0] From c14d79bf5c46fe5188d57844030c826cb36ee9f3 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Wed, 26 Jun 2024 01:11:12 +0800 Subject: [PATCH 07/15] fix: downgrade minor bumps --- packages/assets-controllers/package.json | 4 ++-- packages/transaction-controller/package.json | 4 ++-- packages/user-operation-controller/package.json | 4 ++-- yarn.lock | 16 ++++++++-------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 80b829d94d..3236f6a8ae 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -47,7 +47,7 @@ "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", "@metamask/abi-utils": "^2.0.2", - "@metamask/accounts-controller": "^17.1.0", + "@metamask/accounts-controller": "^17.0.0", "@metamask/approval-controller": "^7.0.0", "@metamask/base-controller": "^6.0.0", "@metamask/contract-metadata": "^2.4.0", @@ -88,7 +88,7 @@ "typescript": "~4.9.5" }, "peerDependencies": { - "@metamask/accounts-controller": "^17.1.0", + "@metamask/accounts-controller": "^17.0.0", "@metamask/approval-controller": "^7.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index a9bd200dc0..bf79690841 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -47,7 +47,7 @@ "@ethersproject/abi": "^5.7.0", "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", - "@metamask/accounts-controller": "^17.1.0", + "@metamask/accounts-controller": "^17.0.0", "@metamask/approval-controller": "^7.0.0", "@metamask/base-controller": "^6.0.0", "@metamask/controller-utils": "^11.0.0", @@ -86,7 +86,7 @@ }, "peerDependencies": { "@babel/runtime": "^7.23.9", - "@metamask/accounts-controller": "^17.1.0", + "@metamask/accounts-controller": "^17.0.0", "@metamask/approval-controller": "^7.0.0", "@metamask/gas-fee-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0" diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index 6c0803da72..e9dde7da2a 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -51,7 +51,7 @@ "@metamask/network-controller": "^19.0.0", "@metamask/polling-controller": "^8.0.0", "@metamask/rpc-errors": "^6.2.1", - "@metamask/transaction-controller": "^33.1.0", + "@metamask/transaction-controller": "^33.0.0", "@metamask/utils": "^8.3.0", "bn.js": "^5.2.1", "immer": "^9.0.6", @@ -74,7 +74,7 @@ "@metamask/gas-fee-controller": "^17.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", - "@metamask/transaction-controller": "^33.1.0" + "@metamask/transaction-controller": "^33.0.0" }, "engines": { "node": "^18.18 || >=20" diff --git a/yarn.lock b/yarn.lock index d52359a1a7..7d3f5cedb5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2195,7 +2195,7 @@ __metadata: languageName: node linkType: hard -"@metamask/accounts-controller@^17.1.0, @metamask/accounts-controller@workspace:packages/accounts-controller": +"@metamask/accounts-controller@^17.0.0, @metamask/accounts-controller@workspace:packages/accounts-controller": version: 0.0.0-use.local resolution: "@metamask/accounts-controller@workspace:packages/accounts-controller" dependencies: @@ -2313,7 +2313,7 @@ __metadata: "@ethersproject/contracts": ^5.7.0 "@ethersproject/providers": ^5.7.0 "@metamask/abi-utils": ^2.0.2 - "@metamask/accounts-controller": ^17.1.0 + "@metamask/accounts-controller": ^17.0.0 "@metamask/approval-controller": ^7.0.0 "@metamask/auto-changelog": ^3.4.4 "@metamask/base-controller": ^6.0.0 @@ -2351,7 +2351,7 @@ __metadata: typescript: ~4.9.5 uuid: ^8.3.2 peerDependencies: - "@metamask/accounts-controller": ^17.1.0 + "@metamask/accounts-controller": ^17.0.0 "@metamask/approval-controller": ^7.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3770,7 +3770,7 @@ __metadata: languageName: node linkType: hard -"@metamask/transaction-controller@^33.1.0, @metamask/transaction-controller@workspace:packages/transaction-controller": +"@metamask/transaction-controller@^33.0.0, @metamask/transaction-controller@workspace:packages/transaction-controller": version: 0.0.0-use.local resolution: "@metamask/transaction-controller@workspace:packages/transaction-controller" dependencies: @@ -3781,7 +3781,7 @@ __metadata: "@ethersproject/abi": ^5.7.0 "@ethersproject/contracts": ^5.7.0 "@ethersproject/providers": ^5.7.0 - "@metamask/accounts-controller": ^17.1.0 + "@metamask/accounts-controller": ^17.0.0 "@metamask/approval-controller": ^7.0.0 "@metamask/auto-changelog": ^3.4.4 "@metamask/base-controller": ^6.0.0 @@ -3816,7 +3816,7 @@ __metadata: uuid: ^8.3.2 peerDependencies: "@babel/runtime": ^7.23.9 - "@metamask/accounts-controller": ^17.1.0 + "@metamask/accounts-controller": ^17.0.0 "@metamask/approval-controller": ^7.0.0 "@metamask/gas-fee-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3837,7 +3837,7 @@ __metadata: "@metamask/network-controller": ^19.0.0 "@metamask/polling-controller": ^8.0.0 "@metamask/rpc-errors": ^6.2.1 - "@metamask/transaction-controller": ^33.1.0 + "@metamask/transaction-controller": ^33.0.0 "@metamask/utils": ^8.3.0 "@types/jest": ^27.4.1 bn.js: ^5.2.1 @@ -3856,7 +3856,7 @@ __metadata: "@metamask/gas-fee-controller": ^17.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 - "@metamask/transaction-controller": ^33.1.0 + "@metamask/transaction-controller": ^33.0.0 languageName: unknown linkType: soft From aea6e03deac216bf7d84bb14e960d9bfd2a01d2e Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 27 Jun 2024 00:19:01 +0800 Subject: [PATCH 08/15] fix: update changelog for accounts controller and assets controller --- packages/accounts-controller/CHANGELOG.md | 3 ++- packages/assets-controllers/CHANGELOG.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/accounts-controller/CHANGELOG.md b/packages/accounts-controller/CHANGELOG.md index a94cbbe16c..bf5a6f69ad 100644 --- a/packages/accounts-controller/CHANGELOG.md +++ b/packages/accounts-controller/CHANGELOG.md @@ -15,7 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Update `handleAccountRemoved` to one update ([#4322](https://github.com/MetaMask/core/pull/4322)) +- Refactored `getSelectedAccount` to handle cases when there are no accounts. ([#4322](https://github.com/MetaMask/core/pull/4322)) +- 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)) - Move `@metamask/keyring-controller` to dependency ([#4425](https://github.com/MetaMask/core/pull/4425)) ## [17.0.0] diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index b3b32c2ffa..695ee8dbe2 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **BREAKING:** The `AccountTrackerController` messenger must now allow the actions `PreferencesController:getState`, `NetworkController:getState`, and `NetworkController:getNetworkClientById` ([#4407](https://github.com/MetaMask/core/pull/4407)) - **BREAKING:** The `refresh` method is no longer pre-bound to the controller ([#4407](https://github.com/MetaMask/core/pull/4407)) - You may now need to pre-bind it e.g. `accountTrackerController.refresh.bind(accountTrackerController)`. +- Bump `@metamask/accounts-controller` to `^17.1.0` ([#4460](https://github.com/MetaMask/core/pull/4460)) ## [33.0.0] From 70c4a38a1cc7f9a4eaf61f04bc3e6e8501da58b9 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 27 Jun 2024 00:19:16 +0800 Subject: [PATCH 09/15] fix: lint version errors --- packages/assets-controllers/package.json | 4 ++-- packages/transaction-controller/package.json | 4 ++-- packages/user-operation-controller/package.json | 4 ++-- yarn.lock | 16 ++++++++-------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 3236f6a8ae..80b829d94d 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -47,7 +47,7 @@ "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", "@metamask/abi-utils": "^2.0.2", - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/base-controller": "^6.0.0", "@metamask/contract-metadata": "^2.4.0", @@ -88,7 +88,7 @@ "typescript": "~4.9.5" }, "peerDependencies": { - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index bf79690841..a9bd200dc0 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -47,7 +47,7 @@ "@ethersproject/abi": "^5.7.0", "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/base-controller": "^6.0.0", "@metamask/controller-utils": "^11.0.0", @@ -86,7 +86,7 @@ }, "peerDependencies": { "@babel/runtime": "^7.23.9", - "@metamask/accounts-controller": "^17.0.0", + "@metamask/accounts-controller": "^17.1.0", "@metamask/approval-controller": "^7.0.0", "@metamask/gas-fee-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0" diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index e9dde7da2a..6c0803da72 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -51,7 +51,7 @@ "@metamask/network-controller": "^19.0.0", "@metamask/polling-controller": "^8.0.0", "@metamask/rpc-errors": "^6.2.1", - "@metamask/transaction-controller": "^33.0.0", + "@metamask/transaction-controller": "^33.1.0", "@metamask/utils": "^8.3.0", "bn.js": "^5.2.1", "immer": "^9.0.6", @@ -74,7 +74,7 @@ "@metamask/gas-fee-controller": "^17.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", - "@metamask/transaction-controller": "^33.0.0" + "@metamask/transaction-controller": "^33.1.0" }, "engines": { "node": "^18.18 || >=20" diff --git a/yarn.lock b/yarn.lock index 7d3f5cedb5..d52359a1a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2195,7 +2195,7 @@ __metadata: languageName: node linkType: hard -"@metamask/accounts-controller@^17.0.0, @metamask/accounts-controller@workspace:packages/accounts-controller": +"@metamask/accounts-controller@^17.1.0, @metamask/accounts-controller@workspace:packages/accounts-controller": version: 0.0.0-use.local resolution: "@metamask/accounts-controller@workspace:packages/accounts-controller" dependencies: @@ -2313,7 +2313,7 @@ __metadata: "@ethersproject/contracts": ^5.7.0 "@ethersproject/providers": ^5.7.0 "@metamask/abi-utils": ^2.0.2 - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/auto-changelog": ^3.4.4 "@metamask/base-controller": ^6.0.0 @@ -2351,7 +2351,7 @@ __metadata: typescript: ~4.9.5 uuid: ^8.3.2 peerDependencies: - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3770,7 +3770,7 @@ __metadata: languageName: node linkType: hard -"@metamask/transaction-controller@^33.0.0, @metamask/transaction-controller@workspace:packages/transaction-controller": +"@metamask/transaction-controller@^33.1.0, @metamask/transaction-controller@workspace:packages/transaction-controller": version: 0.0.0-use.local resolution: "@metamask/transaction-controller@workspace:packages/transaction-controller" dependencies: @@ -3781,7 +3781,7 @@ __metadata: "@ethersproject/abi": ^5.7.0 "@ethersproject/contracts": ^5.7.0 "@ethersproject/providers": ^5.7.0 - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/auto-changelog": ^3.4.4 "@metamask/base-controller": ^6.0.0 @@ -3816,7 +3816,7 @@ __metadata: uuid: ^8.3.2 peerDependencies: "@babel/runtime": ^7.23.9 - "@metamask/accounts-controller": ^17.0.0 + "@metamask/accounts-controller": ^17.1.0 "@metamask/approval-controller": ^7.0.0 "@metamask/gas-fee-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3837,7 +3837,7 @@ __metadata: "@metamask/network-controller": ^19.0.0 "@metamask/polling-controller": ^8.0.0 "@metamask/rpc-errors": ^6.2.1 - "@metamask/transaction-controller": ^33.0.0 + "@metamask/transaction-controller": ^33.1.0 "@metamask/utils": ^8.3.0 "@types/jest": ^27.4.1 bn.js: ^5.2.1 @@ -3856,7 +3856,7 @@ __metadata: "@metamask/gas-fee-controller": ^17.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 - "@metamask/transaction-controller": ^33.0.0 + "@metamask/transaction-controller": ^33.1.0 languageName: unknown linkType: soft From eefbf3430c5ab5d119385174c8e3be52b5a6e184 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 27 Jun 2024 00:31:24 +0800 Subject: [PATCH 10/15] fix: lint --- packages/assets-controllers/CHANGELOG.md | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index 695ee8dbe2..f99620b34d 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -9,26 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [34.0.0] -## Added +### Added - Add `AccountTrackerControllerGetStateAction`, `AccountTrackerControllerActions`, `AccountTrackerControllerStateChangeEvent`, and `AccountTrackerControllerEvents` types ([#4407](https://github.com/MetaMask/core/pull/4407)) - Add `setIntervalLength` and `getIntervalLength` methods to `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) - `setIntervalLength` replaces updating the polling interval via `configure`. -## Removed - -- **BREAKING** `TokensController` removes `selectedAddress` constructor argument. -- **BREAKING** `TokenDetectionController` removes `selectedAddress` constructor argument. -- **BREAKING:** Remove `AccountTrackerConfig` type ([#4407](https://github.com/MetaMask/core/pull/4407)) - - Some of these properties have been merged into the options that the `AccountTrackerController` constructor takes. -- **BREAKING:** Remove `config` property and `configure` method from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) - - The controller now takes a single options object which can be used for configuration, and configuration is now kept internally. -- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) - - Use the controller messenger for subscribing to and publishing events instead. -- **BREAKING:** Remove `provider`, `getMultiAccountBalancesEnabled`, `getCurrentChainId`, and `getNetworkClientById` from configuration options for `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) - - The provider is now obtained directly from the network controller on demand. - - The messenger is now used in place of the callbacks. - ### Changed - **BREAKING** `TokenBalancesController` messenger must allow the action `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. @@ -48,6 +34,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - You may now need to pre-bind it e.g. `accountTrackerController.refresh.bind(accountTrackerController)`. - Bump `@metamask/accounts-controller` to `^17.1.0` ([#4460](https://github.com/MetaMask/core/pull/4460)) +### Removed + +- **BREAKING** `TokensController` removes `selectedAddress` constructor argument. +- **BREAKING** `TokenDetectionController` removes `selectedAddress` constructor argument. +- **BREAKING:** Remove `AccountTrackerConfig` type ([#4407](https://github.com/MetaMask/core/pull/4407)) + - Some of these properties have been merged into the options that the `AccountTrackerController` constructor takes. +- **BREAKING:** Remove `config` property and `configure` method from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - The controller now takes a single options object which can be used for configuration, and configuration is now kept internally. +- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - Use the controller messenger for subscribing to and publishing events instead. +- **BREAKING:** Remove `provider`, `getMultiAccountBalancesEnabled`, `getCurrentChainId`, and `getNetworkClientById` from configuration options for `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) + - The provider is now obtained directly from the network controller on demand. + - The messenger is now used in place of the callbacks. + ## [33.0.0] ### Added From 5e302deb00a4d4b497fb0169b46cc302613ead23 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 27 Jun 2024 01:05:08 +0800 Subject: [PATCH 11/15] Apply suggestions from code review Co-authored-by: Elliot Winkler --- packages/assets-controllers/CHANGELOG.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/assets-controllers/CHANGELOG.md b/packages/assets-controllers/CHANGELOG.md index f99620b34d..c6bf2671c5 100644 --- a/packages/assets-controllers/CHANGELOG.md +++ b/packages/assets-controllers/CHANGELOG.md @@ -17,13 +17,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- **BREAKING** `TokenBalancesController` messenger must allow the action `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. -- **BREAKING** `TokenDetectionController` messenger must allow the action `AccountsController:getAccount`. -- **BREAKING** `TokenDetectionController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `AccountsController:selectedAccountChange`. -- **BREAKING** `TokenRatesController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. -- **BREAKING** `TokenRatesController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `PreferencesController:stateChange`. +- **BREAKING** `TokenBalancesController` messenger must allow the action `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. ([#4219](https://github.com/MetaMask/core/pull/4219)) +- **BREAKING** `TokenDetectionController` messenger must allow the action `AccountsController:getAccount`. ([#4219](https://github.com/MetaMask/core/pull/4219)) +- **BREAKING** `TokenDetectionController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `AccountsController:selectedAccountChange`. ([#4219](https://github.com/MetaMask/core/pull/4219)) +- **BREAKING** `TokenRatesController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount` and remove `PreferencesController:getState`. ([#4219](https://github.com/MetaMask/core/pull/4219)) +- **BREAKING** `TokenRatesController` messenger must allow the event `AccountsController:selectedEvmAccountChange` and remove `PreferencesController:stateChange`. ([#4219](https://github.com/MetaMask/core/pull/4219)) - **BREAKING** `TokensController` messenger must allow the action `AccountsController:getAccount`, `AccountsController:getSelectedAccount`. -- **BREAKING** `TokensController` messenger must allow the event `AccountsController:selectedEvmAccountChange`. +- **BREAKING** `TokensController` messenger must allow the event `AccountsController:selectedEvmAccountChange`. ([#4219](https://github.com/MetaMask/core/pull/4219)) - Upgrade AccountTrackerController to BaseControllerV2 ([#4407](https://github.com/MetaMask/core/pull/4407)) - **BREAKING:** Convert `AccountInformation` from interface to type ([#4407](https://github.com/MetaMask/core/pull/4407)) - **BREAKING:** Rename `AccountTrackerState` to `AccountTrackerControllerState` and convert from interface to type ([#4407](https://github.com/MetaMask/core/pull/4407)) @@ -36,8 +36,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed -- **BREAKING** `TokensController` removes `selectedAddress` constructor argument. -- **BREAKING** `TokenDetectionController` removes `selectedAddress` constructor argument. +- **BREAKING** `TokensController` removes `selectedAddress` constructor argument. ([#4219](https://github.com/MetaMask/core/pull/4219)) +- **BREAKING** `TokenDetectionController` removes `selectedAddress` constructor argument. ([#4219](https://github.com/MetaMask/core/pull/4219)) - **BREAKING:** Remove `AccountTrackerConfig` type ([#4407](https://github.com/MetaMask/core/pull/4407)) - Some of these properties have been merged into the options that the `AccountTrackerController` constructor takes. - **BREAKING:** Remove `config` property and `configure` method from `AccountTrackerController` ([#4407](https://github.com/MetaMask/core/pull/4407)) From 18f7ec34fb3eb0f3d1312021d6ae42836997322e Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 27 Jun 2024 01:07:58 +0800 Subject: [PATCH 12/15] fix: revert peer dep bump --- packages/assets-controllers/package.json | 2 +- packages/transaction-controller/package.json | 2 +- packages/user-operation-controller/package.json | 2 +- yarn.lock | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/assets-controllers/package.json b/packages/assets-controllers/package.json index 80b829d94d..45ae61cbad 100644 --- a/packages/assets-controllers/package.json +++ b/packages/assets-controllers/package.json @@ -88,7 +88,7 @@ "typescript": "~4.9.5" }, "peerDependencies": { - "@metamask/accounts-controller": "^17.1.0", + "@metamask/accounts-controller": "^17.0.0", "@metamask/approval-controller": "^7.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index a9bd200dc0..395570a83a 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -86,7 +86,7 @@ }, "peerDependencies": { "@babel/runtime": "^7.23.9", - "@metamask/accounts-controller": "^17.1.0", + "@metamask/accounts-controller": "^17.0.0", "@metamask/approval-controller": "^7.0.0", "@metamask/gas-fee-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0" diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index 6c0803da72..f38d21363b 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -74,7 +74,7 @@ "@metamask/gas-fee-controller": "^17.0.0", "@metamask/keyring-controller": "^17.0.0", "@metamask/network-controller": "^19.0.0", - "@metamask/transaction-controller": "^33.1.0" + "@metamask/transaction-controller": "^33.0.0" }, "engines": { "node": "^18.18 || >=20" diff --git a/yarn.lock b/yarn.lock index d52359a1a7..a29e533e50 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2351,7 +2351,7 @@ __metadata: typescript: ~4.9.5 uuid: ^8.3.2 peerDependencies: - "@metamask/accounts-controller": ^17.1.0 + "@metamask/accounts-controller": ^17.0.0 "@metamask/approval-controller": ^7.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3816,7 +3816,7 @@ __metadata: uuid: ^8.3.2 peerDependencies: "@babel/runtime": ^7.23.9 - "@metamask/accounts-controller": ^17.1.0 + "@metamask/accounts-controller": ^17.0.0 "@metamask/approval-controller": ^7.0.0 "@metamask/gas-fee-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 @@ -3856,7 +3856,7 @@ __metadata: "@metamask/gas-fee-controller": ^17.0.0 "@metamask/keyring-controller": ^17.0.0 "@metamask/network-controller": ^19.0.0 - "@metamask/transaction-controller": ^33.1.0 + "@metamask/transaction-controller": ^33.0.0 languageName: unknown linkType: soft From 7cbf15f47dcf69bcb3b96168bad8319d11331129 Mon Sep 17 00:00:00 2001 From: Monte Lai Date: Thu, 27 Jun 2024 01:15:00 +0800 Subject: [PATCH 13/15] fix: changelog --- packages/accounts-controller/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/accounts-controller/CHANGELOG.md b/packages/accounts-controller/CHANGELOG.md index bf5a6f69ad..885a22e1f6 100644 --- a/packages/accounts-controller/CHANGELOG.md +++ b/packages/accounts-controller/CHANGELOG.md @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Refactored `getSelectedAccount` to handle cases when there are no accounts. ([#4322](https://github.com/MetaMask/core/pull/4322)) +- 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)) - 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)) - Move `@metamask/keyring-controller` to dependency ([#4425](https://github.com/MetaMask/core/pull/4425)) From 91a6881991b2079de6fa5f0e10446c434ddb17cd Mon Sep 17 00:00:00 2001 From: gantunesr <17601467+gantunesr@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:40:57 -0400 Subject: [PATCH 14/15] chore: update semver for transaction and user operation controllers --- packages/transaction-controller/CHANGELOG.md | 6 +++--- packages/transaction-controller/package.json | 2 +- packages/user-operation-controller/CHANGELOG.md | 8 ++++---- packages/user-operation-controller/package.json | 4 ++-- yarn.lock | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index 160603fe73..fa4952dcbb 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [33.1.0] +## [33.0.1] ### Changed @@ -903,8 +903,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 All changes listed after this point were applied to this package following the monorepo conversion. -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.1.0...HEAD -[33.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.0...@metamask/transaction-controller@33.1.0 +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.1...HEAD +[33.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.0...@metamask/transaction-controller@33.0.1 [33.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@32.0.0...@metamask/transaction-controller@33.0.0 [32.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@31.0.0...@metamask/transaction-controller@32.0.0 [31.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@30.0.0...@metamask/transaction-controller@31.0.0 diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index 395570a83a..8bd09156be 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/transaction-controller", - "version": "33.1.0", + "version": "33.0.1", "description": "Stores transactions alongside their periodically updated statuses and manages interactions such as approval and cancellation", "keywords": [ "MetaMask", diff --git a/packages/user-operation-controller/CHANGELOG.md b/packages/user-operation-controller/CHANGELOG.md index 57c75e877d..46d369e432 100644 --- a/packages/user-operation-controller/CHANGELOG.md +++ b/packages/user-operation-controller/CHANGELOG.md @@ -7,11 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [12.1.0] +## [12.0.1] ### Changed -- Bump `@metamask/transaction-controller` to `^33.1.0` ([#4460](https://github.com/MetaMask/core/pull/4460)) +- Bump `@metamask/transaction-controller` to `^33.0.1` ([#4460](https://github.com/MetaMask/core/pull/4460)) ## [12.0.0] @@ -169,8 +169,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial Release ([#3749](https://github.com/MetaMask/core/pull/3749)) -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.1.0...HEAD -[12.1.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.0...@metamask/user-operation-controller@12.1.0 +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.1...HEAD +[12.1.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.0...@metamask/user-operation-controller@12.0.1 [12.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@11.0.0...@metamask/user-operation-controller@12.0.0 [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@10.0.0...@metamask/user-operation-controller@11.0.0 [10.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@9.0.0...@metamask/user-operation-controller@10.0.0 diff --git a/packages/user-operation-controller/package.json b/packages/user-operation-controller/package.json index f38d21363b..d9b2d23f2f 100644 --- a/packages/user-operation-controller/package.json +++ b/packages/user-operation-controller/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/user-operation-controller", - "version": "12.1.0", + "version": "12.0.1", "description": "Creates user operations and manages their life cycle", "keywords": [ "MetaMask", @@ -51,7 +51,7 @@ "@metamask/network-controller": "^19.0.0", "@metamask/polling-controller": "^8.0.0", "@metamask/rpc-errors": "^6.2.1", - "@metamask/transaction-controller": "^33.1.0", + "@metamask/transaction-controller": "^33.0.1", "@metamask/utils": "^8.3.0", "bn.js": "^5.2.1", "immer": "^9.0.6", diff --git a/yarn.lock b/yarn.lock index a29e533e50..64b7706189 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3770,7 +3770,7 @@ __metadata: languageName: node linkType: hard -"@metamask/transaction-controller@^33.1.0, @metamask/transaction-controller@workspace:packages/transaction-controller": +"@metamask/transaction-controller@^33.0.1, @metamask/transaction-controller@workspace:packages/transaction-controller": version: 0.0.0-use.local resolution: "@metamask/transaction-controller@workspace:packages/transaction-controller" dependencies: @@ -3837,7 +3837,7 @@ __metadata: "@metamask/network-controller": ^19.0.0 "@metamask/polling-controller": ^8.0.0 "@metamask/rpc-errors": ^6.2.1 - "@metamask/transaction-controller": ^33.1.0 + "@metamask/transaction-controller": ^33.0.1 "@metamask/utils": ^8.3.0 "@types/jest": ^27.4.1 bn.js: ^5.2.1 From 2cf1e08601366c8262a2f8e0343140e77774a38d Mon Sep 17 00:00:00 2001 From: gantunesr <17601467+gantunesr@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:44:30 -0400 Subject: [PATCH 15/15] chore: update CHANGELOGs --- packages/transaction-controller/CHANGELOG.md | 2 +- packages/user-operation-controller/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index fa4952dcbb..0eb4380faa 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -904,7 +904,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 All changes listed after this point were applied to this package following the monorepo conversion. [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.1...HEAD -[33.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.0...@metamask/transaction-controller@33.0.1 +[33.0.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@33.0.0...@metamask/transaction-controller@33.0.1 [33.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@32.0.0...@metamask/transaction-controller@33.0.0 [32.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@31.0.0...@metamask/transaction-controller@32.0.0 [31.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@30.0.0...@metamask/transaction-controller@31.0.0 diff --git a/packages/user-operation-controller/CHANGELOG.md b/packages/user-operation-controller/CHANGELOG.md index 46d369e432..509bce212a 100644 --- a/packages/user-operation-controller/CHANGELOG.md +++ b/packages/user-operation-controller/CHANGELOG.md @@ -170,7 +170,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial Release ([#3749](https://github.com/MetaMask/core/pull/3749)) [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.1...HEAD -[12.1.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.0...@metamask/user-operation-controller@12.0.1 +[12.0.1]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@12.0.0...@metamask/user-operation-controller@12.0.1 [12.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@11.0.0...@metamask/user-operation-controller@12.0.0 [11.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@10.0.0...@metamask/user-operation-controller@11.0.0 [10.0.0]: https://github.com/MetaMask/core/compare/@metamask/user-operation-controller@9.0.0...@metamask/user-operation-controller@10.0.0