Skip to content

Releases: MetaMask/core

694.0.0

25 Nov 16:20
6948365

Choose a tag to compare

@metamask/bridge-controller 63.1.0

Added

  • Port the following constants from SwapsController and export them: SWAPS_TESTNET_CHAIN_ID, SWAPS_CONTRACT_ADDRESSES, SWAPS_WRAPPED_TOKENS_ADDRESSES, ALLOWED_CONTRACT_ADDRESSES (#7233)
  • Port the following utils from SwapsController and export them: isValidSwapsContractAddress, getSwapsContractAddress (#7233)

Changed

  • Move peer dependencies for controller and service packages to direct dependencies (#7209, #7220, #7236)
    • The dependencies moved are:
      • @metamask/accounts-controller (^35.0.0)
      • @metamask/assets-controllers (^91.0.0)
      • @metamask/network-controller (^26.0.0)
      • @metamask/remote-feature-flag-controller (^2.0.1)
      • @metamask/snaps-controllers (^14.0.0)
      • @metamask/transaction-controller (^62.3.0)
    • In clients, it is now possible for multiple versions of these packages to exist in the dependency tree.
      • For example, this scenario would be valid: a client relies on @metamask/controller-a 1.0.0 and @metamask/controller-b 1.0.0, and @metamask/controller-b depends on @metamask/controller-a 1.1.0.
    • Note, however, that the versions specified in the client's package.json always "win", and you are expected to keep them up to date so as not to break controller and service intercommunication.

Fixed

693.0.0

25 Nov 14:36
614d709

Choose a tag to compare

@metamask/transaction-controller 62.3.0

Changed

  • Check balance and gas fee tokens only after before sign hook (#7234)

692.0.0

25 Nov 11:22
9688009

Choose a tag to compare

@metamask/transaction-pay-controller 10.1.0

Added

  • Use new feature flags to configure gas limit fallback for Relay quotes (#7229)
    • Use gas fee properties from Relay quotes.

Changed

  • Move peer dependencies for controller and service packages to direct dependencies (#7209, #7220)
    • The dependencies moved are:
      • @metamask/assets-controllers (^91.0.0)
      • @metamask/bridge-controller (^63.0.0)
      • @metamask/bridge-status-controller (^63.0.0)
      • @metamask/gas-fee-controller (^26.0.0)
      • @metamask/network-controller (^26.0.0)
      • @metamask/remote-feature-flag-controller (^2.0.1)
      • @metamask/transaction-controller (^62.2.0)
    • In clients, it is now possible for multiple versions of these packages to exist in the dependency tree.
      • For example, this scenario would be valid: a client relies on @metamask/controller-a 1.0.0 and @metamask/controller-b 1.0.0, and @metamask/controller-b depends on @metamask/controller-a 1.1.0.
    • Note, however, that the versions specified in the client's package.json always "win", and you are expected to keep them up to date so as not to break controller and service intercommunication.

691.0.0

21 Nov 18:58
aeed98a

Choose a tag to compare

@metamask/transaction-controller 62.2.0

Added

  • Add musdConversion transaction type (#7218)

Changed

  • Move peer dependencies for controller and service packages to direct dependencies (#7209)
    • The dependencies moved are:
      • @metamask/accounts-controller (^35.0.0)
      • @metamask/approval-controller (^8.0.0)
      • @metamask/gas-fee-controller (^26.0.0)
      • @metamask/network-controller (^26.0.0)
      • @metamask/remote-feature-flag-controller (^2.0.1)
    • In clients, it is now possible for multiple versions of these packages to exist in the dependency tree.
      • For example, this scenario would be valid: a client relies on @metamask/controller-a 1.0.0 and @metamask/controller-b 1.0.0, and @metamask/controller-b depends on @metamask/controller-a 1.1.0.
    • Note, however, that the versions specified in the client's package.json always "win", and you are expected to keep them up to date so as not to break controller and service intercommunication.

690.0.0

21 Nov 09:54
4238ec7

Choose a tag to compare

@metamask/transaction-controller 62.1.0

Changed

  • Performance optimisations in addTransaction and addTransactionBatch methods (#7205)
    • Add skipInitialGasEstimate option to addTransaction and addTransactionBatch methods.
    • Add disableUpgrade option to addTransactionBatch method.

689.0.0

20 Nov 21:35
2785995

Choose a tag to compare

@metamask/phishing-controller 16.1.0

Added

  • Export TokenScanCacheData and TokenScanResultType to allow consumers to have a type to reference if grabbing values directly from the controller's state (#7208)

688.0.0

20 Nov 15:55
7dda377

Choose a tag to compare

@metamask/assets-controllers 91.0.0

Changed

  • BREAKING: Update spot-prices endpoint to use Price API v3 (#7119)
    • Update AbstractTokenPricesService.fetchTokenPrices arguments and return type
    • Update CodefiTokenPricesServiceV2 list of supported currencies
    • Update TokenRatesController to fetch prices by native currency instead of by chain
    • Remove legacy polling code and unused events from TokenRatesController

@metamask/bridge-controller 63.0.0

Changed

  • BREAKING: Bump @metamask/assets-controllers from ^90.0.0 to ^91.0.0 (#7207)

@metamask/bridge-status-controller 63.0.0

Changed

  • BREAKING: Bump @metamask/bridge-controller from ^62.0.0 to ^63.0.0 (#7207)

@metamask/transaction-pay-controller 10.0.0

Added

  • Use gas fee token for Relay deposit transactions if insufficient native balance (#7193)
    • Add optional fees.isSourceGasFeeToken property to TransactionPayQuote and TransactionPayTotals type.

Changed

  • BREAKING: Bump @metamask/bridge-status-controller from ^62.0.0 to ^63.0.0 (#7207)
  • BREAKING: Bump @metamask/bridge-controller from ^62.0.0 to ^63.0.0 (#7207)
  • BREAKING: Bump @metamask/assets-controllers from ^90.0.0 to ^91.0.0 (#7207)

687.0.0

20 Nov 12:08
fcb43e6

Choose a tag to compare

@metamask/account-tree-controller 4.0.0

Changed

  • BREAKING: Bump @metamask/profile-sync-controller from ^26.0.0 to ^27.0.0 (#7202)
  • BREAKING: Bump @metamask/multichain-account-service from ^3.0.0 to ^4.0.0 (#7202)
  • BREAKING: Bump @metamask/keyring-controller from ^24.0.0 to ^25.0.0 (#7202)
  • BREAKING: Bump @metamask/accounts-controller from ^34.0.0 to ^35.0.0 (#7202)

@metamask/accounts-controller 35.0.0

Changed

  • BREAKING: Bump @metamask/network-controller from ^25.0.0 to ^26.0.0 (#7202)
  • BREAKING: Bump @metamask/keyring-controller from ^24.0.0 to ^25.0.0 (#7202)

@metamask/address-book-controller 7.0.1

Changed

  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)

@metamask/assets-controllers 90.0.0

Added

  • Added optional filtering of Tron staking tokens (energy, bandwidth) in asset selectors selectAssetsBySelectedAccountGroup (defaults to true) (#7198)

Changed

  • Bump @metamask/polling-controller from ^15.0.0 to ^16.0.0 (#7202)
  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)
  • BREAKING: Bump @metamask/transaction-controller from ^61.0.0 to ^62.0.0 (#7202)
  • BREAKING: Bump @metamask/preferences-controller from ^21.0.0 to ^22.0.0 (#7202)
  • BREAKING: Bump @metamask/phishing-controller from ^15.0.0 to ^16.0.0 (#7202)
  • BREAKING: Bump @metamask/network-controller from ^25.0.0 to ^26.0.0 (#7202)
  • BREAKING: Bump @metamask/keyring-controller from ^24.0.0 to ^25.0.0 (#7202)
  • BREAKING: Bump @metamask/core-backend from ^4.1.0 to ^5.0.0 (#7202)
  • BREAKING: Bump @metamask/accounts-controller from ^34.0.0 to ^35.0.0 (#7202)
  • BREAKING: Bump @metamask/account-tree-controller from ^3.0.0 to ^4.0.0 (#7202)

@metamask/bridge-controller 62.0.0

Added

  • Add and export getQuotesReceivedProperties utility to build the metrics payload for clients (#7182)

Changed

  • Bump @metamask/polling-controller from ^15.0.0 to ^16.0.0 (#7202)
  • Bump @metamask/multichain-network-controller from ^2.0.0 to ^3.0.0 (#7202)
  • Bump @metamask/gas-fee-controller from ^25.0.0 to ^26.0.0 (#7202)
  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)
  • BREAKING: Bump @metamask/transaction-controller from ^61.0.0 to ^62.0.0 (#7202)
  • BREAKING: Bump @metamask/network-controller from ^25.0.0 to ^26.0.0 (#7202)
  • BREAKING: Bump @metamask/assets-controllers from ^89.0.0 to ^90.0.0 (#7202)
  • BREAKING: Bump @metamask/accounts-controller from ^34.0.0 to ^35.0.0 (#7202)

@metamask/bridge-status-controller 62.0.0

Changed

  • Bump @metamask/polling-controller from ^15.0.0 to ^16.0.0 (#7202)
  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)
  • BREAKING: Bump @metamask/transaction-controller from ^61.0.0 to ^62.0.0 (#7202)
  • BREAKING: Bump @metamask/network-controller from ^25.0.0 to ^26.0.0 (#7202)
  • BREAKING: Bump @metamask/gas-fee-controller from ^25.0.0 to ^26.0.0 (#7202)
  • BREAKING: Bump @metamask/bridge-controller from ^61.0.0 to ^62.0.0 (#7202)
  • BREAKING: Bump @metamask/accounts-controller from ^34.0.0 to ^35.0.0 (#7202)
  • Update submitTx handler to accept optional isLoading and warnings arguments. When isLoading=true, the QuotesReceived event is published (#7182)

@metamask/controller-utils 11.16.0

Added

  • Add getCircuitState method to ServicePolicy (#7164)
    • This can be used when working with a chain of services to know whether a service's underlying circuit is open or closed.
  • Add onAvailable method to ServicePolicy (#7164)
    • This can be used to listen for the initial successful execution of the service, or the first successful execution after the service becomes degraded or the circuit breaks.
  • Add reset method to ServicePolicy (#7164)
    • This can be used when working with a chain of services to reset the state of the circuit breaker policy (e.g. if a primary recovers and we want to reset the failovers).
  • Export CockatielEventEmitter and CockatielFailureReason from Cockatiel (#7164)
    • These can be used to further transform types for event emitters/listeners.

@metamask/core-backend 5.0.0

Changed

  • Bump @metamask/profile-sync-controller from ^26.0.0 to ^27.0.0 (#7202)
  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)
  • BREAKING: Bump @metamask/keyring-controller from ^24.0.0 to ^25.0.0 (#7202)
  • BREAKING: Bump @metamask/accounts-controller from ^34.0.0 to ^35.0.0 (#7202)

@metamask/delegation-controller 2.0.0

Changed

  • BREAKING: Bump @metamask/keyring-controller from ^24.0.0 to ^25.0.0 (#7202)
  • BREAKING: Bump @metamask/accounts-controller from ^34.0.0 to ^35.0.0 (#7202)

@metamask/earn-controller 11.0.0

Changed

  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)
  • BREAKING: Bump @metamask/network-controller from ^25.0.0 to ^26.0.0 (#7202)
  • BREAKING: Bump @metamask/account-tree-controller from ^3.0.0 to ^4.0.0 (#7202)

@metamask/ens-controller 19.0.0

Changed

  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)
  • BREAKING: Bump @metamask/network-controller from ^25.0.0 to ^26.0.0 (#7202)

@metamask/eth-block-tracker 15.0.0

Added

  • Add Context generic parameter to PollingBlockTracker (#7061)
    • This enables passing providers with different context types to the block tracker.

Changed

  • Bump @metamask/eth-json-rpc-provider from ^5.0.1 to ^6.0.0 (#7202)
  • BREAKING: Use InternalProvider instead of SafeEventEmitterProvider (#6796)
    • The block tracker expects a provider with an InternalProvider instead of a SafeEventEmitterProvider.
  • BREAKING: Migrate to JsonRpcEngineV2 (#7001)

@metamask/eth-json-rpc-middleware 22.0.0

Added

  • Add new function providerAsMiddlewareV2 for converting an InternalProvider into a JsonRpcEngine v2-compatible middleware (#7138)

Changed

  • BREAKING: Migrate all middleware from JsonRpcEngine to JsonRpcEngineV2 (#7065)
    • To continue using this package with the legacy JsonRpcEngine, use the asLegacyMiddleware backwards compatibility function.
  • BREAKING: Change the signatures of hooks for createWalletMiddleware (#7065)
    • To wit:
      • getAccounts takes an origin argument (string) instead of a JsonRpcRequest
      • processDecryptMessage and processEncryptionPublicKey take a MessageRequest from @metamask/message-manager instead of JsonRpcRequest
      • processPersonalMessage, processTransaction, processSignTransaction, processTypedMessage, processTypedMessageV3 and processTypedMessageV4 take a context as the third argument, before any other arguments
    • Be advised that request objects are now deeply frozen, and cannot be mutated.
  • BREAKING: Use InternalProvider instead of SafeEventEmitterProvider (#6796)
    • Wherever a SafeEventEmitterProvider was expected, an InternalProvider is now expected instead.
  • BREAKING: Stop retrying undefined results for methods that include a block...
Read more

686.0.0

19 Nov 10:05
3317996

Choose a tag to compare

@metamask/assets-controllers 89.0.1

Fixed

  • Fix duplicate native token address in CurrencyRateController spot price fallback API requests (#7181)