Releases: MetaMask/core
Releases · MetaMask/core
175.0.0
@metamask/assets-controllers 36.0.0
Added
- Add optional
topBid
property to theNftMetadata
type. This property must be of typeTopBid
. (#4522) - Add optional
floorAsk
property to theTokenCollection
type. This property must be of typeFloorAskCollection
. (#4522) - Add linea mainnet support to nft detection supported networks (#4515)
- The
Collection
type is expanded to include the following 'string'-type optional properties:contractDeployedAt
,creator
,ownerCount
, and an optional propertytopBid
of the typeTopBid & { sourceDomain?: string; }
. (#4443)
Changed
- Fetch NFT collections data from the NFT-API
Get Collections
endpoint when calling thedetectNfts
method ofNftDetectionController
, and theupdateNftMetadata
andwatchNft
methods ofNftController
. (#4443) - Bump
@metamask/utils
to^9.0.0
(#4516) - Bump
@metamask/rpc-errors
to^6.3.1
(#4516)
Fixed
- BREAKING: The
attributes
property of theNftMetadata
type must be of typeAttributes[]
(#4522)- The
attributes
property was added and typed asAttributes
onv28.0.0
.
- The
174.0.0
173.0.0
@metamask/eth-json-rpc-provider 4.1.1
Changed
- Bump
@metamask/json-rpc-engine
to^9.0.1
(#4517) - Bump
@metamask/rpc-errors
to^6.3.1
(#4516) - Bump
@metamask/utils
to^9.0.0
(#4516)
@metamask/json-rpc-middleware-stream 8.0.1
Changed
- Bump
@metamask/json-rpc-engine
to^9.0.1
(#4517) - Bump
@metamask/rpc-errors
to^6.3.1
(#4516) - Bump
@metamask/utils
to^9.0.0
(#4516)
Fixed
- Fix incorrect notification detection logic (#4427)
- Previously, response objects with a falsy
id
property were detected as notifications. Now, we check for the absence of theid
property.
- Previously, response objects with a falsy
172.0.0
@metamask/approval-controller 7.0.1
Changed
- Bump
@metamask/rpc-errors
from6.2.1
to^6.3.1
(#4516) - Bump
@metamask/utils
from^8.3.0
to^9.0.0
(#4516) - Bump
@metamask/base-controller
to^6.0.1
(#4517)
@metamask/base-controller 6.0.1
Changed
- Bump
@metamask/rpc-errors
from6.2.1
to^6.3.1
(#4516) - Bump
@metamask/utils
from^8.3.0
to^9.0.0
(#4516)
@metamask/controller-utils 11.0.1
Changed
- Bump
@metamask/rpc-errors
from6.2.1
to^6.3.1
(#4516) - Bump
@metamask/utils
from^8.3.0
to^9.0.0
(#4516)
@metamask/json-rpc-engine 9.0.1
Changed
- Bump
@metamask/rpc-errors
from6.2.1
to^6.3.1
(#4516) - Bump
@metamask/utils
from^8.3.0
to^9.0.0
(#4516)
@metamask/permission-controller 10.0.1
Changed
171.0.0
@metamask/assets-controllers 35.0.0
Changed
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508) - Bump
@metamask/polling-controller
to^9.0.0
(#4508) - Bump
@metamask/accounts-controller
to^17.2.0
(#4498)
Fixed
- Add support for tokenURI encoded images to
NftController
methodsaddNft
,watchNft
andupdateNftMetadata
(#4482)
@metamask/ens-controller 13.0.0
Changed
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508)
@metamask/eth-json-rpc-provider 4.1.0
Added
- Make
SafeEventEmitterProvider
EIP-1193 compatible by adding arequest
method (#4422)- Now
SafeEventEmitterProvider
is compatible with@metamask/eth-query
,@metamask/ethjs-query
,BrowserProvider
from Ethers v6 andWeb3Provider
from Ethers v5
- Now
Deprecated
- Mark
sendAsync
method as deprecated in favor ofrequest
method (#4422)
@metamask/gas-fee-controller 19.0.0
Changed
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508) - Bump
@metamask/polling-controller
to^9.0.0
(#4508)
@metamask/network-controller 20.0.0
Added
- Add a new
log
argument to the constructor (#4440)- The new
log
argument must be aLogger
object from theloglevel
package and will be used to log a message when we fail to connect to a network or the network responds with an unknown error
- The new
Changed
- BREAKING: Update
networksMetadata
state property so that the keys in the object will only ever be network client IDs and not RPC URLs (#4254)- Some keys could have been RPC URLs if the initial network controller state had a
providerConfig
with an emptyid
, but sinceproviderConfig
is being removed, that won't happen anymore.
- Some keys could have been RPC URLs if the initial network controller state had a
- Bump
@metamask/eth-block-tracker
to^9.0.3
(#4418) - Bump
@metamask/eth-json-rpc-provider
to^4.1.0
(#4508)
Removed
- BREAKING: Remove
providerConfig
property from state along withProviderConfig
type andNetworkController:getProviderConfig
messenger action (#4254)- The best way to obtain the equivalent configuration object, e.g. to access the chain ID of the currently selected network, is to get
selectedNetworkClientId
from state, pass this to theNetworkController:getNetworkClientId
messenger action, and then use theconfiguration
property on the network client.
- The best way to obtain the equivalent configuration object, e.g. to access the chain ID of the currently selected network, is to get
@metamask/polling-controller 9.0.0
Changed
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508)
@metamask/queued-request-controller 3.0.0
Changed
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508) - BREAKING: Bump peerDependency
@metamask/selected-network-controller
to^16.0.0
(#4508)
@metamask/selected-network-controller 16.0.0
Changed
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508)
@metamask/transaction-controller 35.0.0
Changed
- BREAKING: Bump peerDependency
@metamask/network-controller
to^20.0.0
(#4508) - BREAKING: Bump peerDependency
@metamask/gas-fee-controller
to^19.0.0
(#4508)
@metamask/user-operation-controller 14.0.0
Changed
170.0.0
@metamask/accounts-controller 17.2.0
Added
- Add internal actions and events to
AccountsController
(#4496, #4497)- Add events
AccountsController:accountAdded
,AccountsController:accountRemoved
, and export corresponding event typesAccountsControllerAccountAddedEvent
,AccountsControllerAccountRemovedEvent
. - Export action types
AccountsControllerListMultichainAccountsAction
,AccountsControllerGetSelectedMultichainAccountAction
,AccountsControllerGetNextAvailableAccountNameAction
.
- Add events
Changed
- Improve support of non-EVM accounts (#4494)
- We now use
listMultichainAccounts
instead oflistAccounts
for non-EVM specific multichain methods
- We now use
- Emit
selectedAccountChange
and updatelastSelected
for initial account (#4494)
@metamask/gas-fee-controller 18.0.0
Added
- BREAKING: Add constructor options to
GasFeeController
:EIP1559APIEndpoint
(required), andlegacyAPIEndpoint
(optional) which defaults toLEGACY_GAS_PRICES_API_URL
. (#4446)- These URLs are no longer hardcoded within the controller.
Removed
- BREAKING: Remove
infuraAPIKey
as a constructor option forGasFeeController
. This class field was previously used to construct and send theAuthorization
header for Infura gas API requests. (#4446)
@metamask/transaction-controller 34.0.0
Changed
- BREAKING: Bump dependency and peer dependency
@metamask/gas-fee-controller
to^18.0.0
(#4498) - Bump dependency
@metamask/accounts-controller
to^17.2.0
(#4498)
@metamask/user-operation-controller 13.0.0
Changed
169.0.0
168.0.0
@metamask/notification-services-controller 0.1.1
Added
-
export
defaultState
forNotificationServicesController
andNotificationServicesPushController
. (#4441) -
export
NOTIFICATION_CHAINS_ID
which is a const-asserted version ofNOTIFICATION_CHAINS
(#4441) -
export
NOTIFICATION_NETWORK_CURRENCY_NAME
andNOTIFICATION_NETWORK_CURRENCY_SYMBOL
. Allows consistent currency names and symbols for supported notification services (#4441) -
add
isPushIntegrated
as an optional env property in theNotificationServicesController
constructor (defaults to true) (#4441)
Fixed
NotificationServicesPushController
- removed globalself
calls for mobile compatibility (#4441)
@metamask/profile-sync-controller 0.1.1
Added
- export
defaultState
forAuthenticationController
andUserStorageController
. (#4441)
Changed
AuthType
,Env
,Platform
are changed from const enums to enums (#4441)
167.0.0
166.0.0
@metamask/accounts-controller 17.1.0
Added
- Add
AccountsController:listMultichainAccounts
action (#4426)
Fixed
- Refactored
getSelectedAccount
to handle case when there are no accounts to return. The logic was previously contained ingetAccountExpect
has been transferred togetSelectedAccount
. (#4322) - Updated
handleAccountRemoved
to automatically select the most recent account if the removed account was the currently selected account. (#4322) - Move
@metamask/keyring-controller
to dependency (#4425)
@metamask/assets-controllers 34.0.0
Added
- Add
AccountTrackerControllerGetStateAction
,AccountTrackerControllerActions
,AccountTrackerControllerStateChangeEvent
, andAccountTrackerControllerEvents
types (#4407) - Add
setIntervalLength
andgetIntervalLength
methods toAccountTrackerController
(#4407)setIntervalLength
replaces updating the polling interval viaconfigure
.
Changed
- BREAKING
TokenBalancesController
messenger must allow the actionAccountsController:getSelectedAccount
and removePreferencesController:getState
. (#4219) - BREAKING
TokenDetectionController
messenger must allow the actionAccountsController:getAccount
. (#4219) - BREAKING
TokenDetectionController
messenger must allow the eventAccountsController:selectedEvmAccountChange
and removeAccountsController:selectedAccountChange
. (#4219) - BREAKING
TokenRatesController
messenger must allow the actionAccountsController:getAccount
,AccountsController:getSelectedAccount
and removePreferencesController:getState
. (#4219) - BREAKING
TokenRatesController
messenger must allow the eventAccountsController:selectedEvmAccountChange
and removePreferencesController:stateChange
. (#4219) - BREAKING
TokensController
messenger must allow the actionAccountsController:getAccount
,AccountsController:getSelectedAccount
. - BREAKING
TokensController
messenger must allow the eventAccountsController:selectedEvmAccountChange
. (#4219) - Upgrade AccountTrackerController to BaseControllerV2 (#4407)
- BREAKING: Convert
AccountInformation
from interface to type (#4407) - BREAKING: Rename
AccountTrackerState
toAccountTrackerControllerState
and convert from interface to type (#4407) - BREAKING:
AccountTrackerController
now inherits fromStaticIntervalPollingController
instead ofStaticIntervalPollingControllerV1
(#4407)- The constructor now takes a single options object rather than three arguments. Some options have been removed; see later entries.
- BREAKING: The
AccountTrackerController
messenger must now allow the actionsPreferencesController:getState
,NetworkController:getState
, andNetworkController:getNetworkClientById
(#4407) - BREAKING: The
refresh
method is no longer pre-bound to the controller (#4407)- You may now need to pre-bind it e.g.
accountTrackerController.refresh.bind(accountTrackerController)
.
- You may now need to pre-bind it e.g.
- Bump
@metamask/accounts-controller
to^17.1.0
(#4460)
Removed
- BREAKING
TokensController
removesselectedAddress
constructor argument. (#4219) - BREAKING
TokenDetectionController
removesselectedAddress
constructor argument. (#4219) - BREAKING: Remove
AccountTrackerConfig
type (#4407)- Some of these properties have been merged into the options that the
AccountTrackerController
constructor takes.
- Some of these properties have been merged into the options that the
- BREAKING: Remove
config
property andconfigure
method fromAccountTrackerController
(#4407)- The controller now takes a single options object which can be used for configuration, and configuration is now kept internally.
- BREAKING: Remove
notify
,subscribe
, andunsubscribe
methods fromAccountTrackerController
(#4407)- Use the controller messenger for subscribing to and publishing events instead.
- BREAKING: Remove
provider
,getMultiAccountBalancesEnabled
,getCurrentChainId
, andgetNetworkClientById
from configuration options forAccountTrackerController
(#4407)- The provider is now obtained directly from the network controller on demand.
- The messenger is now used in place of the callbacks.
@metamask/transaction-controller 33.0.1
Changed
@metamask/user-operation-controller 12.0.1
Changed
- Bump
@metamask/transaction-controller
to^33.0.1
(#4460)