unstale

npm / @metamask/utils

@metamask/utils

What changed in @metamask/utils 6 to 1438, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

7 breaking15 new APIs and options5 behavior and defaults1 tooling3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@metamask/utils 14387 changes

Breaking changes 1

  • Rejects buy URLs whose origin differs from the ramps API origin for the configured environment, before adding common params or requesting a bearer token; baseUrlOverride does not relax the check.

    1438.0.0release notes

New APIs and options 4

  • Returns providers the user has completed a buy with, most recent first; also adds the RampsProviderHistoryEntry and SelectProviderForAssetOptions types.

    1438.0.0release notes

  • Selects a provider for an asset using the user's pick, ahead-of-history list, recent completed buys, and API ranking, in that order.

    1438.0.0release notes

  • Adds a userSelected option that sets userSelectedProviderId.

    1438.0.0release notes

  • Adds non-persisted state for the user's selected provider; it is cleared by setSelectedProvider(null) and on region change.

    1438.0.0release notes

Fixes and other changes 2

  • Provider selection and resolution now match orders with /providers/<id> provider IDs or text createdAt values, and exclude sell orders.

    1438.0.0release notes

  • Polling publishes orderStatusChanged only when the new status is stored, preventing repeated events when fetched order IDs differ or an order is removed during an in-flight request.

    1438.0.0release notes

@metamask/utils 14353 changes

New APIs and options 3

  • Adds a TransactionType identifying a Perps deposit that targets Lighter, so clients can distinguish it from existing Hyperliquid Perps types in metrics and confirmations.

    1435.0.0release notes

  • Adds a TransactionType identifying a Lighter Perps deposit-and-order, so clients can distinguish it from existing Hyperliquid Perps types in metrics and confirmations.

    1435.0.0release notes

  • Adds a TransactionType identifying a Perps withdrawal that targets Lighter, so clients can distinguish it from existing Hyperliquid Perps types in metrics and confirmations.

    1435.0.0release notes

@metamask/utils 14195 changes

New APIs and options 2

  • Adds a feature flag to configure the buffer reserved on top of the probe's gas cost when reducing the source amount; it defaults to 1.0, meaning no buffer.

    1419.0.0release notes

  • Adds a feature flag to disable gasless quotes in ServerStrategy; it is enabled by default.

    1419.0.0release notes

Behavior and default changes 3

  • RelayStrategy tolerates small gas cost changes between probe and adjusted quotes by reserving a buffer; adjusted quote gas limit checks are removed because affordability checks cover gas cost changes.

    1419.0.0release notes

  • Quote requests use non-atomic quotes when the transaction's from keyring requires MFA, avoiding a fresh delegation signature for every quote refresh.

    1419.0.0release notes

  • Relay and Server quote simulation is skipped when the payer is an MPC Money account, avoiding delegation signing and MFA prompts during simulation.

    1419.0.0release notes

@metamask/utils 101 changes

Breaking changes 1

  • The CurrencyRateController state field is now nullable after switching networks.

    10.0.0release notes

@metamask/utils 96 changes

Breaking changes 1

  • CurrencyRateController migrates to BaseControllerV2; the change is marked breaking.

    9.0.0release notes

New APIs and options 4

Tooling 1

  • Restricted messenger types for controllers are improved.

    9.0.0release notes

@metamask/utils 84 changes

Breaking changes 2

  • Replaces the controller context, a breaking change for developers relying on the previous context.

    8.0.0release notes

  • Raises the minimum supported Node.js version to v12.

    8.0.0release notes

New APIs and options 1

Fixes and other changes 1

  • Collectibles are no longer removed during auto detection.

    8.0.0release notes

@metamask/utils 73 changes

New APIs and options 1

  • Adds the ability to indicate whether a transaction was added from the user's local device and the account creation time.

    7.0.0release notes

Behavior and default changes 2

@metamask/utils 62 changes

Breaking changes 2

  • The default approval controller type was removed.

    6.0.0release notes

  • NetworkController usage must use chainId instead of networkId.

    6.0.0release notes