chore(deps): Update MetaMask design system and React to v18 #746
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.
Summary
@metamask/design-system-reactfrom ^0.1.0 to ^0.6.0@metamask/design-system-tailwind-presetfrom ^0.5.0 to ^0.6.1@metamask/design-tokensfrom ^8.0.0 to ^8.1.1reactandreact-domfrom ^17.0.2 to ^18.3.1@types/reactand@types/react-domto v18@testing-library/reactfrom ^12.1.5 to ^16.3.0 (removes need for separate@testing-library/react-hooks)@radix-ui/react-slotto 1.2.4 (removes the yarn patch)Code changes for React 18 compatibility
createRootAPI instead of deprecatedrenderin popup entry pointschildrenprop inTableHeadercomponent (React 18 no longer includes children implicitly inReact.FC)@testing-library/react-hooksto@testing-library/reactTest plan
yarn buildpassesyarn testpasses (3338 tests)yarn test:e2e:cipasses (45 e2e tests across extension, nodejs, omnium-gatherum)🤖 Generated with Claude Code
Note
Updates the UI stack to React 18 and the latest MetaMask design system, with necessary code/test and build config changes.
react/react-dom(and types) to^18.3.1; update@metamask/design-system-react^0.6.0,@metamask/design-system-tailwind-preset^0.6.1,@metamask/design-tokens^8.1.1react-domrenderwithreact-dom/clientcreateRootin extension and omnium-gatherum entrypoints; update corresponding tests@testing-library/react-hooksto@testing-library/react; tweak expectations and userenderHookfrom RTLchildreninTableHeader, update peer deps to React 18, refine Vite externals for React, and Vitest config adds aliases/dep optimizer includes@radix-ui/react-slotto1.2.4Written by Cursor Bugbot for commit 79eb856. This will update automatically on new commits. Configure here.