Skip to content

Commit 07e5a5d

Browse files
ccharlyMajorLiftmcmire
committed
Release 161.0.0 (#4413)
## Explanation This release contains the following packages: - `@metamask/accounts-controller` (major) - `@metamask/assets-controllers` (major) - `@metamask/chain-controller` (minor) - `@metamask/keyring-controller` (minor) - `@metamask/selected-network-controller` (patch) - `@metamask/transaction-controller` (major) <!-- ## References --> <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? For example: * Fixes #12345 * Related to #67890 --> <!-- ## Changelog If you're making any consumer-facing changes, list those changes here as if you were updating a changelog, using the template below as a guide. (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or FIXED. For security-related issues, follow the Security Advisory process.) Please take care to name the exact pieces of the API you've added or changed (e.g. types, interfaces, functions, or methods). If there are any breaking changes, make sure to offer a solution for consumers to follow once they upgrade to the changes. Finally, if you're only making changes to development scripts or tests, you may replace the template below with "None". ### `@metamask/package-a` - **<CATEGORY>**: Your change here - **<CATEGORY>**: Your change here ### `@metamask/package-b` - **<CATEGORY>**: Your change here - **<CATEGORY>**: Your change here --> ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate --------- Co-authored-by: Jongsun Suh <[email protected]> Co-authored-by: Elliot Winkler <[email protected]>
1 parent e278625 commit 07e5a5d

File tree

18 files changed

+154
-41
lines changed

18 files changed

+154
-41
lines changed

package.json

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

packages/accounts-controller/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [17.0.0]
11+
12+
### Changed
13+
14+
- **BREAKING:** Newly added account is no longer set as the last selected account ([#4363](https://github.com/MetaMask/core/pull/4363))
15+
- Bump `@metamask/eth-snap-keyring` to `^4.3.1` ([#4405](https://github.com/MetaMask/core/pull/4405))
16+
- Bump `@metamask/keyring-api` to `^8.0.0` ([#4405](https://github.com/MetaMask/core/pull/4405))
17+
- Bump `@metamask/keyring-controller` to `^17.1.0` (`devDependencies`) ([#4413](https://github.com/MetaMask/core/pull/4413))
18+
19+
### Fixed
20+
21+
- Use `listMultichainAccount` in `getAccountByAddress` ([#4375](https://github.com/MetaMask/core/pull/4375))
22+
1023
## [16.0.0]
1124

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

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

205-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
218+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
219+
[17.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
206220
[16.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
207221
[15.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
208222
[14.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/accounts-controller/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/accounts-controller",
3-
"version": "16.0.0",
3+
"version": "17.0.0",
44
"description": "Manages internal accounts",
55
"keywords": [
66
"MetaMask",
@@ -55,7 +55,7 @@
5555
},
5656
"devDependencies": {
5757
"@metamask/auto-changelog": "^3.4.4",
58-
"@metamask/keyring-controller": "^17.0.0",
58+
"@metamask/keyring-controller": "^17.1.0",
5959
"@metamask/snaps-controllers": "^8.1.1",
6060
"@types/jest": "^27.4.1",
6161
"@types/readable-stream": "^2.3.0",

packages/assets-controllers/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [33.0.0]
11+
12+
### Added
13+
14+
- **BREAKING:** Add `messenger` as a constructor option for `AccountTrackerController` ([#4225](https://github.com/MetaMask/core/pull/4225))
15+
- **BREAKING:** Add `messenger` option to `TokenRatesController` ([#4314](https://github.com/MetaMask/core/pull/4314))
16+
- This messenger must allow the actions `TokensController:getState`, `NetworkController:getNetworkClientById`, `NetworkController:getState`, and `PreferencesController:getState` and allow the events `PreferencesController:stateChange`, `TokensController:stateChange`, and `NetworkController:stateChange`.
17+
- Add types `TokenRatesControllerGetStateAction`, `TokenRatesControllerActions`, `TokenRatesControllerStateChangeEvent`, `TokenRatesControllerEvents`, `TokenRatesControllerMessenger`([#4314](https://github.com/MetaMask/core/pull/4314))
18+
- Add function `getDefaultTokenRatesControllerState` ([#4314](https://github.com/MetaMask/core/pull/4314))
19+
- Add `enable` and `disable` methods to `TokenRatesController` ([#4314](https://github.com/MetaMask/core/pull/4314))
20+
- These are used to stop and restart polling.
21+
- Export `ContractExchangeRates` type ([#4314](https://github.com/MetaMask/core/pull/4314))
22+
- Add `AccountTrackerControllerMessenger` type
23+
- **BREAKING:** The `NftController` messenger must now allow `AccountsController:getAccount` and `AccountsController:getSelectedAccount` as messenger actions and `AccountsController:selectedEvmAccountChange` as a messenger event ([#4221](https://github.com/MetaMask/core/pull/4221))
24+
- **BREAKING:** `NftDetectionController` messenger must now allow `AccountsController:getSelectedAccount` as a messenger action ([#4221](https://github.com/MetaMask/core/pull/4221))
25+
- Token price API support for mantle network ([#4376](https://github.com/MetaMask/core/pull/4376))
26+
27+
### Changed
28+
29+
- **BREAKING:** Bump dependency and peer dependency `@metamask/accounts-controller` to `^17.0.0` ([#4413](https://github.com/MetaMask/core/pull/4413))
30+
- **BREAKING:** `TokenRatesController` now inherits from `StaticIntervalPollingController` instead of `StaticIntervalPollingControllerV1` ([#4314](https://github.com/MetaMask/core/pull/4314))
31+
- The constructor now takes a single options object rather than three arguments. Some options have been removed; see later entries.
32+
- **BREAKING:** Rename `TokenRatesState` to `TokenRatesControllerState`, and convert from `interface` to `type` ([#4314](https://github.com/MetaMask/core/pull/4314))
33+
- The `NftController` now reads the selected address via the `AccountsController`, using the `AccountsController:selectedEvmAccountChange` messenger event to stay up to date ([#4221](https://github.com/MetaMask/core/pull/4221))
34+
- `NftDetectionController` now reads the currently selected account from `AccountsController` instead of `PreferencesController` ([#4221](https://github.com/MetaMask/core/pull/4221))
35+
- Bump `@metamask/keyring-api` to `^8.0.0` ([#4405](https://github.com/MetaMask/core/pull/4405))
36+
- Bump `@metamask/eth-snap-keyring` to `^4.3.1` ([#4405](https://github.com/MetaMask/core/pull/4405))
37+
- Bump `@metamask/keyring-controller` to `^17.1.0` ([#4413](https://github.com/MetaMask/core/pull/4413))
38+
39+
### Removed
40+
41+
- **BREAKING:** Remove `nativeCurrency`, `chainId`, `selectedAddress`, `allTokens`, and `allDetectedTokens` from configuration options for `TokenRatesController` ([#4314](https://github.com/MetaMask/core/pull/4314))
42+
- The messenger is now used to obtain information from other controllers where this data was originally expected to come from.
43+
- **BREAKING:** Remove `config` property and `configure` method from `TokenRatesController` ([#4314](https://github.com/MetaMask/core/pull/4314))
44+
- The controller now takes a single options object which can be used for configuration, and configuration is now kept internally.
45+
- **BREAKING:** Remove `notify`, `subscribe`, and `unsubscribe` methods from `TokenRatesController` ([#4314](https://github.com/MetaMask/core/pull/4314))
46+
- Use the controller messenger for subscribing to and publishing events instead.
47+
- **BREAKING:** Remove `TokenRatesConfig` type ([#4314](https://github.com/MetaMask/core/pull/4314))
48+
- Some of these properties have been merged into the options that `TokenRatesController` takes.
49+
- **BREAKING:** Remove `NftController` constructor options `selectedAddress`. ([#4221](https://github.com/MetaMask/core/pull/4221))
50+
- **BREAKING:** Remove `AccountTrackerController` constructor options `getIdentities`, `getSelectedAddress` and `onPreferencesStateChange` ([#4225](https://github.com/MetaMask/core/pull/4225))
51+
- **BREAKING:** Remove `value` property from the data for each token in `state.marketData` ([#4364](https://github.com/MetaMask/core/pull/4364))
52+
- The `price` property should be used instead.
53+
54+
### Fixed
55+
56+
- Prevent unnecessary state updates when executing the `NftController`'s `updateNftMetadata` method by comparing the metadata of fetched NFTs and NFTs in state and synchronizing state updates using a mutex lock. ([#4325](https://github.com/MetaMask/core/pull/4325))
57+
- Prevent the use of market data when not available for a given token ([#4361](https://github.com/MetaMask/core/pull/4361))
58+
- Fix `refresh` method remaining locked indefinitely after it was run successfully. Now lock is released on successful as well as failed runs. ([#4270](https://github.com/MetaMask/core/pull/4270))
59+
- `TokenRatesController` uses checksum instead of lowercase format for token addresses ([#4377](https://github.com/MetaMask/core/pull/4377))
60+
1061
## [32.0.0]
1162

1263
### Changed
@@ -889,7 +940,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
889940
890941
- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
891942
892-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
943+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
944+
[33.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
893945
[32.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
894946
[31.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
895947
[30.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/assets-controllers/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/assets-controllers",
3-
"version": "32.0.0",
3+
"version": "33.0.0",
44
"description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
55
"keywords": [
66
"MetaMask",
@@ -47,13 +47,13 @@
4747
"@ethersproject/contracts": "^5.7.0",
4848
"@ethersproject/providers": "^5.7.0",
4949
"@metamask/abi-utils": "^2.0.2",
50-
"@metamask/accounts-controller": "^16.0.0",
50+
"@metamask/accounts-controller": "^17.0.0",
5151
"@metamask/approval-controller": "^7.0.0",
5252
"@metamask/base-controller": "^6.0.0",
5353
"@metamask/contract-metadata": "^2.4.0",
5454
"@metamask/controller-utils": "^11.0.0",
5555
"@metamask/eth-query": "^4.0.0",
56-
"@metamask/keyring-controller": "^17.0.0",
56+
"@metamask/keyring-controller": "^17.1.0",
5757
"@metamask/metamask-eth-abis": "^3.1.1",
5858
"@metamask/network-controller": "^19.0.0",
5959
"@metamask/polling-controller": "^8.0.0",
@@ -88,7 +88,7 @@
8888
"typescript": "~4.9.5"
8989
},
9090
"peerDependencies": {
91-
"@metamask/accounts-controller": "^16.0.0",
91+
"@metamask/accounts-controller": "^17.0.0",
9292
"@metamask/approval-controller": "^7.0.0",
9393
"@metamask/keyring-controller": "^17.0.0",
9494
"@metamask/network-controller": "^19.0.0",

packages/chain-controller/CHANGELOG.md

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

88
## [Unreleased]
99

10-
[Unreleased]: https://github.com/MetaMask/core/
10+
## [0.1.0]
11+
12+
### Changed
13+
14+
- Initial release
15+
16+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
17+
[0.1.0]: https://github.com/MetaMask/core/releases/tag/@metamask/[email protected]

packages/chain-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/chain-controller",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"description": "Manages chain-agnostic providers",
55
"keywords": [
66
"MetaMask",

packages/keyring-controller/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [17.1.0]
11+
12+
### Added
13+
14+
- Add support for overwriting built-in keyring builders for the Simple and HD keyring ([#4362](https://github.com/MetaMask/core/pull/4362))
15+
1016
### Changed
1117

18+
- Bump `@metamask/eth-snap-keyring` to `^4.3.1` ([#4405](https://github.com/MetaMask/core/pull/4405))
19+
- Bump `@metamask/keyring-api` to `^8.0.0` ([#4405](https://github.com/MetaMask/core/pull/4405))
20+
21+
### Deprecated
22+
1223
- Deprecate QR keyring methods ([#4365](https://github.com/MetaMask/core/pull/4365))
1324
- `cancelQRSignRequest`
1425
- `cancelQRSynchronization`
@@ -486,7 +497,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
486497

487498
All changes listed after this point were applied to this package following the monorepo conversion.
488499

489-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
500+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
501+
[17.1.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
490502
[17.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
491503
[16.1.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
492504
[16.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/keyring-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/keyring-controller",
3-
"version": "17.0.0",
3+
"version": "17.1.0",
44
"description": "Stores identities seen in the wallet and manages interactions such as signing",
55
"keywords": [
66
"MetaMask",

packages/preferences-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"devDependencies": {
4848
"@metamask/auto-changelog": "^3.4.4",
49-
"@metamask/keyring-controller": "^17.0.0",
49+
"@metamask/keyring-controller": "^17.1.0",
5050
"@types/jest": "^27.4.1",
5151
"deepmerge": "^4.2.2",
5252
"jest": "^27.5.1",

0 commit comments

Comments
 (0)