Releases: MetaMask/swaps-controller
Releases · MetaMask/swaps-controller
15.0.0
Changed
- BREAKING: Use new
Messengerfrom@metamask/messenger(#421)- Previously,
SwapsControlleraccepted aRestrictedMessengerinstance from@metamask/base-controller.
- Previously,
- BREAKING: Metadata property
anonymousrenamed toincludeInDebugSnapshot(#421) - BREAKING: Bump peer dependency
@metamask/gas-fee-controllerfrom^24.0.0to^25.0.0(#421) - BREAKING: Bump peer dependency
@metamask/network-controllerfrom^24.0.0to^25.0.0(#421) - Bump
@metamask/base-controllerfrom^8.0.3to^9.0.0((#421)
14.0.0
Added
- Add two new controller state metadata properties:
includeInStateLogsandusedInUi(#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:getNetworkClientByIdas a messenger action (#347) - BREAKING: Consumers must no longer allow
NetworkController:findNetworkClientIdByChainIdas a messenger action (#347) - BREAKING: Consumers must now allow
NetworkController:networkDidChangeas a messenger event (#347) - BREAKING: Update
startFetchAndSetQuotesso that anetworkClientIdmust be specified within the fetch metadata (#347) - BREAKING: Update
fetchTokenWithCache,fetchTopAssetsWithCache, andfetchAggregatorMetadataWithCacheso that anetworkClientIdmust be specified as an option (#347) - BREAKING: Update signature of
fetchGasFeeEstimatesoption so that the function expects anetworkClientIdoption (#347) - BREAKING: Update signature of
fetchEstimatedMultiLayerL1Feeoption so that the function expects anetworkClientIdrather thanchainId(#347) - BREAKING: Update type of
fetchParamsMetaDatainSwapsControllerStateto add required propertynetworkClientId(#347) - BREAKING: Update type of
fetchGasFeeEstimatesinSwapsControllerOptionsto match signature of same method inGasFeeController(#347) - BREAKING: Update type of
fetchEstimatedMultiLayerL1FeeinSwapsControllerOptionsby replacingchainIdinoptionswithnetworkClientId(#347) - The chain cache in state will now automatically be updated whenever the network has changed (#347)
- This aims to replace behavior provided by
setProviderandsetChainId.
- This aims to replace behavior provided by
- BREAKING: Bump peer dependency
@metamask/gas-fee-controllerto^22.0.0(#369, #379) - BREAKING: Bump peer dependency
@metamask/network-controllerto^22.0.0(#369, #379)
Removed
- BREAKING: Remove
chainIdfrom constructor options (#347)- The global chain ID no longer needs to be tracked. Methods that rely on a network now take a
networkClientIdoption.
- The global chain ID no longer needs to be tracked. Methods that rely on a network now take a
- BREAKING: Remove
setChainIdmethod (#347)- Instead of calling this method when the network changes to capture the current chain ID, pass
networkClientIdto the appropriate method.
- Instead of calling this method when the network changes to capture the current chain ID, pass
- BREAKING: Remove
setProvidermethod (#347)- Instead of calling this method when the network changes to capture the current provider, pass
networkClientIdto the appropriate method. - Note that
setProviderwas also allowing thepollCountLimitto be reset. However, upon reviewing clients, it was discovered that thepollCountLimitnever 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
chainIdfromSwapsControllerOptionstype (#347)
11.0.0
Changed
- BREAKING: Bump
@metamask/network-controllerpeer dependency from^18.1.0to^21.1.0(#332) - BREAKING:
@metamask/gas-fee-controlleris now listed as peer dependency (#331)- The package version has been bumped from
^15.1.2to^21.0.0
- The package version has been bumped from
- Bump
@metamask/transaction-controllerfrom^19.0.1to^37.3.0(#333) - Bump
@metamask/approval-controllerfrom^5.1.1to^7.1.0(#333) - Bump
@metamask/utilsfrom^8.5.0to^10.0.0(#330) - Bump
@metamask/controller-utilsfrom^10.0.0to^11.3.0(#322) - Bump
@metamask/base-controllerfrom^5.0.2to^7.0.1(#319) - Bump
@metamask/safe-event-emitterfrom^3.1.1to^3.1.2(#329) - Bump
secp256k1in the npm_and_yarn group (#327) - Bump
@metamask/rpc-errorsfrom^6.3.1to^6.4.0(#325) - Update
LICENSE(#338)