Repository navigation
Update react-router w/ npm auto-update - #2224
Merged
MattIPv4 merged 2 commits intoNov 19, 2026
Merged
Conversation
niklhut
marked this pull request as ready for review
November 18, 2026 17:09
MattIPv4
reviewed
Nov 19, 2026
Comment on lines
+43
to
+46
| "lib/*.js", | ||
| "lib/*/*.js", | ||
| "lib/*/*/*.js", | ||
| "vendor/*/*.js" |
Member
There was a problem hiding this comment.
These feel really fragile, shame they don't ship a browser bundle anymore
MattIPv4
approved these changes
Nov 19, 2026
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.
react-router 8.x no longer ships
dist/umd, so the only fileMap entry,dist/umd/*.js?(.map), matches nothing for 8.5.2. 8.x ships unbundled ESM indist/production.fileMap:
dist/productionentry. It uses explicit depth patterns, not**.index.js,dom-export.js,route-pattern.jsandindex-react-server-client.js, pluslib/up to three levels deep andvendor/*/. That is 70 of the 71.jsfiles in 8.5.2. Every relative import in them resolves inside that set.index-react-server.jsis left out. It is the only file that importsnode:async_hooks..mjs(index.mjs,dom-export.mjs,index-react-server-client.mjs,chunk-*.mjs), so those are matched too. One fileMap covers every version, so 7.x also picks up its CommonJSindex.js,dom-export.jsandindex-react-server-client.js. Checked against 7.10.0 and 7.18.5.filenamechanges fromreact-router.production.min.jstoindex.js, the production entry of the.export in 8.5.2.The 8.x files import bare specifiers:
react,react-dom,cookie-es,@remix-run/route-patternandreact-routeritself. Using them from cdnjs needs an import map.ignoreVersions:0.0.0-*and*-pre*. The newest react-router on cdnjs is 7.9.3. Once the fileMap matches, every version npm published after it becomes a candidate: 188 in all, 150 of them0.0.0-nightly-*,0.0.0-experimental-*and-prebuilds. react-dom ignores0.0.0-*already. With both patterns, 38 stable releases remain (6.30.x, 7.9.4 to 7.18.5, 8.0.0 to 8.5.2). Checked with the bot's matcher against every version on npm.checker lintwas not run locally.beep-boop-niklas-agent-🤖