Skip to content

Commit 4c5900e

Browse files
OGPoyrazadonesky1mcmirelegobeat
authored andcommitted
Release 81.0.0 (#1747)
Co-authored-by: Alex <[email protected]> Co-authored-by: Elliot Winkler <[email protected]> Co-authored-by: OGPoyraz <[email protected]> Co-authored-by: legobeat <[email protected]>
1 parent 66c1b92 commit 4c5900e

File tree

44 files changed

+400
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+400
-174
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ linkStyle default opacity:0.5
5454
notification_controller(["@metamask/notification-controller"]);
5555
permission_controller(["@metamask/permission-controller"]);
5656
phishing_controller(["@metamask/phishing-controller"]);
57+
polling_controller(["@metamask/polling-controller"]);
5758
preferences_controller(["@metamask/preferences-controller"]);
5859
rate_limit_controller(["@metamask/rate-limit-controller"]);
5960
selected_network_controller(["@metamask/selected-network-controller"]);
@@ -68,18 +69,13 @@ linkStyle default opacity:0.5
6869
assets_controllers --> approval_controller;
6970
assets_controllers --> base_controller;
7071
assets_controllers --> controller_utils;
71-
assets_controllers --> network_controller;
72-
assets_controllers --> preferences_controller;
7372
composable_controller --> base_controller;
7473
ens_controller --> base_controller;
7574
ens_controller --> controller_utils;
76-
ens_controller --> network_controller;
7775
gas_fee_controller --> base_controller;
7876
gas_fee_controller --> controller_utils;
79-
gas_fee_controller --> network_controller;
8077
keyring_controller --> base_controller;
8178
keyring_controller --> message_manager;
82-
keyring_controller --> preferences_controller;
8379
logging_controller --> base_controller;
8480
logging_controller --> controller_utils;
8581
message_manager --> base_controller;
@@ -93,11 +89,12 @@ linkStyle default opacity:0.5
9389
permission_controller --> controller_utils;
9490
phishing_controller --> base_controller;
9591
phishing_controller --> controller_utils;
92+
polling_controller --> base_controller;
93+
polling_controller --> controller_utils;
9694
preferences_controller --> base_controller;
9795
preferences_controller --> controller_utils;
9896
rate_limit_controller --> base_controller;
9997
selected_network_controller --> base_controller;
100-
selected_network_controller --> network_controller;
10198
signature_controller --> approval_controller;
10299
signature_controller --> base_controller;
103100
signature_controller --> controller_utils;
@@ -106,7 +103,6 @@ linkStyle default opacity:0.5
106103
transaction_controller --> approval_controller;
107104
transaction_controller --> base_controller;
108105
transaction_controller --> controller_utils;
109-
transaction_controller --> network_controller;
110106
```
111107

112108
<!-- end dependency graph -->

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": "80.0.0",
3+
"version": "81.0.0",
44
"private": true,
55
"description": "Monorepo for packages shared between MetaMask clients",
66
"repository": {

packages/accounts-controller/CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [2.0.2]
10+
### Changed
11+
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
12+
- Bump dependency on `@metamask/base-controller` to ^3.2.3
13+
- Bump peer dependency on `@metamask/keyring-controller` to ^8.0.2
14+
915
## [2.0.1]
1016
### Changed
1117
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
@@ -21,7 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2127
### Added
2228
- Initial release ([#1637](https://github.com/MetaMask/core/pull/1637))
2329

24-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
30+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
31+
[2.0.2]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
2532
[2.0.1]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
2633
[2.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
2734
[1.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/[email protected]

packages/accounts-controller/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/accounts-controller",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Manages internal accounts",
55
"keywords": [
66
"MetaMask",
@@ -29,7 +29,7 @@
2929
"test:watch": "jest --watch"
3030
},
3131
"dependencies": {
32-
"@metamask/base-controller": "^3.2.2",
32+
"@metamask/base-controller": "^3.2.3",
3333
"@metamask/eth-snap-keyring": "^0.2.2",
3434
"@metamask/keyring-api": "^0.2.5",
3535
"@metamask/snaps-utils": "^1.0.1",
@@ -43,7 +43,7 @@
4343
},
4444
"devDependencies": {
4545
"@metamask/auto-changelog": "^3.1.0",
46-
"@metamask/keyring-controller": "^8.0.1",
46+
"@metamask/keyring-controller": "^8.0.2",
4747
"@metamask/snaps-controllers": "^1.0.1",
4848
"@types/jest": "^27.4.1",
4949
"@types/readable-stream": "^2.3.0",
@@ -54,7 +54,7 @@
5454
"typescript": "~4.8.4"
5555
},
5656
"peerDependencies": {
57-
"@metamask/keyring-controller": "^8.0.1"
57+
"@metamask/keyring-controller": "^8.0.2"
5858
},
5959
"engines": {
6060
"node": ">=16.0.0"

packages/address-book-controller/CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [3.1.4]
10+
### Changed
11+
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
12+
- Bump dependency on `@metamask/base-controller` to ^3.2.3
13+
- Bump dependency on `@metamask/controller-utils` to ^5.0.2
14+
915
## [3.1.3]
1016
### Changed
1117
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
@@ -55,7 +61,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5561

5662
All changes listed after this point were applied to this package following the monorepo conversion.
5763

58-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
64+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
65+
[3.1.4]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
5966
[3.1.3]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
6067
[3.1.2]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
6168
[3.1.1]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/address-book-controller/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/address-book-controller",
3-
"version": "3.1.3",
3+
"version": "3.1.4",
44
"description": "Manages a list of recipient addresses associated with nicknames",
55
"keywords": [
66
"MetaMask",
@@ -29,8 +29,8 @@
2929
"test:watch": "jest --watch"
3030
},
3131
"dependencies": {
32-
"@metamask/base-controller": "^3.2.2",
33-
"@metamask/controller-utils": "^5.0.1",
32+
"@metamask/base-controller": "^3.2.3",
33+
"@metamask/controller-utils": "^5.0.2",
3434
"@metamask/utils": "^8.1.0"
3535
},
3636
"devDependencies": {

packages/announcement-controller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test:watch": "jest --watch"
3030
},
3131
"dependencies": {
32-
"@metamask/base-controller": "^3.2.2"
32+
"@metamask/base-controller": "^3.2.3"
3333
},
3434
"devDependencies": {
3535
"@metamask/auto-changelog": "^3.1.0",

packages/approval-controller/CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [4.0.0]
10+
### Changed
11+
- **BREAKING:** Move `eth-rpc-errors@^4.0.2` dependency to `@metamask/rpc-errors@^6.0.2` ([#1743](https://github.com/MetaMask/core/pull/1743))
12+
- Upon upgrading, you may need to also use `@metamask/rpc-errors@^6.0.2`, which restricts valid data that can be used to build messages
13+
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
14+
- Bump dependency on `@metamask/base-controller` to ^3.2.3
15+
916
## [3.5.2]
1017
### Changed
1118
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
@@ -75,7 +82,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7582

7683
All changes listed after this point were applied to this package following the monorepo conversion.
7784

78-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
85+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
86+
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
7987
[3.5.2]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
8088
[3.5.1]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
8189
[3.5.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

packages/approval-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/approval-controller",
3-
"version": "3.5.2",
3+
"version": "4.0.0",
44
"description": "Manages requests that require user approval",
55
"keywords": [
66
"MetaMask",
@@ -29,7 +29,7 @@
2929
"test:watch": "jest --watch"
3030
},
3131
"dependencies": {
32-
"@metamask/base-controller": "^3.2.2",
32+
"@metamask/base-controller": "^3.2.3",
3333
"@metamask/rpc-errors": "^6.0.0",
3434
"@metamask/utils": "^8.1.0",
3535
"immer": "^9.0.6",

packages/assets-controllers/CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [15.0.0]
10+
### Changed
11+
- **BREAKING**: `NftController` now expects `getNetworkClientById` in constructor options ([#1698](https://github.com/MetaMask/core/pull/1698))
12+
- **BREAKING**: `NftController.addNft` function signature has changed ([#1698](https://github.com/MetaMask/core/pull/1698))
13+
- Previously
14+
```
15+
address: string,
16+
tokenId: string,
17+
nftMetadata?: NftMetadata,
18+
accountParams?: {
19+
userAddress: string;
20+
chainId: Hex;
21+
},
22+
source = Source.Custom,
23+
```
24+
now:
25+
```
26+
tokenAddress: string,
27+
tokenId: string,
28+
{
29+
nftMetadata?: NftMetadata;
30+
chainId?: Hex; // extracts from AccountParams
31+
userAddress?: string // extracted from AccountParams
32+
source?: Source;
33+
networkClientId?: NetworkClientId; // new
34+
},
35+
```
36+
- `NftController.addNftVerifyOwnership`: Now accepts optional 3rd argument `networkClientId` which is used to fetch NFT metadata and determine by which chainId the added NFT should be stored in state. Also accepts optional 4th argument `source` used for metrics to identify the flow in which the NFT was added to the wallet. ([#1698](https://github.com/MetaMask/core/pull/1698))
37+
- `NftController.isNftOwner`: Now accepts optional `networkClientId` which is used to instantiate the provider for the correct chain and call the NFT contract to verify ownership ([#1698](https://github.com/MetaMask/core/pull/1698))
38+
- `NftController.addNft` will use the chainId value derived from `networkClientId` if provided ([#1698](https://github.com/MetaMask/core/pull/1698))
39+
- `NftController.watchNft` options now accepts optional `networkClientId` which is used to fetch NFT metadata and determine by which chainId the added NFT should be stored in state ([#1698](https://github.com/MetaMask/core/pull/1698))
40+
- Bump dependency on `@metamask/utils` to ^8.1.0 ([#1639](https://github.com/MetaMask/core/pull/1639))
41+
- Bump dependency and peer dependency on `@metamask/approval-controller` to ^4.0.0
42+
- Bump dependency on `@metamask/base-controller` to ^3.2.3
43+
- Bump dependency on `@metamask/controller-utils` to ^5.0.2
44+
- Bump dependency and peer dependency on `@metamask/network-controller` to ^14.0.0
45+
46+
### Fixed
47+
- Fix bug in TokensController where batched `addToken` overwrote each other because mutex was acquired after reading state ([#1768](https://github.com/MetaMask/core/pull/1768))
48+
949
## [14.0.0]
1050
### Changed
1151
- Update TypeScript to v4.8.x ([#1718](https://github.com/MetaMask/core/pull/1718))
@@ -280,7 +320,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
280320
### Changed
281321
- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))
282322
283-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
323+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
324+
[15.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
284325
[14.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
285326
[13.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
286327
[12.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]

0 commit comments

Comments
 (0)