Skip to content

fix(wallet): complete React 19 move and use the browser global (wxt 0.20 / TS6)#132

Merged
marinom2 merged 1 commit into
mainfrom
fix/wallet-react19-browser-global
Jun 12, 2026
Merged

fix(wallet): complete React 19 move and use the browser global (wxt 0.20 / TS6)#132
marinom2 merged 1 commit into
mainfrom
fix/wallet-react19-browser-global

Conversation

@marinom2

Copy link
Copy Markdown
Owner

Follow-through after merging the wallet dependabot bumps (#117 TS6, #121 react-dom, #122 wxt 0.20). On their own they left the wallet unable to install/build cleanly from scratch:

  • React mismatch (chore(deps): bump react-dom and @types/react-dom in /wallet #121): it bumped react-dom + @types/react-dom to 19 but left react + @types/react at 18 - a peer ERESOLVE and an unbuildable react18/react-dom19 combo. Aligned react + @types/react to ^19.2 (the whole popup is now React 19, matching the main site).
  • chrome global gone (wxt 0.20 + TS6): WXT 0.20 no longer wires the global chrome value, so the five popup sites still on chrome.* now use the WXT-provided browser global (the rest of the wallet already does), including the Port type via ReturnType<typeof browser.runtime.connect>. browser.runtime.getURL is path-typed, so the expanded-tab URL gets a leading slash.
  • TS6 strictness: guard the approval-window result (w?.id).

155 wallet tests pass; tsc clean; wxt build clean on React 19 + TS6 + wxt 0.20.

….20 / TS6)

The dependabot bumps left the wallet in a state that fails a fresh install:

- #121 bumped react-dom + @types/react-dom to 19 but left react + @types/react
  at 18, an unbuildable mix (peer ERESOLVE; react 18 + react-dom 19). Aligned
  react and @types/react to ^19.2 so the whole popup is on React 19.
- wxt 0.20 + TS6 no longer wire the global chrome value, so the five popup
  sites still using chrome.* now use the WXT-provided browser global (the rest
  of the wallet already does), including the Port type. browser.runtime.getURL
  is path-typed, so the expanded-tab URL gets a leading slash.
- TS6 strictness: guard the approval window result (w?.id).

155 wallet tests pass; tsc clean; wxt build clean on react 19 + ts6 + wxt 0.20.
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightnode Ready Ready Preview, Comment Jun 12, 2026 7:32am

Request Review

@marinom2 marinom2 merged commit 1c670d8 into main Jun 12, 2026
1 check was pending
@marinom2 marinom2 deleted the fix/wallet-react19-browser-global branch June 12, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant