Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit 1a4a3b7

Browse files
authored
chore: align external dep ranges with core monorepo (#598)
* chore: align external dep ranges with core monorepo Core's `yarn.config.cjs` enforces consistent version ranges for every external dep across all monorepo packages (`expectConsistentDependenciesAndDevDependencies`). This PR aligns 6 of 7 remaining drift points so the migrated package doesn't fail constraints. - @babel/runtime ^7.24.1 -> ^7.23.9 - @lavamoat/allow-scripts ^3.2.1 -> ^3.0.4 - @types/eslint ^9.6.1 -> ^8.44.7 - @types/lodash ^4.14.194-> ^4.14.191 - @types/node ^18.19.17-> ^16.18.54 - typescript-eslint ^8.39.0 -> ^8.48.0 `nock` is intentionally NOT aligned: downgrading from `^14.0.0-beta.7` to core's `^13.3.1` makes 22 tests fail with HTTP 500s (the mock interceptors aren't matching). Will need to add `nock` to ALLOWED_INCONSISTENT_DEPENDENCIES in core during Phase B, or upgrade core to v14 separately. Lint, build, and 196/196 tests remain green. * chore: drop @types/node — unused Source has no direct Node API usage (no fs/path/crypto/process/Buffer references; tsconfig lib is ["ES2020", "DOM"]). Transitive consumers that need Node types (jest, etc.) install their own copy. Build, lint, and 196/196 tests all pass without it. * chore: drop @types/eslint, @types/jest, @types/lodash — unused Source doesn't import any of these directly. jest 29 ships its own types via @jest/globals; lodash/eslint types come in transitively. tsconfig has `skipLibCheck: true` so missing declaration files for these aren't checked anyway. Build, lint, and 196/196 tests all pass without them. * chore: bump @metamask/profile-sync-controller to ^28.2.0 (core caught up)
1 parent af98784 commit 1a4a3b7

3 files changed

Lines changed: 375 additions & 549 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Bump `bignumber.js` from `^9.0.1` to `^9.1.2` ([#597](https://github.com/MetaMask/smart-transactions-controller/pull/597))
1919
- Bump `fast-json-patch` from `^3.1.0` to `^3.1.1` ([#597](https://github.com/MetaMask/smart-transactions-controller/pull/597))
2020
- Bump `@metamask/controller-utils` from `^12.1.0` to `^12.2.0` ([#590](https://github.com/MetaMask/smart-transactions-controller/pull/590))
21-
- Bump `@metamask/profile-sync-controller` from `^28.1.0` to `^28.1.1` ([#590](https://github.com/MetaMask/smart-transactions-controller/pull/590))
21+
- Bump `@metamask/profile-sync-controller` from `^28.1.0` to `^28.2.0` ([#590](https://github.com/MetaMask/smart-transactions-controller/pull/590), [#598](https://github.com/MetaMask/smart-transactions-controller/pull/598))
2222
- Bump `@metamask/remote-feature-flag-controller` from `^4.2.1` to `^4.2.2` ([#590](https://github.com/MetaMask/smart-transactions-controller/pull/590))
2323
- Bump `@metamask/transaction-controller` from `^65.4.0` to `^68.0.0` ([#591](https://github.com/MetaMask/smart-transactions-controller/pull/591))
2424
- Bump `@metamask/utils` from `^11.0.0` to `^11.11.0` ([#590](https://github.com/MetaMask/smart-transactions-controller/pull/590))

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"test:watch": "jest --watchAll"
4242
},
4343
"dependencies": {
44-
"@babel/runtime": "^7.24.1",
44+
"@babel/runtime": "^7.23.9",
4545
"@ethereumjs/tx": "^5.4.0",
4646
"@ethereumjs/util": "^9.1.0",
4747
"@ethersproject/bytes": "^5.7.0",
@@ -54,7 +54,7 @@
5454
"@metamask/messenger": "^1.2.0",
5555
"@metamask/network-controller": "^32.0.0",
5656
"@metamask/polling-controller": "^16.0.6",
57-
"@metamask/profile-sync-controller": "^28.1.1",
57+
"@metamask/profile-sync-controller": "^28.2.0",
5858
"@metamask/remote-feature-flag-controller": "^4.2.2",
5959
"@metamask/superstruct": "^3.1.0",
6060
"@metamask/transaction-controller": "^68.0.0",
@@ -66,7 +66,7 @@
6666
},
6767
"devDependencies": {
6868
"@arethetypeswrong/cli": "^0.18.2",
69-
"@lavamoat/allow-scripts": "^3.2.1",
69+
"@lavamoat/allow-scripts": "^3.0.4",
7070
"@lavamoat/preinstall-always-fail": "^2.1.0",
7171
"@metamask/auto-changelog": "^6.1.0",
7272
"@metamask/eslint-config": "^15.0.0",
@@ -77,10 +77,6 @@
7777
"@metamask/json-rpc-engine": "^10.5.0",
7878
"@metamask/messenger-cli": "^0.2.0",
7979
"@ts-bridge/cli": "^0.6.4",
80-
"@types/eslint": "^9.6.1",
81-
"@types/jest": "^29.5.14",
82-
"@types/lodash": "^4.14.194",
83-
"@types/node": "^18.19.17",
8480
"eslint": "^9.39.1",
8581
"eslint-config-prettier": "^9.1.0",
8682
"eslint-import-resolver-typescript": "^3.6.3",
@@ -97,7 +93,7 @@
9793
"prettier-plugin-packagejson": "^2.4.3",
9894
"ts-jest": "^29.2.5",
9995
"typescript": "~5.3.3",
100-
"typescript-eslint": "^8.39.0"
96+
"typescript-eslint": "^8.48.0"
10197
},
10298
"peerDependenciesMeta": {
10399
"@metamask/accounts-controller": {

0 commit comments

Comments
 (0)