Release 1232.0.0 - #10092
Merged
Merged
Conversation
|
✅ Changelogs updated and pushed. |
cryptodev-2s
approved these changes
Sep 3, 2026
NicolasMassart
approved these changes
Sep 3, 2026
NicolasMassart
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Summary
Publish
@metamask/analytics-controller@2.1.0so clients can opt into journey-scoped event fragments from #10055.Problem
Clients that track multi-step user journeys (signature requests, transaction confirmations, and similar flows) must re-derive the same analytics properties at every step, or build ad hoc state to carry them forward. There is no shared controller primitive for accumulating properties across a journey and optionally closing it with a success or failure event.
Solution
@metamask/analytics-controller@2.1.0(minor): add optional event fragments, disabled by default viaisEventFragmentsEnabledinitialEvent,successEvent, and/orfailureEvent, then callfinalizeEventFragmentgetEventFragmentByIdwhen emitting a custom eventtrackEvent, return read-only copies fromcreateEventFragment/getEventFragmentById, and discard stale non-persistent or expired persisted fragments oninitWorkspace dependents bump their
@metamask/analytics-controllerrange to^2.1.0but are not published in this release:@metamask/network-controller@metamask/wallet-cliRisk
No breaking API changes. Event fragments are disabled by default, so existing consumers keep current behavior until they opt in with
isEventFragmentsEnabled.@metamask/analytics-controller@2.1.0Added
AnalyticsController(disabled by default viaisEventFragmentsEnabled), letting clients accumulate analytics properties across a user journey and optionally emit an initial, success, or failure event for it (#10055)Changed
@metamask/utilsfrom^11.11.0to^11.12.0(#10076)References
Checklist
Made with Cursor