All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Bump
@metamask/base-controller
from^7.0.0
to^7.1.0
(#5079)
- BREAKING: Bump
@metamask/transaction-controller
peer dependency from^41.1.0
to^42.0.0
(#5032) - Bump
@metamask/eth-block-tracker
from to^11.0.2
to^11.0.3
(#5025)
- Bump
@metamask/controller-utils
from^11.4.3
to^11.4.4
(#5012) - Bump
@metamask/polling-controller
from^12.0.1
to^12.0.2
(#5012)
- Make implicit peer dependencies explicit (#4974)
- Add the following packages as peer dependencies of this package to satisfy peer dependency requirements from other dependencies:
@metamask/eth-block-tracker
>=9
(required by@metamask/transaction-controller
)
- These dependencies really should be present in projects that consume this package (e.g. MetaMask clients), and this change ensures that they now are.
- Furthermore, we are assuming that clients already use these dependencies, since otherwise it would be impossible to consume this package in its entirety or even create a working build. Hence, the addition of these peer dependencies is really a formality and should not be breaking.
- Add the following packages as peer dependencies of this package to satisfy peer dependency requirements from other dependencies:
- Correct ESM-compatible build so that imports of the following packages that re-export other modules via
export *
are no longer corrupted: (#5011)@metamask/eth-query
bn.js
lodash
- BREAKING: Bump
@metamask/transaction-controller
peer dependency from^40.1.0
to^41.0.0
(#4982)
- BREAKING: Bump
@metamask/keyring-controller
peer dependency from^18.0.0
to^19.0.0
(#4195) - BREAKING: Bump
@metamask/transaction-controller
peer dependency from^39.0.0
to^40.0.0
(#4195)
- BREAKING: Bump peer depepdency
@metamask/transaction-controller
from^38.0.0
to^39.0.0
(#4915) - BREAKING: Bump peer depepdency
@metamask/keyring-controller
from^17.0.0
to^18.0.0
(#4915) - Bump
@metamask/polling-controller
from^12.0.0
to^12.0.1
(#4870) - Bump
@metamask/base-controller
from^7.0.1
to^7.0.2
(#4862) - Bump
@metamask/controller-utils
from^11.4.0
to^11.4.3
(#4862, #4870, #4915)
- BREAKING: Bump
@metamask/network-controller
peer dependency from^21.0.0
to^22.0.0
(#4841) - Bump
@metamask/controller-utils
to^11.4.0
(#4834) - Bump
@metamask/rpc-errors
to^7.0.1
(#4831) - Bump
@metamask/utils
to^10.0.0
(#4831)
- Added new entries
bridge
,bridgeApproval
to theTransactionType
enum (#4714)
- BREAKING:
PendingUserOperationTracker
now uses a new polling interface that accepts the generic parameterPollingInput
(#4752) - BREAKING: The inherited
AbstractPollingController
methodstartPollingByNetworkClientId
has been renamed tostartPolling
(#4752) - BREAKING: The inherited
AbstractPollingController
methodonPollingComplete
now returns the entire input object of typePollingInput
, instead of a network client id (#4752) - Bump
@metamask/transaction-controller
from^37.1.0
to^37.3.0
(#4754,#4805) - Bump
@metamask/approval-controller
from^7.0.4
to^7.1.0
(#4734) - Bump
@metamask/keyring-controller
from^17.2.1
to^17.2.2
(#4734) - Bump
@metamask/transaction-controller
from^37.0.0
to^37.1.0
(#4734)
- Produce and export ESM-compatible TypeScript type declaration files in addition to CommonJS-compatible declaration files (#4648)
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and the
exports
field inpackage.json
linked to these files. This is an anti-pattern and was rightfully flagged by the "Are the Types Wrong?" tool as "masquerading as CJS". All of the ATTW checks now pass.
- Previously, this package shipped with only one variant of type declaration
files, and these files were only CommonJS-compatible, and the
- Remove chunk files (#4648).
- Previously, the build tool we used to generate JavaScript files extracted common code to "chunk" files. While this was intended to make this package more tree-shakeable, it also made debugging more difficult for our development teams. These chunk files are no longer present.
- BREAKING: Bump devDependency and peerDependency
@metamask/network-controller
from^20.0.0
to^21.0.0
(#4618, #4651) - BREAKING: Bump devDependency and peerDependency
@metamask/transaction-controller
from^35.0.0
to^36.0.0
( #4651) - BREAKING: Bump devDependency and peerDependency
@metamask/gas-fee-controller
from^19.0.0
to^20.0.0
( #4651) - Bump
@metamask/base-controller
from^6.0.2
to^7.0.0
(#4625, #4643) - Bump
@metamask/controller-utils
from^11.0.2
to^11.2.0
(#4639, #4651) - Bump
@metamask/polling-controller
from^9.0.1
to^10.0.0
(#4651) - Bump
typescript
from~5.0.4
to~5.2.2
(#4576, #4584)
- Remove
@metamask/approval-controller
,@metamask/gas-fee-controller
,@metamask/keyring-controller
,@metamask/network-controller
, and@metamask/transaction-controller
dependencies #4556- These were listed under
peerDependencies
already, so they were redundant as dependencies.
- These were listed under
- Upgrade TypeScript version to
~5.0.4
and setmoduleResolution
option toNode16
(#3645) - Bump
@metamask/base-controller
from^6.0.0
to^6.0.2
(#4517, #4544) - Bump
@metamask/controller-utils
from^11.0.0
to^11.0.2
(#4517, #4544) - Bump
@metamask/polling-controller
from^9.0.0
to^9.0.1
(#4548) - Bump
@metamask/rpc-errors
from^6.2.1
to^6.3.1
(#4516) - Bump
@metamask/utils
from^8.3.0
to^9.1.0
(#4516, #4529)
- Replace
superstruct
with ESM-compatible@metamask/superstruct
^3.1.0
(#3645)- This fixes the issue of this package being unusable by any TypeScript project that uses
Node16
orNodeNext
as itsmoduleResolution
option.
- This fixes the issue of this package being unusable by any TypeScript project that uses
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508) - BREAKING: Bump peerDependency
@metamask/gas-fee-controller
to^19.0.0
(#4508) - BREAKING: Bump peerDependency
@metamask/transaction-controller
to^35.0.0
(#4508) - Bump
@metamask/polling-controller
to^9.0.0
(#4508)
- BREAKING: Bump dependency and peer dependency
@metamask/gas-fee-controller
to^18.0.0
(#4498) - BREAKING: Bump dependency and peer dependency
@metamask/transaction-controller
to^34.0.0
(#4498)
- Bump
@metamask/transaction-controller
to^33.0.1
(#4460)
- BREAKING: Bump minimum Node version to 18.18 (#3611)
- BREAKING: Bump dependency and peer dependency
@metamask/approval-controller
to^7.0.0
(#4352) - BREAKING: Bump dependency and peer dependency
@metamask/gas-fee-controller
to^17.0.0
(#4352) - BREAKING: Bump dependency and peer dependency
@metamask/keyring-controller
to^17.0.0
(#4352) - BREAKING: Bump dependency and peer dependency
@metamask/network-controller
to^19.0.0
(#4352) - BREAKING: Bump dependency and peer dependency
@metamask/transaction-controller
to^32.0.0
(#4352) - Bump
@metamask/base-controller
to^6.0.0
(#4352) - Bump
@metamask/controller-utils
to^11.0.0
(#4352) - Bump
@metamask/polling-controller
to^8.0.0
(#4352)
- Add support for "swap+send" transactions (#4298)
- Add optional properties
destinationTokenAmount
,sourceTokenAddress
,sourceTokenAmount
,sourceTokenDecimals
, andswapAndSendRecipient
toTransactionMeta
- Add
swapAndSend
as a new entry inTransactionType
enum - When persisting this type of transaction, copy source tokens, destination tokens, and recipient from swap data, and emit
TransactionController:newSwapAndSend
controller event
- Add optional properties
- BREAKING: Bump dependency and peer dependency
@metamask/approval-controller
to^6.0.2
(#4342) - BREAKING: Bump dependency and peer dependency
@metamask/gas-fee-controller
to^16.0.0
(#4342) - BREAKING: Bump dependency and peer dependency
@metamask/keyring-controller
to^16.1.0
(#4342) - BREAKING: Bump dependency and peer dependency
@metamask/network-controller
to^18.1.3
(#4342) - BREAKING: Bump dependency and peer dependency
@metamask/transaction-controller
to^31.0.0
(#4342) - Bump
@metamask/controller-utils
to^10.0.0
(#4342) - Bump
@metamask/polling-controller
to^7.0.0
(#4342)
- BREAKING: Bump
@metamask/transaction-controller
peer dependency to^29.0.0
(#4272)
- BREAKING Bump
@metamask/keyring-controller
peer dependency to ^16.0.0 (#4234) - Bump
@metamask/base-controller
to^5.0.2
(#4232) - Bump
@metamask/transaction-controller
to^28.1.1
(#4229) - Bump
@metamask/gas-fee-controller
to^15.1.1
(#4220, #4234) - Bump
@metamask/approval-controller
to^6.0.2
(#4234) - Bump
@metamask/polling-controller
to^6.0.2
(#4234)
- Support number gas values in user operation receipts (#4161)
- BREAKING Bump peer dependency on
@metamask/keyring-controller
to^15.0.0
and Pass CAIP-2 scope to execution context (#4090) - Allow gas limits to be changed during #addPaymasterData (#3942)
- BREAKING: Bump peer dependency
@metamask/gas-fee-controller
to^15.0.0
(#4121) - BREAKING: Bump peer dependency
@metamask/transaction-controller
to^26.0.0
(#4121) - Bump dependency
@metamask/network-controller
to^18.1.0
(#4121)
- Include gas fees in user operations when using a paymaster (#4032)
- Fix
types
field inpackage.json
(#4047)
- BREAKING: Add ESM build (#3998)
- It's no longer possible to import files from
./dist
directly.
- It's no longer possible to import files from
- BREAKING: Bump dependency and peer dependency on
@metamask/approval-controller
to^6.0.0
(#4039) - BREAKING: Bump dependency and peer dependency on
@metamask/gas-fee-controller
to^14.0.0
(#4039) - BREAKING: Bump dependency and peer dependency on
@metamask/keyring-controller
to^14.0.0
(#4039) - BREAKING: Bump dependency and peer dependency on
@metamask/network-controller
to^18.0.0
(#4039) - BREAKING: Bump dependency and peer dependency on
@metamask/transaction-controller
to^25.0.0
(#4039) - BREAKING: Bump
@metamask/controller-utils
to^9.0.0
(#4039) - BREAKING: Bump
@metamask/polling-controller
to^6.0.0
(#4039)
- BREAKING: Bump
@metamask/keyring-controller
dependency and peer dependency to^13.0.0
(#4007) - BREAKING: Bump
@metamask/transaction-controller
dependency and peer dependency to^24.0.0
(#4007) - Bump
@metamask/approval-controller
to^5.1.3
(#4007) - Bump
@metamask/controller-utils
to^8.0.4
(#4007) - Bump
@metamask/gas-fee-controller
to^13.0.2
(#4007) - Bump
@metamask/network-controller
to^17.2.1
(#4007) - Bump
@metamask/rpc-errors
to^6.2.1
(#3954) - Bump
@metamask/polling-controller
to^5.0.1
(#4007) - Replace
ethereumjs-util
withbn.js
(#3943)
- BREAKING: Bump
@metamask/transaction-controller
dependency and peer dependency to^23.0.0
(#3925)
- BREAKING: Add required
from
property toPrepareUserOperationRequest
(#3844) - BREAKING: Add required
from
property toAddUserOperationRequest
(#3844) - BREAKING: Make
smartContractAccount
optional inAddUserOperationOptions
(#3844)- Use current account snap by default if not provided (#3844)
- Delete user operation if rejected during approval (#3844)
- Set
userFeeLevel
tocustom
in transaction event if using a paymaster (#3844) - Validate arguments when calling
addUserOperationFromTransaction
(#3844)
- BREAKING: Bump
@metamask/approval-controller
peer dependency to^5.1.2
(#3821) - BREAKING: Bump
@metamask/gas-fee-controller
peer dependency to^13.0.0
(#3821) - BREAKING: Bump
@metamask/network-controller
peer dependency to^17.2.0
(#3821) - BREAKING: Bump
@metamask/transaction-controller
peer dependency to^21.0.0
(#3821) - Bump
@metamask/base-controller
to^4.1.1
(#3821) - Bump
@metamask/controller-utils
to^8.0.2
(#3821) - Bump
@metamask/message-manager
to^7.3.8
(#3821) - Bump
@metamask/polling-controller
to^5.0.0
(#3821)
- Remove
@metamask/polling-controller
peer dependency (#3823)- This was mistakenly added as a peer dependency in v1. Now it's a regular dependency.
- Initial Release (#3749)