Releases: MetaMask/core
Releases · MetaMask/core
682.0.0
@metamask/transaction-pay-controller 7.0.0
Added
- BREAKING: Add
sourceAmounttoTransactionPayQuote(#7159)- Add
estimateandmaxproperties tofee.sourceNetworkinTransactionPayQuote. - Add
isTargetGasFeeTokentofeeinTransactionPayQuote. - Add matching properties to
TransactionPayTotals. - Use fixed fiat rate for Polygon USDCe and Arbitrum USDC.
- Add
681.0.0
@metamask/core-backend 4.1.0
Changed
- Improve WebSocket connection lifecycle tracing in
BackendWebSocketService(#7101)- WebSocket connection duration is now properly reflected in trace span duration instead of only in custom data
- Trace all disconnections (both manual and unexpected) to provide complete connection lifecycle visibility in traces
- Omit
connectionDuration_msfrom disconnection traces when connection never established (onClose without onOpen)
- Update
BackendWebSocketServicedefault exponential backoff options for reconnection (#7101)- Increase default
reconnectDelayfrom 500 milliseconds to 10 seconds - Increase default
maxReconnectDelayfrom 30 seconds to 60 seconds
- Increase default
- Simplify WebSocket disconnection code in
BackendWebSocketService(#7101)- Centralize all disconnection logic in
ws.onclosehandler for single source of truth - Centralize all state changes within
#establishConnectionmethod - state transitions only occur inonopen(CONNECTING → CONNECTED) andonclose(any state → DISCONNECTED) - Add
MANUAL_DISCONNECT_CODE(4999) andMANUAL_DISCONNECT_REASONconstants to distinguish manual from unexpected disconnects
- Centralize all disconnection logic in
- Update
typescriptto v5.3 (#7081) - Bump
@ts-bridge/clifrom^0.6.1to^0.6.4(#7039)
Removed
- Remove
BackendWebSocketService Channel Messagetrace as it provided no useful performance insights (#7101)
Fixed
- Fix build script not working because of missing
@ts-bridge/clidependency (#7040)
680.0.0
679.0.0
@metamask/transaction-controller 61.3.0
Added
- Add optional
gasFeeTokenproperty toaddTransactionandaddTransactionBatchmethods (#7123)- Also add optional
gasFeeTokenandisGasFeeTokenIgnoredIfBalanceproperties toTransactionMeta.
- Also add optional
@metamask/transaction-pay-controller 6.0.0
Fixed
- BREAKING: Always retrieve quote if using Relay strategy and required token is Arbitrum USDC, even if payment token matches (#7146)
- Change
getStrategyconstructor option from asynchronous to synchronous.
- Change
678.0.0
677.0.0
@metamask/notification-services-controller 20.0.0
Changed
- BREAKING: Moved Notification API from v2 to v3 (#7102)
- API Endpoint Changes: Updated from
/api/v2/notificationsto/api/v3/notificationsfor listing notifications and marking as read - Request Format: The list notifications endpoint now expects
{ addresses: string[], locale?: string }instead of{ address: string }[] - Response Structure: Notifications now include a
notification_typefield ('on-chain' or 'platform') and nested payload structure- On-chain notifications: data moved from root level to
payload.data - Platform notifications: new type with
templatecontaining localized content (title,body,image_url,cta)
- On-chain notifications: data moved from root level to
- Type System Overhaul:
OnChainRawNotification→NormalisedAPINotification(union of on-chain and platform)UnprocessedOnChainRawNotification→UnprocessedRawNotification- Removed specific DeFi notification types (Aave, ENS, Lido rewards, etc.) - now will be handled generically
- Added
TRIGGER_TYPES.PLATFORMfor platform notifications
- Function Signatures:
getOnChainNotifications()→getAPINotifications()with newlocaleparametergetOnChainNotificationsConfigCached()→getNotificationsApiConfigCached()processOnChainNotification()→processAPINotifications()
- Service Imports: Update imports from
onchain-notificationstoapi-notifications - Auto-expiry: Reduced from 90 days to 30 days for notification auto-expiry
- Locale Support: Added locale parameter to controller constructor for localized server notifications
- API Endpoint Changes: Updated from
676.0.0
675.0.0
674.0.0
@metamask/transaction-pay-controller 5.0.0
Added
- BREAKING: Include transactions in Relay quotes via EIP-7702 and delegation (#7122)
- Requires new
getDelegationTransactionconstructor option.
- Requires new
Changed
- Updated
getBridgeBatchTransactionstypes to account for multichain approvals (#6862)
Fixed
- Read Relay provider fees directly from response (#7098)