Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 91.0.0 #2044

Merged
merged 14 commits into from
Nov 16, 2023
Merged
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/core-monorepo",
"version": "90.0.0",
"version": "91.0.0",
"private": true,
"description": "Monorepo for packages shared between MetaMask clients",
"repository": {
19 changes: 18 additions & 1 deletion packages/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,8 +5,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [19.0.0]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
- Add optional `networkClientId` and `userAddress` args to remaining `NftController` public methods ([#2006](https://github.com/MetaMask/core/pull/2006))
- `watchNft`, `removeNft`, `removeAndIgnoreNft`, `removeNftContract`, `updateNftFavoriteStatus`, and `checkAndUpdateAllNftsOwnershipStatus` methods on `NftController` all now accept an optional options object argument containing `networkClientId` and `userAddress` to identify where in state to mutate.
- **BREAKING**: `addNft` no longer accepts a `chainId` property in its options argument since this value can be retrieved by the `networkClientId` property and is therefore redundant.
- **BREAKING**: The third and fourth arguments on NftController's `addNftVerifyOwnership` method, have been replaced with an options object containing optional properties `networkClientId`, `userAddress` and `source`. This method signature is more aligned with the options pattern for passing `networkClientId` and `userAddress` on this controller and elsewhere.
- **BREAKING**: `checkAndUpdateSingleNftOwnershipStatus` on NftController no longer accepts a `chainId` in its options argument. This is replaced with an optional `networkClientId` property which can be used to fetch chainId.
***BREAKING**: The fourth argument of the `isNftOwner` method on `NftController` is now an options object with an optional `networkClientId` property. This method signature is more aligned with the options pattern for passing `networkClientId` on this controller and elsewhere.
- **BREAKING**: `validateWatchNft` method on `NftController` is now private.
- **BREAKING**: `detectNfts` on `NftDetectionController` now accepts a single object argument with optional properties `networkClientId` and `userAddress`, rather than taking these as two sequential arguments.
- Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
- Bump dependency on `@metamask/polling-controller` to ^1.0.2
- Bump `@metamask/utils` from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))

### Fixed
- Add name and symbol to the payload returned by the `ERC1155Standard` class `getDetails` method for `ERC1155` contracts ([#1727](https://github.com/MetaMask/core/pull/1727))

## [18.0.0]
### Changed
@@ -367,7 +383,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@18.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@19.0.0...HEAD
[19.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@18.0.0...@metamask/assets-controllers@19.0.0
[18.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@17.0.0...@metamask/assets-controllers@18.0.0
[17.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@16.0.0...@metamask/assets-controllers@17.0.0
[16.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@15.0.0...@metamask/assets-controllers@16.0.0
8 changes: 4 additions & 4 deletions packages/assets-controllers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/assets-controllers",
"version": "18.0.0",
"version": "19.0.0",
"description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
"keywords": [
"MetaMask",
@@ -41,8 +41,8 @@
"@metamask/controller-utils": "^5.0.2",
"@metamask/eth-query": "^4.0.0",
"@metamask/metamask-eth-abis": "3.0.0",
"@metamask/network-controller": "^15.2.0",
"@metamask/polling-controller": "^1.0.1",
"@metamask/network-controller": "^16.0.0",
"@metamask/polling-controller": "^1.0.2",
"@metamask/preferences-controller": "^4.4.3",
"@metamask/rpc-errors": "^6.1.0",
"@metamask/utils": "^8.2.0",
@@ -71,7 +71,7 @@
},
"peerDependencies": {
"@metamask/approval-controller": "^4.1.0",
"@metamask/network-controller": "^15.2.0",
"@metamask/network-controller": "^16.0.0",
"@metamask/preferences-controller": "^4.4.3"
},
"engines": {
8 changes: 7 additions & 1 deletion packages/ens-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [6.0.1]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
- Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))

## [6.0.0]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^15.0.0
@@ -81,7 +86,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

All changes listed after this point were applied to this package following the monorepo conversion.

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/ens-controller@6.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/ens-controller@6.0.1...HEAD
[6.0.1]: https://github.com/MetaMask/core/compare/@metamask/ens-controller@6.0.0...@metamask/ens-controller@6.0.1
[6.0.0]: https://github.com/MetaMask/core/compare/@metamask/ens-controller@5.0.2...@metamask/ens-controller@6.0.0
[5.0.2]: https://github.com/MetaMask/core/compare/@metamask/ens-controller@5.0.1...@metamask/ens-controller@5.0.2
[5.0.1]: https://github.com/MetaMask/core/compare/@metamask/ens-controller@5.0.0...@metamask/ens-controller@5.0.1
6 changes: 3 additions & 3 deletions packages/ens-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/ens-controller",
"version": "6.0.0",
"version": "6.0.1",
"description": "Maps ENS names to their resolved addresses by chain id",
"keywords": [
"MetaMask",
@@ -33,7 +33,7 @@
"@ethersproject/providers": "^5.7.0",
"@metamask/base-controller": "^3.2.3",
"@metamask/controller-utils": "^5.0.2",
"@metamask/network-controller": "^15.2.0",
"@metamask/network-controller": "^16.0.0",
"@metamask/utils": "^8.2.0",
"ethereum-ens-network-map": "^1.0.2",
"punycode": "^2.1.1"
@@ -49,7 +49,7 @@
"typescript": "~4.8.4"
},
"peerDependencies": {
"@metamask/network-controller": "^15.2.0"
"@metamask/network-controller": "^16.0.0"
},
"engines": {
"node": ">=16.0.0"
8 changes: 7 additions & 1 deletion packages/gas-fee-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,8 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [10.0.1]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
- Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
- Bump dependency on `@metamask/polling-controller` to ^1.0.2
- Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))

## [10.0.0]
### Added
@@ -120,7 +125,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

All changes listed after this point were applied to this package following the monorepo conversion.

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.1...HEAD
[10.0.1]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@10.0.0...@metamask/gas-fee-controller@10.0.1
[10.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@9.0.0...@metamask/gas-fee-controller@10.0.0
[9.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@8.0.0...@metamask/gas-fee-controller@9.0.0
[8.0.0]: https://github.com/MetaMask/core/compare/@metamask/gas-fee-controller@7.0.1...@metamask/gas-fee-controller@8.0.0
8 changes: 4 additions & 4 deletions packages/gas-fee-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/gas-fee-controller",
"version": "10.0.0",
"version": "10.0.1",
"description": "Periodically calculates gas fee estimates based on various gas limits as well as other data displayed on transaction confirm screens",
"keywords": [
"MetaMask",
@@ -33,8 +33,8 @@
"@metamask/base-controller": "^3.2.3",
"@metamask/controller-utils": "^5.0.2",
"@metamask/eth-query": "^4.0.0",
"@metamask/network-controller": "^15.2.0",
"@metamask/polling-controller": "^1.0.1",
"@metamask/network-controller": "^16.0.0",
"@metamask/polling-controller": "^1.0.2",
"@metamask/utils": "^8.2.0",
"@types/uuid": "^8.3.0",
"ethereumjs-util": "^7.0.10",
@@ -57,7 +57,7 @@
"typescript": "~4.8.4"
},
"peerDependencies": {
"@metamask/network-controller": "^15.2.0"
"@metamask/network-controller": "^16.0.0"
},
"engines": {
"node": ">=16.0.0"
8 changes: 6 additions & 2 deletions packages/network-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,8 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [16.0.0]
### Changed
- Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
- **BREAKING:** Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
- This is breaking because it changes the type of the EthQuery instance this controller creates internally and exports under the `getEthQuery` action. Please consult the [changelog for `@metamask/eth-query` 4.0.0](https://github.com/MetaMask/eth-query/blob/main/CHANGELOG.md#400) for more.

## [15.2.0]
### Changed
@@ -306,7 +309,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

All changes listed after this point were applied to this package following the monorepo conversion.

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@15.2.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/network-controller@16.0.0...HEAD
[16.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@15.2.0...@metamask/network-controller@16.0.0
[15.2.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@15.1.0...@metamask/network-controller@15.2.0
[15.1.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@15.0.0...@metamask/network-controller@15.1.0
[15.0.0]: https://github.com/MetaMask/core/compare/@metamask/network-controller@14.0.0...@metamask/network-controller@15.0.0
2 changes: 1 addition & 1 deletion packages/network-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/network-controller",
"version": "15.2.0",
"version": "16.0.0",
"description": "Provides an interface to the currently selected network via a MetaMask-compatible provider object",
"keywords": [
"MetaMask",
8 changes: 7 additions & 1 deletion packages/polling-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.2]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
- Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))

## [1.0.1]
### Fixed
- Export `PollingControllerOnly` ([#1921](https://github.com/MetaMask/core/pull/1921))
@@ -34,7 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial release

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@1.0.1...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@1.0.2...HEAD
[1.0.2]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@1.0.1...@metamask/polling-controller@1.0.2
[1.0.1]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@1.0.0...@metamask/polling-controller@1.0.1
[1.0.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@0.2.0...@metamask/polling-controller@1.0.0
[0.2.0]: https://github.com/MetaMask/core/compare/@metamask/polling-controller@0.1.0...@metamask/polling-controller@0.2.0
6 changes: 3 additions & 3 deletions packages/polling-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/polling-controller",
"version": "1.0.1",
"version": "1.0.2",
"description": "Polling Controller is the base for controllers that polling by networkClientId",
"keywords": [
"MetaMask",
@@ -32,7 +32,7 @@
"dependencies": {
"@metamask/base-controller": "^3.2.3",
"@metamask/controller-utils": "^5.0.2",
"@metamask/network-controller": "^15.2.0",
"@metamask/network-controller": "^16.0.0",
"@metamask/utils": "^8.2.0",
"@types/uuid": "^8.3.0",
"fast-json-stable-stringify": "^2.1.0",
@@ -50,7 +50,7 @@
"typescript": "~4.8.4"
},
"peerDependencies": {
"@metamask/network-controller": "^15.2.0"
"@metamask/network-controller": "^16.0.0"
},
"engines": {
"node": ">=16.0.0"
8 changes: 7 additions & 1 deletion packages/queued-request-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.4]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
- Bump dependency and peer dependency on `@metamask/selected-network-controller` to ^3.1.2

## [0.1.3]
### Changed
- Bump dependency on @metamask/json-rpc-engine to ^7.2.0 ([#1895](https://github.com/MetaMask/core/pull/1895))
@@ -27,7 +32,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial release

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.1.3...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.1.4...HEAD
[0.1.4]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.1.3...@metamask/queued-request-controller@0.1.4
[0.1.3]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.1.2...@metamask/queued-request-controller@0.1.3
[0.1.2]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.1.1...@metamask/queued-request-controller@0.1.2
[0.1.1]: https://github.com/MetaMask/core/compare/@metamask/queued-request-controller@0.1.0...@metamask/queued-request-controller@0.1.1
10 changes: 5 additions & 5 deletions packages/queued-request-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/queued-request-controller",
"version": "0.1.3",
"version": "0.1.4",
"description": "Includes a controller and middleware that implements a request queue",
"keywords": [
"MetaMask",
@@ -33,9 +33,9 @@
"@metamask/base-controller": "^3.2.3",
"@metamask/controller-utils": "^5.0.2",
"@metamask/json-rpc-engine": "^7.3.0",
"@metamask/network-controller": "^15.2.0",
"@metamask/network-controller": "^16.0.0",
"@metamask/rpc-errors": "^6.1.0",
"@metamask/selected-network-controller": "^3.1.1",
"@metamask/selected-network-controller": "^3.1.2",
"@metamask/swappable-obj-proxy": "^2.1.0",
"@metamask/utils": "^8.2.0"
},
@@ -55,8 +55,8 @@
"typescript": "~4.8.4"
},
"peerDependencies": {
"@metamask/network-controller": "^15.2.0",
"@metamask/selected-network-controller": "^3.1.1"
"@metamask/network-controller": "^16.0.0",
"@metamask/selected-network-controller": "^3.1.2"
},
"engines": {
"node": ">=16.0.0"
7 changes: 6 additions & 1 deletion packages/selected-network-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.1.2]
### Changed
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0

## [3.1.1]
### Changed
- Bump `@metamask/json-rpc-engine` from `^7.1.0` to `^7.2.0` ([#1895](https://github.com/MetaMask/core/pull/1895))
@@ -40,7 +44,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial Release ([#1643](https://github.com/MetaMask/core/pull/1643))

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@3.1.1...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@3.1.2...HEAD
[3.1.2]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@3.1.1...@metamask/selected-network-controller@3.1.2
[3.1.1]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@3.1.0...@metamask/selected-network-controller@3.1.1
[3.1.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@3.0.0...@metamask/selected-network-controller@3.1.0
[3.0.0]: https://github.com/MetaMask/core/compare/@metamask/selected-network-controller@2.0.1...@metamask/selected-network-controller@3.0.0
6 changes: 3 additions & 3 deletions packages/selected-network-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/selected-network-controller",
"version": "3.1.1",
"version": "3.1.2",
"description": "Provides an interface to the currently selected networkClientId for a given domain",
"keywords": [
"MetaMask",
@@ -32,7 +32,7 @@
"dependencies": {
"@metamask/base-controller": "^3.2.3",
"@metamask/json-rpc-engine": "^7.3.0",
"@metamask/network-controller": "^15.2.0",
"@metamask/network-controller": "^16.0.0",
"@metamask/swappable-obj-proxy": "^2.1.0"
},
"devDependencies": {
@@ -50,7 +50,7 @@
"typescript": "~4.8.4"
},
"peerDependencies": {
"@metamask/network-controller": "^15.2.0"
"@metamask/network-controller": "^16.0.0"
},
"engines": {
"node": ">=16.0.0"
50 changes: 49 additions & 1 deletion packages/transaction-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,8 +5,55 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [17.0.0]
### Added
- **BREAKING:** Add swaps logic into `TransactionController` ([#1877](https://github.com/MetaMask/core/pull/1877))
- Swap transaction updates can be prevented by setting `disableSwaps` as `true`. If not set it will default to `false`.
- This value MUST be set to true in mobile, since mobile doesn't use any swap logic.
- If `disableSwaps` is `false` or not set, then the `createSwapsTransaction` callback MUST be defined.
- Add hooks to support mmi logic ([#1787](https://github.com/MetaMask/core/pull/1787))
- Add the option in the construction `hooks` giving the possibility to pass callback functions additional logic to execute.
- Add the optional callback in hooks `getAdditionalSignArguments` returns additional arguments required to sign a transaction.
- Add the optional callback in hooks `beforeApproveOnInit` additional logic to execute before starting an approval flow for a transaction during initialization. Return false to skip the transaction.
- Add the optional callback in hooks `afterSign` additional logic to execute after signing a transaction. Return false to not change the status to signed.
- Add the optional callback in hooks `beforePublish` additional logic to execute before publishing a transaction. Return false to prevent the broadcast of the transaction.
- Add `onBootCleanup` functionality to constructor and `onNetworkChange` ([#1916](https://github.com/MetaMask/core/pull/1916))
- Initialises approvals of `TransactionStatus.unapproved` transactions on active network
- Refreshes the gas values for `TransactionStatus.unapproved` transactions on active network
- Submits the `TransactionStatus.approved` transactions on active network
- Support advanced gas fees in `TransactionController` ([#1966](https://github.com/MetaMask/core/pull/1966))
- `getSavedGasFees` callback added as an optional parameter in constructor.
- Setting `getSavedGasFees` callback will make saved gas fees (`advancedGasFees` in the `PreferencesController` state) be taken into account when updating gas fees.
- Add updateCustodialTransaction to update the custodial transactions associated with a specific transaction ID. ([#2018](https://github.com/MetaMask/core/pull/2018))
- Add `accessList` to txParam types ([#2016](https://github.com/MetaMask/core/pull/2016))
- Adds `estimateGasBuffered` public method ([#2021](https://github.com/MetaMask/core/pull/2021))
- Add method for adding params to transaction meta ([#1985](https://github.com/MetaMask/core/pull/1985))
- Add gas values validation to transaction params ([#1978](https://github.com/MetaMask/core/pull/1978))
- Add `approveTransactionsWithSameNonce` public method to core transaction controller ([#1961](https://github.com/MetaMask/core/pull/1961))
- Add `clearUnapprovedTxs` public method to `TransactionController` ([#1979](https://github.com/MetaMask/core/pull/1979))
- Add `updatePreviousGasParams` public method to `TransactionController` ([#1943](https://github.com/MetaMask/core/pull/1943))
- Add `TransactionEvents` to be emitted from `TransactionController` ([#1894](https://github.com/MetaMask/core/pull/1894))
- Populate the `firstRetryBlockNumber`, `retryCount`, and `warning` properties in the transaction metadata. ([#1896](https://github.com/MetaMask/core/pull/1896))

### Changed
- **BREAKING:** Pending transactions are now automatically resubmitted. ([#1896](https://github.com/MetaMask/core/pull/1896))
- This can be disabled by setting the new `pendingTransactions.isResubmitEnabled` constructor option to `false`.
- **BREAKING:** Bump dependency and peer dependency on `@metamask/network-controller` to ^16.0.0
- Persist specific error properties in core transaction metadata ([#1915](https://github.com/MetaMask/core/pull/1915))
- create `TxError` type with specific properties to support both clients.
- Updated `failTransaction` to use the new type.
- Align core transaction error messages with extension ([#1980](https://github.com/MetaMask/core/pull/1980))
- `processApproval` when the user rejects the request: MetaMask Tx Signature: User denied transaction signature.`
- `validateParamRecipient` to use `@metamask/rpc-errors`: `Invalid "to" address.`
- `validateParamFrom` to use `@metamask/rpc-errors`: `Invalid "from" address.`
- `validateIfTransactionUnapproved`: ``TransactionsController: Can only call ${fnName} on an unapproved transaction.`
- Change `initApprovals` method based on the extension ([#1867](https://github.com/MetaMask/core/pull/1867))
- Catch of the `initApprovals` method to skip logging when the error is `userRejectedRequest`.
- `stopTransaction` now creates a cancel transaction with same nonce instead of changing type to cancel ([#1998](https://github.com/MetaMask/core/pull/1998))
- Bump dependency `@metamask/eth-query` from ^3.0.1 to ^4.0.0 ([#2028](https://github.com/MetaMask/core/pull/2028))
- Bump dependency and peer dependency on `@metamask/gas-fee-controller` to ^10.0.1
- Bump @metamask/utils from 8.1.0 to 8.2.0 ([#1957](https://github.com/MetaMask/core/pull/1957))

## [16.0.0]
### Changed
@@ -250,7 +297,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

All changes listed after this point were applied to this package following the monorepo conversion.

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@16.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@17.0.0...HEAD
[17.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@16.0.0...@metamask/transaction-controller@17.0.0
[16.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@15.0.0...@metamask/transaction-controller@16.0.0
[15.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@14.0.0...@metamask/transaction-controller@15.0.0
[14.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@13.0.0...@metamask/transaction-controller@14.0.0
10 changes: 5 additions & 5 deletions packages/transaction-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/transaction-controller",
"version": "16.0.0",
"version": "17.0.0",
"description": "Stores transactions alongside their periodically updated statuses and manages interactions such as approval and cancellation",
"keywords": [
"MetaMask",
@@ -37,9 +37,9 @@
"@metamask/base-controller": "^3.2.3",
"@metamask/controller-utils": "^5.0.2",
"@metamask/eth-query": "^4.0.0",
"@metamask/gas-fee-controller": "^10.0.0",
"@metamask/gas-fee-controller": "^10.0.1",
"@metamask/metamask-eth-abis": "^3.0.0",
"@metamask/network-controller": "^15.2.0",
"@metamask/network-controller": "^16.0.0",
"@metamask/rpc-errors": "^6.1.0",
"@metamask/utils": "^8.2.0",
"async-mutex": "^0.2.6",
@@ -66,8 +66,8 @@
},
"peerDependencies": {
"@metamask/approval-controller": "^4.1.0",
"@metamask/gas-fee-controller": "^10.0.0",
"@metamask/network-controller": "^15.2.0",
"@metamask/gas-fee-controller": "^10.0.1",
"@metamask/network-controller": "^16.0.0",
"babel-runtime": "^6.26.0"
},
"engines": {
48 changes: 24 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1476,8 +1476,8 @@ __metadata:
"@metamask/controller-utils": ^5.0.2
"@metamask/eth-query": ^4.0.0
"@metamask/metamask-eth-abis": 3.0.0
"@metamask/network-controller": ^15.2.0
"@metamask/polling-controller": ^1.0.1
"@metamask/network-controller": ^16.0.0
"@metamask/polling-controller": ^1.0.2
"@metamask/preferences-controller": ^4.4.3
"@metamask/rpc-errors": ^6.1.0
"@metamask/utils": ^8.2.0
@@ -1502,7 +1502,7 @@ __metadata:
uuid: ^8.3.2
peerDependencies:
"@metamask/approval-controller": ^4.1.0
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
"@metamask/preferences-controller": ^4.4.3
languageName: unknown
linkType: soft
@@ -1665,7 +1665,7 @@ __metadata:
"@metamask/auto-changelog": ^3.4.3
"@metamask/base-controller": ^3.2.3
"@metamask/controller-utils": ^5.0.2
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
"@metamask/utils": ^8.2.0
"@types/jest": ^27.4.1
deepmerge: ^4.2.2
@@ -1677,7 +1677,7 @@ __metadata:
typedoc-plugin-missing-exports: ^2.0.0
typescript: ~4.8.4
peerDependencies:
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
languageName: unknown
linkType: soft

@@ -1862,16 +1862,16 @@ __metadata:
languageName: node
linkType: hard

"@metamask/gas-fee-controller@^10.0.0, @metamask/gas-fee-controller@workspace:packages/gas-fee-controller":
"@metamask/gas-fee-controller@^10.0.1, @metamask/gas-fee-controller@workspace:packages/gas-fee-controller":
version: 0.0.0-use.local
resolution: "@metamask/gas-fee-controller@workspace:packages/gas-fee-controller"
dependencies:
"@metamask/auto-changelog": ^3.4.3
"@metamask/base-controller": ^3.2.3
"@metamask/controller-utils": ^5.0.2
"@metamask/eth-query": ^4.0.0
"@metamask/network-controller": ^15.2.0
"@metamask/polling-controller": ^1.0.1
"@metamask/network-controller": ^16.0.0
"@metamask/polling-controller": ^1.0.2
"@metamask/utils": ^8.2.0
"@types/jest": ^27.4.1
"@types/jest-when": ^2.7.3
@@ -1890,7 +1890,7 @@ __metadata:
typescript: ~4.8.4
uuid: ^8.3.2
peerDependencies:
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
languageName: unknown
linkType: soft

@@ -2069,7 +2069,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/network-controller@^15.2.0, @metamask/network-controller@workspace:packages/network-controller":
"@metamask/network-controller@^16.0.0, @metamask/network-controller@workspace:packages/network-controller":
version: 0.0.0-use.local
resolution: "@metamask/network-controller@workspace:packages/network-controller"
dependencies:
@@ -2226,14 +2226,14 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/polling-controller@^1.0.1, @metamask/polling-controller@workspace:packages/polling-controller":
"@metamask/polling-controller@^1.0.2, @metamask/polling-controller@workspace:packages/polling-controller":
version: 0.0.0-use.local
resolution: "@metamask/polling-controller@workspace:packages/polling-controller"
dependencies:
"@metamask/auto-changelog": ^3.4.3
"@metamask/base-controller": ^3.2.3
"@metamask/controller-utils": ^5.0.2
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
"@metamask/utils": ^8.2.0
"@types/jest": ^27.4.1
"@types/uuid": ^8.3.0
@@ -2247,7 +2247,7 @@ __metadata:
typescript: ~4.8.4
uuid: ^8.3.2
peerDependencies:
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
languageName: unknown
linkType: soft

@@ -2306,9 +2306,9 @@ __metadata:
"@metamask/base-controller": ^3.2.3
"@metamask/controller-utils": ^5.0.2
"@metamask/json-rpc-engine": ^7.3.0
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
"@metamask/rpc-errors": ^6.1.0
"@metamask/selected-network-controller": ^3.1.1
"@metamask/selected-network-controller": ^3.1.2
"@metamask/swappable-obj-proxy": ^2.1.0
"@metamask/utils": ^8.2.0
"@types/jest": ^27.4.1
@@ -2323,8 +2323,8 @@ __metadata:
typedoc-plugin-missing-exports: ^2.0.0
typescript: ~4.8.4
peerDependencies:
"@metamask/network-controller": ^15.2.0
"@metamask/selected-network-controller": ^3.1.1
"@metamask/network-controller": ^16.0.0
"@metamask/selected-network-controller": ^3.1.2
languageName: unknown
linkType: soft

@@ -2380,14 +2380,14 @@ __metadata:
languageName: node
linkType: hard

"@metamask/selected-network-controller@^3.1.1, @metamask/selected-network-controller@workspace:packages/selected-network-controller":
"@metamask/selected-network-controller@^3.1.2, @metamask/selected-network-controller@workspace:packages/selected-network-controller":
version: 0.0.0-use.local
resolution: "@metamask/selected-network-controller@workspace:packages/selected-network-controller"
dependencies:
"@metamask/auto-changelog": ^3.4.3
"@metamask/base-controller": ^3.2.3
"@metamask/json-rpc-engine": ^7.3.0
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
"@metamask/swappable-obj-proxy": ^2.1.0
"@types/jest": ^27.4.1
deepmerge: ^4.2.2
@@ -2401,7 +2401,7 @@ __metadata:
typedoc-plugin-missing-exports: ^2.0.0
typescript: ~4.8.4
peerDependencies:
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
languageName: unknown
linkType: soft

@@ -2633,9 +2633,9 @@ __metadata:
"@metamask/base-controller": ^3.2.3
"@metamask/controller-utils": ^5.0.2
"@metamask/eth-query": ^4.0.0
"@metamask/gas-fee-controller": ^10.0.0
"@metamask/gas-fee-controller": ^10.0.1
"@metamask/metamask-eth-abis": ^3.0.0
"@metamask/network-controller": ^15.2.0
"@metamask/network-controller": ^16.0.0
"@metamask/rpc-errors": ^6.1.0
"@metamask/utils": ^8.2.0
"@types/jest": ^27.4.1
@@ -2658,8 +2658,8 @@ __metadata:
uuid: ^8.3.2
peerDependencies:
"@metamask/approval-controller": ^4.1.0
"@metamask/gas-fee-controller": ^10.0.0
"@metamask/network-controller": ^15.2.0
"@metamask/gas-fee-controller": ^10.0.1
"@metamask/network-controller": ^16.0.0
babel-runtime: ^6.26.0
languageName: unknown
linkType: soft