Skip to content

Commit 9bcc4e9

Browse files
authored
Clean up dependencies (#369)
- Move `@metamask/gas-fee-controller` and `@metamask/network-controller` from `peerDependencies` to `dependencies`, as neither of them are being used for communication - Remove unused dev dependencies `@metamask/composable-controller`, `@types/readable-stream`, `jest-environment-jsdoc`, and `ts-node` as they were not being used - Replace `rimraf` with a shell command
1 parent 9a20c72 commit 9bcc4e9

File tree

3 files changed

+12
-619
lines changed

3 files changed

+12
-619
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- **BREAKING:** Update type of `fetchEstimatedMultiLayerL1Fee` in `SwapsControllerOptions` by replacing `chainId` in `options` with `networkClientId` ([#347](https://github.com/MetaMask/swaps-controller/pull/347))
2222
- The chain cache in state will now automatically be updated whenever the network has changed ([#347](https://github.com/MetaMask/swaps-controller/pull/347))
2323
- This aims to replace behavior provided by `setProvider` and `setChainId`.
24+
- Move `@metamask/gas-fee-controller` from `peerDependencies` to `dependencies` and upgrade to `^22.0.2` ([#369](https://github.com/MetaMask/swaps-controller/pull/369))
25+
- Move `@metamask/network-controller` from `peerDependencies` to `dependencies` and upgrade to `^22.1.0` ([#369](https://github.com/MetaMask/swaps-controller/pull/369))
2426

2527
### Removed
2628

package.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,23 @@
2727
"lint": "yarn lint:eslint && yarn lint:misc --check",
2828
"lint:changelog": "auto-changelog validate --prettier",
2929
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
30-
"build:clean": "rimraf dist && yarn build",
30+
"build:clean": "rm -rf dist && yarn build",
3131
"build": "tsc --project .",
3232
"prepack": "./scripts/prepack.sh"
3333
},
34-
"peerDependencies": {
35-
"@metamask/composable-controller": "^9.0.1",
36-
"@metamask/gas-fee-controller": "^22.0.0",
37-
"@metamask/network-controller": "^22.0.0"
38-
},
3934
"devDependencies": {
4035
"@babel/runtime": "^7.0.0",
4136
"@ethersproject/abi": "^5.7.0",
4237
"@lavamoat/allow-scripts": "^3.0.0",
4338
"@metamask/auto-changelog": "^3.4.4",
44-
"@metamask/composable-controller": "^9.0.1",
4539
"@metamask/eslint-config": "^12.2.0",
4640
"@metamask/eslint-config-jest": "^12.1.0",
4741
"@metamask/eslint-config-nodejs": "^12.1.0",
4842
"@metamask/eslint-config-typescript": "^12.1.0",
4943
"@metamask/eth-json-rpc-provider": "^4.1.6",
50-
"@metamask/gas-fee-controller": "^22.0.2",
5144
"@metamask/json-rpc-engine": "^10.0.1",
52-
"@metamask/network-controller": "^22.1.0",
5345
"@types/jest": "^29.5.14",
5446
"@types/node": "^20.10.4",
55-
"@types/readable-stream": "^4.0.18",
5647
"@typescript-eslint/eslint-plugin": "^5.42.1",
5748
"@typescript-eslint/parser": "^5.42.1",
5849
"@yarnpkg/types": "^4.0.0",
@@ -67,11 +58,8 @@
6758
"eslint-plugin-prettier": "^4.2.1",
6859
"eslint-plugin-promise": "^6.1.1",
6960
"jest": "^29.7.0",
70-
"jest-environment-jsdom": "^29.7.0",
7161
"prettier": "^2.2.1",
72-
"rimraf": "^3.0.2",
7362
"ts-jest": "^29.1.1",
74-
"ts-node": "^10.9.1",
7563
"typescript": "^5.1.0"
7664
},
7765
"dependencies": {
@@ -80,6 +68,8 @@
8068
"@metamask/base-controller": "^7.0.1",
8169
"@metamask/controller-utils": "^11.3.0",
8270
"@metamask/eth-query": "^4.0.0",
71+
"@metamask/gas-fee-controller": "^22.0.2",
72+
"@metamask/network-controller": "^22.1.0",
8373
"@metamask/utils": "^10.0.0",
8474
"async-mutex": "^0.5.0",
8575
"bignumber.js": "^9.0.1",

0 commit comments

Comments
 (0)