Releases: MetaMask/swaps-controller
Releases · MetaMask/swaps-controller
14.0.0
Added
- Add two new controller state metadata properties:
includeInStateLogs
andusedInUi
(#1234)
Changed
13.3.0
13.2.0
13.1.0
13.0.0
12.1.0
12.0.0
Changed
- BREAKING: Consumers must now allow
NetworkController:getNetworkClientById
as a messenger action (#347) - BREAKING: Consumers must no longer allow
NetworkController:findNetworkClientIdByChainId
as a messenger action (#347) - BREAKING: Consumers must now allow
NetworkController:networkDidChange
as a messenger event (#347) - BREAKING: Update
startFetchAndSetQuotes
so that anetworkClientId
must be specified within the fetch metadata (#347) - BREAKING: Update
fetchTokenWithCache
,fetchTopAssetsWithCache
, andfetchAggregatorMetadataWithCache
so that anetworkClientId
must be specified as an option (#347) - BREAKING: Update signature of
fetchGasFeeEstimates
option so that the function expects anetworkClientId
option (#347) - BREAKING: Update signature of
fetchEstimatedMultiLayerL1Fee
option so that the function expects anetworkClientId
rather thanchainId
(#347) - BREAKING: Update type of
fetchParamsMetaData
inSwapsControllerState
to add required propertynetworkClientId
(#347) - BREAKING: Update type of
fetchGasFeeEstimates
inSwapsControllerOptions
to match signature of same method inGasFeeController
(#347) - BREAKING: Update type of
fetchEstimatedMultiLayerL1Fee
inSwapsControllerOptions
by replacingchainId
inoptions
withnetworkClientId
(#347) - The chain cache in state will now automatically be updated whenever the network has changed (#347)
- This aims to replace behavior provided by
setProvider
andsetChainId
.
- This aims to replace behavior provided by
- BREAKING: Bump peer dependency
@metamask/gas-fee-controller
to^22.0.0
(#369, #379) - BREAKING: Bump peer dependency
@metamask/network-controller
to^22.0.0
(#369, #379)
Removed
- BREAKING: Remove
chainId
from constructor options (#347)- The global chain ID no longer needs to be tracked. Methods that rely on a network now take a
networkClientId
option.
- The global chain ID no longer needs to be tracked. Methods that rely on a network now take a
- BREAKING: Remove
setChainId
method (#347)- Instead of calling this method when the network changes to capture the current chain ID, pass
networkClientId
to the appropriate method.
- Instead of calling this method when the network changes to capture the current chain ID, pass
- BREAKING: Remove
setProvider
method (#347)- Instead of calling this method when the network changes to capture the current provider, pass
networkClientId
to the appropriate method. - Note that
setProvider
was also allowing thepollCountLimit
to be reset. However, upon reviewing clients, it was discovered that thepollCountLimit
never changes. Instead of using method to set this option, pass it to the constructor when initializing the controller.
- Instead of calling this method when the network changes to capture the current provider, pass
- BREAKING: Remove
chainId
fromSwapsControllerOptions
type (#347)
11.0.0
Changed
- BREAKING: Bump
@metamask/network-controller
peer dependency from^18.1.0
to^21.1.0
(#332) - BREAKING:
@metamask/gas-fee-controller
is now listed as peer dependency (#331)- The package version has been bumped from
^15.1.2
to^21.0.0
- The package version has been bumped from
- Bump
@metamask/transaction-controller
from^19.0.1
to^37.3.0
(#333) - Bump
@metamask/approval-controller
from^5.1.1
to^7.1.0
(#333) - Bump
@metamask/utils
from^8.5.0
to^10.0.0
(#330) - Bump
@metamask/controller-utils
from^10.0.0
to^11.3.0
(#322) - Bump
@metamask/base-controller
from^5.0.2
to^7.0.1
(#319) - Bump
@metamask/safe-event-emitter
from^3.1.1
to^3.1.2
(#329) - Bump
secp256k1
in the npm_and_yarn group (#327) - Bump
@metamask/rpc-errors
from^6.3.1
to^6.4.0
(#325) - Update
LICENSE
(#338)