Skip to content

Releases: MetaMask/core

238.0.0

01 Nov 17:33
b1c2479
Compare
Choose a tag to compare

@metamask/assets-controllers 42.0.0

Added

  • Add resetState method to NftController, TokensController, TokenBalancesController and TokenRatesController to reset the controller's state back to their default state (#4880)

Changed

  • BREAKING: A platform argument must now be passed to the TokenDetectionController constructor, indicating whether the platform is extension or mobile. (#4877)
  • BREAKING: The TokenRatesController now accepts {chainId: Hex} as its polling input to startPolling() instead of {networkClientId: NetworkClientId} (#4887)
  • When the TokenRatesController's subscription to TokensController:stateChange is fired, token prices are now updated across all chain IDs whose tokens changed, instead of just the current chain. (#4866)
  • The TokenDetectionController now passes a x-metamask-clientproduct header when calling the account API. (#4877)

237.0.0

31 Oct 17:52
f33a4e3
Compare
Choose a tag to compare

@metamask/transaction-controller 38.2.0

Added

  • Add staking transaction types (#4874)
    • stakingClaim
    • stakingDeposit
    • stakingUnstake

Changed

  • Bump @metamask/controller-utils from ^11.4.1 to ^11.4.2 (#4870)
  • Bump @metamask/accounts-controller from ^18.2.2 to ^18.2.3 (#4870)
  • Bump @metamask/network-controller from ^22.0.0 to ^22.0.1 (#4870)

236.0.0

30 Oct 18:13
a21acc6
Compare
Choose a tag to compare

@metamask/accounts-controller 18.2.3

Changed

  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)
  • Bump dev dependency @metamask/keyring-controller from ^17.2.2 to ^17.3.1 (#4810, #4870)

@metamask/assets-controllers 41.0.0

Changed

  • BREAKING: The polling input accepted by CurrencyRateController is now an object with a nativeCurrencies property that is defined as a string array type (#4852)
    • The input parameters of the controller's _executePoll, _startPolling, onPollingComplete methods now only accept this new polling input type.
    • The nativeCurrency property (string type) has been removed.
  • BREAKING: RatesController now types the conversionRate and usdConversionRate in its state as number instead of string, to match what it was actually storing. (#4852)
  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/controller-utils from ^11.4.0 to ^11.4.1 (#4862)
  • Bump dev dependency @metamask/approval-controller from ^7.1.0 to ^7.1.1 (#4862)

@metamask/controller-utils 11.4.2

Changed

  • Move BigNumber.js from devDependencies to dependencies (#4873)

@metamask/keyring-controller 17.3.1

Changed

  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)
  • Bump @metamask/eth-sig-util from ^7.0.1 to ^8.0.0 (#4830)

@metamask/message-manager 11.0.1

Changed

  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/controller-utils from ^11.3.0 to ^11.4.2 (#4834, #4862, #4870)
  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)
  • Bump @metamask/eth-sig-util from ^7.0.1 to ^8.0.0 (#4830)

@metamask/network-controller 22.0.1

Changed

  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/controller-utils from ^11.4.0 to ^11.4.2 (#4862, #4870)
  • Bump @metamask/eth-json-rpc-provider from ^4.1.5 to ^4.1.6 (#4862)
  • Bump @metamask/json-rpc-engine from ^10.0.0 to ^10.0.1 (#4862)
  • Bump @metamask/rpc-errors from ^7.0.0 to ^7.0.1 (#4831)

@metamask/polling-controller 12.0.1

Changed

  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/controller-utils from ^11.4.0 to ^11.4.2 (#4862, #4870)

@metamask/preferences-controller 13.2.0

Added

  • Add useSafeChainsListValidation preference (#4860)
    • Add useSafeChainsListValidation property to the PreferencesController state (default: true)
    • Add setUseSafeChainsListValidation method to set this property
  • Add tokenSortConfig preference (#4860)
    • Add tokenSortConfig property to the PreferencesController state (default value: { key: 'tokenFiatAmount', order: 'dsc', sortCallback: 'stringNumeric' })
    • Add setTokenSortConfig method to set this property
  • Add privacyMode preference (#4860)
    • Add privacyMode property to the PreferencesController state (default value: false)
    • Add setPrivacyMode method to set this property
  • Add useMultiRpcMigration preference (#4732)

Changed

  • Bump @metamask/base-controller from ^7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/controller-utils from ^11.3.0 to ^11.4.2 (#4834, #4862, #4870)

235.0.0

29 Oct 18:02
7a8b4c1
Compare
Choose a tag to compare

@metamask/queued-request-controller 7.0.0

Added

  • BREAKING: The QueuedRequestController now requires the canRequestSwitchNetworkWithoutApproval callback in its constructor params. (#4846)

Changed

  • The QueuedRequestController now ensures that a request that can switch the globally selected network without approval is queued behind any existing pending requests. (#4846)

Fixed

  • The QueuedRequestController now ensures that any queued requests for a origin are failed if a request that can switch the globally selected network without approval actually does change the globally selected network for that origin. (#4846)

234.0.0

29 Oct 12:53
b1ed2fd
Compare
Choose a tag to compare

@metamask/signature-controller 21.0.0

Added

  • Add chainId and networkClientId to SignatureRequest and LegacyStateMessage types (#4797)
  • Add networkClientId to OriginalRequest type (#4797)

Changed

  • BREAKING: Make request argument required in newUnsignedPersonalMessage and newUnsignedTypedMessage methods (#4797)
  • Throw if no networkClientId in request or if chain ID cannot be determined (#4797)
  • Bump @metamask/approval-controller from ^7.1.0 to ^7.1.1 (#4862)
  • Bump @metamask/controller-utils from ^11.4.0 to ^11.4.1 (#4862)
  • Bump @metamask/base-controller from 7.0.1 to ^7.0.2 (#4862)
  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)
  • Bump @metamask/controller-utils from ^11.3.0 to ^11.4.0 (#4834)

Removed

  • Remove getCurrentChainId and getAllState callbacks from constructor options (#4797)

@metamask/transaction-controller 38.1.0

Added

  • Automatically re-simulate transactions based on security criteria (#4792)
    • If the security provider marks the transaction as malicious.
    • If the simulated native balance change does not match the value.
    • Set new isUpdatedAfterSecurityCheck property to true if the subsequent simulation response has changed.

Changed

  • Bump @metamask/eth-json-rpc-provider from ^4.1.5 to ^4.1.6 (#4862)
  • Bump @metamask/approval-controller from ^7.1.0 to ^7.1.1 (#4862)
  • Bump @metamask/controller-utils from ^11.4.0 to ^11.4.1 (#4862)
  • Bump @metamask/base-controller from 7.0.1 to ^7.0.2 (#4862)

233.0.0

29 Oct 11:30
557e28b
Compare
Choose a tag to compare

@metamask/approval-controller 7.1.1

Changed

  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)

@metamask/base-controller 7.0.2

Changed

  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)

@metamask/controller-utils 11.4.1

Changed

  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)

@metamask/eth-json-rpc-provider 4.1.6

Changed

  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)
  • Bump @metamask/rpc-errors from ^6.3.1 to ^7.0.0 (#4769)

@metamask/json-rpc-engine 10.0.1

Changed

  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)

@metamask/json-rpc-middleware-stream 8.0.5

Changed

  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)

@metamask/permission-controller 11.0.3

Changed

  • Bump @metamask/utils from ^9.1.0 to ^10.0.0 (#4831)

232.0.0

29 Oct 10:04
e692641
Compare
Choose a tag to compare

@metamask/assets-controllers 40.0.0

Changed

  • BREAKING: The CurrencyRateController polling input is now { nativeCurrency: string } instead of a network client ID (#4839)
  • BREAKING: Bump @metamask/network-controller peer dependency to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/rpc-errors to ^7.0.1 (#4831)
  • Bump @metamask/utils to ^10.0.0 (#4831)

Fixed

  • Update TokenRatesController to not reset market data just after network switch but before loading new market data (#4832)

@metamask/ens-controller 15.0.0

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/utils to ^10.0.0 (#4831)

@metamask/gas-fee-controller 22.0.0

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/utils to ^10.0.0 (#4831)

@metamask/polling-controller 12.0.0

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/utils to ^10.0.0 (#4831)

@metamask/queued-request-controller 6.0.0

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency from ^21.0.0 to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/rpc-errors to ^7.0.1 (#4831)
  • Bump @metamask/utils to ^10.0.0 (#4831)

@metamask/selected-network-controller 19.0.0

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency from ^21.0.0 to ^22.0.0 (#4841)
  • Bump @metamask/utils to ^10.0.0 (#4831)

@metamask/transaction-controller 38.0.0

Changed

  • BREAKING: Bump @metamask/gas-fee-controller peer dependency from ^20.0.0 to ^21.0.0 (#4810)
  • BREAKING: Bump @metamask/network-controller peer dependency from ^21.0.0 to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/rpc-errors to ^7.0.1 (#4831)
  • Bump @metamask/utils to ^10.0.0 (#4831)

@metamask/user-operation-controller 17.0.0

Changed

  • BREAKING: Bump @metamask/network-controller peer dependency from ^21.0.0 to ^22.0.0 (#4841)
  • Bump @metamask/controller-utils to ^11.4.0 (#4834)
  • Bump @metamask/rpc-errors to ^7.0.1 (#4831)
  • Bump @metamask/utils to ^10.0.0 (#4831)

231.0.0

28 Oct 17:27
28aec11
Compare
Choose a tag to compare

@metamask/phishing-controller 12.3.0

Fixed

  • Fixed extension performance issues (#4853)

230.0.0

25 Oct 14:11
2bb4e73
Compare
Choose a tag to compare

@metamask/phishing-controller 12.2.0

Changed

  • Changed the c2 blocklist fetch interval from 15 minutes to 5 minutes (#4850)

229.0.0

24 Oct 17:56
2a198a2
Compare
Choose a tag to compare

@metamask/phishing-controller 12.1.0

Fixed

  • Update the phishing detector validation to drop invalid configs from detector (#4820)