Skip to content

chore: upgrade to react-router 7 - #1997

Merged
netomi merged 2 commits into
eclipse-openvsx:mainfrom
gnugomez:gnugomez/main/upgrade-react-router
Jul 27, 2026
Merged

chore: upgrade to react-router 7#1997
netomi merged 2 commits into
eclipse-openvsx:mainfrom
gnugomez:gnugomez/main/upgrade-react-router

Conversation

@gnugomez

Copy link
Copy Markdown
Member

Replace react-router-dom with react-router; v7 folds the DOM exports into the main package. Also drops the stale @types/react-router-dom v5 typings.

Stops at 7.18.1 rather than v8: v8 requires react/react-dom 19.2.7+ and this app is on React 18. Node 22.22 already meets v8's floor, so React is the only blocker - deferred until there is enough test coverage to make a React major safe.

No future flags were needed: the data-router flags don't apply to , all links under the /admin-dashboard/* splat are absolute, and every React.lazy call is at module scope.

Breaking for consumers passing additionalRoutes - they must move to react-router 7 too.

@gnugomez
gnugomez requested a review from netomi July 27, 2026 08:35
@gnugomez
gnugomez force-pushed the gnugomez/main/upgrade-react-router branch from 76e6136 to 97e6128 Compare July 27, 2026 08:35
gnugomez added 2 commits July 27, 2026 11:05
Replace react-router-dom with react-router; v7 folds the DOM exports into
the main package. Also drops the stale @types/react-router-dom v5 typings.

Stops at 7.18.1 rather than v8: v8 requires react/react-dom 19.2.7+ and
this app is on React 18. Node 22.22 already meets v8's floor, so React is
the only blocker - deferred until there is enough test coverage to make a
React major safe.

No future flags were needed: the data-router flags don't apply to
<BrowserRouter>, all links under the /admin-dashboard/* splat are absolute,
and every React.lazy call is at module scope.

Breaking for consumers passing additionalRoutes - they must move to
react-router 7 too.

Assisted-By: anthropic:claude-opus-4-8[1m]
@gnugomez
gnugomez force-pushed the gnugomez/main/upgrade-react-router branch from 97e6128 to 6bddf3d Compare July 27, 2026 09:14
@gnugomez
gnugomez marked this pull request as ready for review July 27, 2026 09:15
@netomi
netomi merged commit cbef6da into eclipse-openvsx:main Jul 27, 2026
5 checks passed
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.

2 participants