Skip to content

Commit 71adeb7

Browse files
authored
Bump transaction-controller peer dep to v58 (#520)
This package was previously on a rather old version of `transaction-controller` (v42). This commit ensures that clients can upgrade to v58 without peer dependency warnings.
1 parent affbb96 commit 71adeb7

3 files changed

Lines changed: 368 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3636
### Changed
3737

3838
- **BREAKING:** Bump peer dependency on `@metamask/network-controller` to `^24.0.0` ([#519](https://github.com/MetaMask/smart-transactions-controller/pull/519))
39+
- **BREAKING:** Bump dependency and peer dependency on `@metamask/transaction-controller` to `^58.0.0` ([#519](https://github.com/MetaMask/smart-transactions-controller/pull/519))
40+
- The `confirmExternalTransaction` constructor option now expects to match `TransactionController` from this version
41+
- The `getNonceLock` constructor option now expects to match `TransactionController` from this version
42+
- The `getTransactions` constructor option now returns an object that matches `TransactionMeta` from this version
43+
- The `updateTransaction` constructor option now expects an object that matches `TransactionMeta` from this version
44+
- The `transactionMeta` option of the `submitSignedTransactions` method now expects an object that matches `TransactionMeta` from this version
45+
- The `txParams` option of the `submitSignedTransactions` method now expects an object that matches `TransactionParams` from this version
3946

4047
## [16.5.0]
4148

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@metamask/gas-fee-controller": "^22.0.0",
6767
"@metamask/json-rpc-engine": "^10.0.1",
6868
"@metamask/network-controller": "^24.0.0",
69-
"@metamask/transaction-controller": "^42.0.0",
69+
"@metamask/transaction-controller": "^58.1.0",
7070
"@ts-bridge/cli": "^0.6.3",
7171
"@types/jest": "^26.0.24",
7272
"@types/lodash": "^4.14.194",
@@ -93,7 +93,7 @@
9393
},
9494
"peerDependencies": {
9595
"@metamask/network-controller": "^24.0.0",
96-
"@metamask/transaction-controller": "^42.0.0"
96+
"@metamask/transaction-controller": "^58.0.0"
9797
},
9898
"peerDependenciesMeta": {
9999
"@metamask/accounts-controller": {
@@ -116,9 +116,7 @@
116116
"@lavamoat/preinstall-always-fail": false,
117117
"@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>keccak": false,
118118
"@metamask/controller-utils>ethereumjs-util>ethereum-cryptography>secp256k1": false,
119-
"@metamask/controller-utils>babel-runtime>core-js": false,
120-
"@metamask/transaction-controller>@metamask/accounts-controller>@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography>keccak": false,
121-
"@metamask/transaction-controller>@metamask/accounts-controller>@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography>secp256k1": false
119+
"@metamask/controller-utils>babel-runtime>core-js": false
122120
}
123121
}
124122
}

0 commit comments

Comments
 (0)