chore!: Remove deprecated UI builders#3859
Merged
FrederikBolding merged 7 commits intomainfrom Feb 20, 2026
Merged
Conversation
Mrtenz
reviewed
Feb 18, 2026
70e5ec1 to
64b625f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3859 +/- ##
==========================================
- Coverage 98.58% 98.58% -0.01%
==========================================
Files 428 426 -2
Lines 12389 12332 -57
Branches 1927 1921 -6
==========================================
- Hits 12214 12157 -57
Misses 175 175 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d9d9334 to
85d66d2
Compare
Mrtenz
approved these changes
Feb 20, 2026
| { | ||
| type: NodeType.Text as const, | ||
| value: | ||
| 'Here are some _formatting_ **elements**.\n\nAnd a [link](https://foo.bar).', |
Member
There was a problem hiding this comment.
We should stop supporting markdown when we completely drop the UI builders
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.
We still see Snaps submitted that use the legacy components, they have been deprecated for a long time, so we should remove them from the SDK. This does not break old Snaps that still use these, it just removes the builder functions from the SDK.
Note
Medium Risk
Breaking API removal for any downstream code still importing the legacy builder functions; internal behavior is mostly unchanged but surface-area churn is broad across packages.
Overview
Removes deprecated legacy Snap UI builder helpers from
@metamask/snaps-sdk(e.g.panel,text,form,input,button, and the internalcreateBuilder/componenthelpers), leaving only the struct/type definitions andNodeTypeexports for object-based nodes.Updates consumers and tests across
snaps-controllers,snaps-rpc-methods,snaps-simulation,snaps-utils, andsnaps-jestto stop using the removed builders and instead pass explicit{ type: NodeType.* }node objects (or JSX where supported). Also removesgetImageComponentfromsnaps-sdk/images(tests and implementation), keeping onlygetImageData.Written by Cursor Bugbot for commit 85d66d2. This will update automatically on new commits. Configure here.