Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation
This release includes major version bumps for 4 packages, primarily driven by breaking changes in
@metamask/core-backend
that introduce automatic WebSocket connection management and several API improvements.Note: While these are marked as breaking changes, they should not affect MetaMask Extension or MetaMask Mobile at this time, as WebSocket integration has not been implemented in these clients yet. The breaking changes are primarily API improvements that will be relevant once WebSocket functionality is adopted.
📦 Packages Included
@metamask/core-backend
: 1.0.1 → 2.0.0@metamask/assets-controllers
: 80.0.0 → 81.0.0@metamask/bridge-controller
: 51.0.0 → 52.0.0@metamask/bridge-status-controller
: 50.1.0 → 51.0.0Current State and Why It Needs to Change
The
@metamask/core-backend
package required several breaking changes to improve WebSocket connection management, type safety, and API consistency. The package needed to automatically manage WebSocket connections based on wallet lock state, and the type definitions needed improvements for better developer experience.Solution
@metamask/core-backend (1.0.1 → 2.0.0)
Breaking Changes:
channelType
argument toBackendWebSocketService.subscribe
method for better subscription managementAsset
type to requiredecimals
field for proper token amount formattingKeyringController:lock
andKeyringController:unlock
events)Transaction.hash
toTransaction.id
for consistency with backend API@metamask/keyring-controller
(^23.0.0)getSupportedChains
method fromAccountActivityService
(replaced with system notification-driven chain tracking)Non-Breaking Additions:
traceFn
parameter for performance tracing integration (e.g., Sentry)timestamp
property to various notification types@metamask/assets-controllers (80.0.0 → 81.0.0)
Changes:
@metamask/core-backend
from^1.0.1
to^2.0.0
@metamask/core-backend
from^1.0.1
to^2.0.0
@metamask/bridge-controller (51.0.0 → 52.0.0)
Changes:
@metamask/assets-controllers
from^80.0.0
to^81.0.0
@metamask/assets-controllers
from^80.0.0
to^81.0.0
@metamask/bridge-status-controller (50.1.0 → 51.0.0)
Changes:
@metamask/bridge-controller
from^51.0.0
to^52.0.0
@metamask/bridge-controller
from^51.0.0
to^52.0.0
Why Cascade Updates Were Necessary
The breaking changes in
@metamask/core-backend
required a major version bump. Since@metamask/assets-controllers
has@metamask/core-backend
as both a dependency and peer dependency, it needed to be updated to accept the new version. This cascaded to@metamask/bridge-controller
(which depends on@metamask/assets-controllers
) and@metamask/bridge-status-controller
(which depends on@metamask/bridge-controller
).Migration Guide for Consumers
Update
subscribe
calls to includechannelType
:Add KeyringController events to your messenger:
Update Asset type usage to include
decimals
:Update Transaction references from
hash
toid
:Add @metamask/keyring-controller peer dependency:
Remove
getSupportedChains
calls - chain tracking is now automatic via system notificationsReferences
Checklist
Note
Releases core-backend v2 with breaking WebSocket and type changes, and cascades required peer/dependency bumps across assets and bridge packages.
@metamask/core-backend@2.0.0
(major):channelType
inBackendWebSocketService.subscribe
Asset.decimals
; renames transactionhash
→id
@metamask/keyring-controller
traceFn
; optionaltimestamp
fields in notifications/events@metamask/assets-controllers@81.0.0
(major): bump peer/dev dep@metamask/core-backend
to^2.0.0
.@metamask/bridge-controller@52.0.0
(major): bump peer/dev dep@metamask/assets-controllers
to^81.0.0
.@metamask/bridge-status-controller@51.0.0
(major): bump peer/dev dep@metamask/bridge-controller
to^52.0.0
.618.0.0
→619.0.0
; lockfile updated.Written by Cursor Bugbot for commit 9e01bed. This will update automatically on new commits. Configure here.