generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Recategorize controllers as peer dependencies
The `@metamask/network-controller` and `@metamask/transaction-controller` dependencies have been moved from `dependencies` to `peerDependencies` (and `devDependencies`). This was done because we're not directly importing and using those controllers directly from imports, they're instead passed in as constructor parameters (indirectly), so it's critical that the versions we use here match the versions used on the client exactly. The peer dependency requirements of those two packages have been silenced because they aren't actually instantiated here, just used for type purposes (so we don't need their `peerDependencies` present).
- Loading branch information
Showing
2 changed files
with
67 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,7 @@ | |
"@metamask/controller-utils": "^11.0.0", | ||
"@metamask/eth-json-rpc-provider": "^4.1.6", | ||
"@metamask/eth-query": "^4.0.0", | ||
"@metamask/network-controller": "^22.0.0", | ||
"@metamask/polling-controller": "^12.0.0", | ||
"@metamask/transaction-controller": "^38.0.0", | ||
"bignumber.js": "^9.0.1", | ||
"events": "^3.3.0", | ||
"fast-json-patch": "^3.1.0", | ||
|
@@ -51,6 +49,8 @@ | |
"@metamask/eslint-config-typescript": "^12.1.0", | ||
"@metamask/gas-fee-controller": "^22.0.0", | ||
"@metamask/json-rpc-engine": "^10.0.1", | ||
"@metamask/network-controller": "^22.0.0", | ||
"@metamask/transaction-controller": "^38.0.0", | ||
"@types/jest": "^26.0.24", | ||
"@types/lodash": "^4.14.194", | ||
"@types/node": "^18.19.17", | ||
|
@@ -74,6 +74,18 @@ | |
"ts-jest": "^29.1.4", | ||
"typescript": "~4.8.4" | ||
}, | ||
"peerDependencies": { | ||
"@metamask/network-controller": "^22.0.0", | ||
"@metamask/transaction-controller": "^38.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@metamask/accounts-controller": { | ||
"optional": true | ||
}, | ||
"@metamask/approval-controller": { | ||
"optional": true | ||
} | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^18.18 || >=20" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters