Releases: MetaMask/core
Releases · MetaMask/core
135.0.0
134.0.0
133.0.0
@metamask/announcement-controller 6.1.0
Added
- Add
resetViewed
method toAnnouncementController
to reset theisShown
status for all announcements (#4088)
@metamask/gas-fee-controller 15.0.0
Changed
- BREAKING: The controller's constructor now requires
infuraAPIKey
. This is used to construct and send theAuthorization
header for Infura gas API requests. (#4068) - Bump dependency
@metamask/network-controller
to^18.1.0
(#4121)
Removed
- BREAKING: Remove the constructor options
legacyAPIEndpoint
andEIP1559APIEndpoint
. These URLs are now hardcoded within the controller. (#4068)
@metamask/network-controller 18.1.0
Added
- Add
getSelectedNetworkClient
method that returns the provider and blockTracker for the currently selected network but with a more easily used type thangetProviderAndBlockTracker
(#4063) - Add
NetworkController:getSelectedNetworkClient
action (#4063)
Changed
getProviderAndBlockTracker
is now marked as deprecated and will be removed in a future release. (#4063)
@metamask/queued-request-controller 0.7.0
Changed
- BREAKING: Bump peer dependency
@metamask/selected-network-controller
to^11.0.0
(#4121) - Bump
@metamask/controller-utils
to^9.0.2
(#4065)
@metamask/selected-network-controller 11.0.0
Added
- Now exports the
Domain
type (#4104)
Changed
- Previously the
SelectedNetworkController
only constructed proxies for domains that had permissions. Other domains have no associated proxy and thegetProviderAndBlockTracker
method would throw an error. This was problematic because we grab the network client for an origin a single time when constructing an RPC pipeline for that origin in the MetaMask extension. We don't re-create the RPC pipeline when permissions change. That means that the pipeline is setup with the wrong network client and cannot be updated. The following changes ensure seamlessly proxying calls during sessions where a dapp connects/disconnects and provides a path for clients to prune inactive proxies:- BREAKING:
SelectedNetworkController
now expects adomainProxyMap
param - which is a Map of Domain to NetworkProxy - in its constructor (#4104)- This
domainProxyMap
is expected to automatically delete entries for domains that are no longer connected to the wallet. TheSelectedNetworkController
handles adding entries, but it can't handle removal, as it doesn't know which connections are active. - You can pass in a plain
Map
here and it will work, but during longer sessions this might grow unbounded, resulting in a memory leak.
- This
- BREAKING:
SelectedNetworkController
now requiresNetworkController:getSelectedNetworkClient
as an allowed action (#4063) getProviderAndBlockTracker
method no longer throws an error if theuseRequestQueue
flag is false (#4063)getProviderAndBlockTracker
method no longer throws an error if there is nonetworkClientId
set for the passed domain. Now it returns a proxy pointed at the globally selected network instead. (#4063)
- BREAKING:
- Bump dependency
@metamask/network-controller
to^18.1.0
(#4121)
Fixed
- Previously when a domain's permission was removed from
PermissionsController
, it's network client proxy would continue to point at thenetworkClientId
it was last set to. Now it is set to follow the globally selected network (#4063)
@metamask/transaction-controller 26.0.0
Added
- Run
OptimismLayer1GasFeeFlow
on Optimism stack based transactions in order to addlayer1GasFee
property to transaction meta. (#4055) - Add
getLayer1GasFee
method toTransactionController
to get the layer 1 gas fee for the given transaction params (#4055) - Add
SimulationErrorCode
enum (#4106)
Changed
- BREAKING: Bump peer dependency
@metamask/gas-fee-controller
to^15.0.0
(#4121) - Update
addTransaction
to skip simulation ifrequireApproval
is specified asfalse
(#4106) - Provide simulation error code in locally generated errors (under the
code
property) (#4106) - Add dependency
@ethersproject/contracts
^5.7.0
(#4055) - Add dependency
@ethersproject/providers
^5.7.0
(#4055) - Bump dependency
@metamask/network-controller
to^18.1.0
(#4121)
Removed
- BREAKING: Remove
isReverted
property fromSimulationError
type. (#4106)
@metamask/user-operation-controller 7.0.0
Changed
132.0.0
@metamask/transaction-controller 25.3.0
Added
- Add support for transactions with type
increaseAllowance
(#4069)- Also add "increaseAllowance" to
TransactionType
undertokenMethodIncreaseAllowance
- Also add "increaseAllowance" to
Changed
- Bump
@metamask/metamask-eth-abis
to^3.1.1
(#4069)
Fixed
- Provide updated transaction metadata to publish hook (#4101)
131.0.0
130.0.0
@metamask/transaction-controller 25.2.0
Added
- Add simulation types (#4067)
- SimulationBalanceChange
- SimulationData
- SimulationError
- SimulationToken
- SimulationTokenBalanceChange
- SimulationTokenStandard
Changed
- No longer wait for simulation to complete before creating approval request (#4067)
- Automatically update simulation data if transaction parameters are updated (#4067)
- Determine networks supporting simulation dynamically using API (#4087)
@metamask/user-operation-controller 6.0.2
Fixed
- Include gas fees in user operations when using a paymaster (#4032)