Skip to content

Commit b65ccdc

Browse files
committed
Merge branch 'main' into fix/handle-snaps-errors
2 parents c5c06ad + b10198c commit b65ccdc

File tree

100 files changed

+7188
-923
lines changed

Some content is hidden

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

100 files changed

+7188
-923
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
/packages/composable-controller @MetaMask/core-platform
6464
/packages/controller-utils @MetaMask/core-platform
6565
/packages/error-reporting-service @MetaMask/core-platform
66+
/packages/messenger @MetaMask/core-platform
6667
/packages/sample-controllers @MetaMask/core-platform
6768
/packages/polling-controller @MetaMask/core-platform
6869
/packages/preferences-controller @MetaMask/core-platform

.github/workflows/changelog-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66

77
jobs:
88
check_changelog:
9-
uses: MetaMask/github-tools/.github/workflows/changelog-check.yml@85fffce169c0fd35028ecde6b38dfb3f932882ec
9+
uses: MetaMask/github-tools/.github/workflows/changelog-check.yml@fc6fe1a3fb591f6afa61f0dbbe7698bd50fab9c7
1010
with:
11-
action-sha: 85fffce169c0fd35028ecde6b38dfb3f932882ec
11+
action-sha: fc6fe1a3fb591f6afa61f0dbbe7698bd50fab9c7
1212
base-branch: ${{ github.event.pull_request.base.ref }}
1313
head-ref: ${{ github.head_ref }}
1414
labels: ${{ toJSON(github.event.pull_request.labels) }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Each package in this repository has its own README where you can find installati
4747
- [`@metamask/keyring-controller`](packages/keyring-controller)
4848
- [`@metamask/logging-controller`](packages/logging-controller)
4949
- [`@metamask/message-manager`](packages/message-manager)
50+
- [`@metamask/messenger`](packages/messenger)
5051
- [`@metamask/multichain-api-middleware`](packages/multichain-api-middleware)
5152
- [`@metamask/multichain-network-controller`](packages/multichain-network-controller)
5253
- [`@metamask/multichain-transactions-controller`](packages/multichain-transactions-controller)
@@ -104,6 +105,7 @@ linkStyle default opacity:0.5
104105
keyring_controller(["@metamask/keyring-controller"]);
105106
logging_controller(["@metamask/logging-controller"]);
106107
message_manager(["@metamask/message-manager"]);
108+
messenger(["@metamask/messenger"]);
107109
multichain_api_middleware(["@metamask/multichain-api-middleware"]);
108110
multichain_network_controller(["@metamask/multichain-network-controller"]);
109111
multichain_transactions_controller(["@metamask/multichain-transactions-controller"]);
@@ -162,7 +164,6 @@ linkStyle default opacity:0.5
162164
bridge_status_controller --> base_controller;
163165
bridge_status_controller --> controller_utils;
164166
bridge_status_controller --> polling_controller;
165-
bridge_status_controller --> user_operation_controller;
166167
bridge_status_controller --> accounts_controller;
167168
bridge_status_controller --> bridge_controller;
168169
bridge_status_controller --> gas_fee_controller;
@@ -243,7 +244,6 @@ linkStyle default opacity:0.5
243244
profile_sync_controller --> base_controller;
244245
profile_sync_controller --> accounts_controller;
245246
profile_sync_controller --> keyring_controller;
246-
profile_sync_controller --> network_controller;
247247
rate_limit_controller --> base_controller;
248248
remote_feature_flag_controller --> base_controller;
249249
remote_feature_flag_controller --> controller_utils;

docs/contributing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ problem, we have created a CLI that automates most of the job for us, creatively
380380
- By default, `create-package` gives your package an MIT license.
381381
- If your desired license is _not_ MIT, then you must update your `LICENSE` file and the
382382
`license` field of `package.json`.
383-
3. Add your dependencies.
383+
3. Update `.github/CODEOWNERS` and `teams.json` to assign a team as the owner of the new package.
384+
4. Add your dependencies.
384385
- Do this as normal using `yarn`.
385386
- Remember, if you are adding other monorepo packages as dependents, don't forget to add them
386387
to the `references` array in your package's `tsconfig.json` and `tsconfig.build.json`.

eslint-warning-thresholds.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,12 @@
127127
"packages/assets-controllers/src/token-prices-service/codefi-v2.ts": {
128128
"jsdoc/tag-lines": 2
129129
},
130-
"packages/base-controller/src/BaseControllerV2.test.ts": {
130+
"packages/base-controller/src/BaseController.test.ts": {
131131
"import-x/namespace": 16
132132
},
133-
"packages/base-controller/src/BaseControllerV2.ts": {
133+
"packages/base-controller/src/BaseController.ts": {
134134
"jsdoc/check-tag-names": 2
135135
},
136-
"packages/base-controller/src/Messenger.test.ts": {
137-
"import-x/namespace": 33
138-
},
139-
"packages/base-controller/src/RestrictedMessenger.test.ts": {
140-
"import-x/namespace": 31
141-
},
142136
"packages/build-utils/src/transforms/remove-fenced-code.test.ts": {
143137
"import-x/order": 1
144138
},

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/core-monorepo",
3-
"version": "463.0.0",
3+
"version": "469.0.0",
44
"private": true,
55
"description": "Monorepo for packages shared between MetaMask clients",
66
"repository": {
@@ -21,11 +21,12 @@
2121
"changelog:update": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run changelog:update",
2222
"changelog:validate": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run changelog:validate",
2323
"create-package": "ts-node scripts/create-package",
24-
"lint": "yarn lint:eslint && echo && yarn lint:misc --check && yarn constraints && yarn lint:dependencies && yarn lint:teams",
24+
"generate-method-action-types": "ts-node scripts/generate-method-action-types.ts",
25+
"lint": "yarn lint:eslint && echo && yarn lint:misc --check && yarn constraints && yarn lint:dependencies && yarn lint:teams && yarn generate-method-action-types --check",
2526
"lint:dependencies": "depcheck && yarn dedupe --check",
2627
"lint:dependencies:fix": "depcheck && yarn dedupe",
2728
"lint:eslint": "yarn build:only-clean && yarn ts-node ./scripts/run-eslint.ts --cache",
28-
"lint:fix": "yarn lint:eslint --fix && echo && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies:fix",
29+
"lint:fix": "yarn lint:eslint --fix && echo && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies:fix && yarn generate-method-action-types --fix",
2930
"lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore",
3031
"lint:teams": "ts-node scripts/lint-teams-json.ts",
3132
"prepack": "./scripts/prepack.sh",

packages/account-tree-controller/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- **BREAKING:** Add `@metamask/account-api` peer dependency ([#6115](https://github.com/MetaMask/core/pull/6115)), ([#6146](https://github.com/MetaMask/core/pull/6146))
13+
- **BREAKING:** Types `AccountWallet` and `AccountGroup` have been respectively renamed to `AccountWalletObject` and `AccountGroupObject` ([#6115](https://github.com/MetaMask/core/pull/6115))
14+
- Those names are now used by the `@metamask/account-api` package to define higher-level interfaces.
1215
- **BREAKING:** Bump peer dependency `@metamask/snaps-controllers` from `^12.0.0` to `^14.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035))
1316
- Bump `@metamask/snaps-sdk` from `^7.1.0` to `^9.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035))
1417
- Bump `@metamask/snaps-utils` from `^9.4.0` to `^11.0.0` ([#6035](https://github.com/MetaMask/core/pull/6035))
1518
- Properly export `AccountWalletCategory` constant and conversion functions ([#6062](https://github.com/MetaMask/core/pull/6062))
1619

20+
### Removed
21+
22+
- **BREAKING:** No longer export `AccountWalletCategory`, `toAccountWalletId`, `toAccountGroupId` and `toDefaultAccountGroupId` ([#6115](https://github.com/MetaMask/core/pull/6115))
23+
- You should now import them from the `@metamask/account-api` package (peer dependency).
24+
1725
## [0.4.0]
1826

1927
### Changed

packages/account-tree-controller/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@
5353
"lodash": "^4.17.21"
5454
},
5555
"devDependencies": {
56+
"@metamask/account-api": "^0.2.0",
5657
"@metamask/accounts-controller": "^31.0.0",
5758
"@metamask/auto-changelog": "^3.4.4",
58-
"@metamask/keyring-api": "^18.0.0",
59+
"@metamask/keyring-api": "^19.0.0",
5960
"@metamask/keyring-controller": "^22.1.0",
6061
"@metamask/providers": "^22.1.0",
6162
"@metamask/snaps-controllers": "^14.0.1",
@@ -69,6 +70,7 @@
6970
"webextension-polyfill": "^0.12.0"
7071
},
7172
"peerDependencies": {
73+
"@metamask/account-api": "^0.2.0",
7274
"@metamask/accounts-controller": "^31.0.0",
7375
"@metamask/keyring-controller": "^22.0.0",
7476
"@metamask/providers": "^22.0.0",

0 commit comments

Comments
 (0)