chore: Update version for release (pre) #13637
Merged
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-next, this PR will be updated.
release-nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonrelease-next.Releases
react-router@7.6.1-pre.0
Patch Changes
Update
Route.MetaArgsto reflect thatdatacan be potentiallyundefined(#13563)This is primarily for cases where a route
loaderthrew an error to it's ownErrorBoundary. but it also arises in the case of a 404 which renders the rootErrorBoundary/metabut the root loader did not run because not routes matched.Partially revert optimization added in
7.1.4to reduce calls tomatchRoutesbecause it surfaced other issues (#13562)Fix typegen when same route is used at multiple paths (#13574)
For example,
routes/route.tsxis used at 4 different paths here:Previously, typegen would arbitrarily pick one of these paths to be the "winner" and generate types for the route module based on that path.
Now, typegen creates unions as necessary for alternate paths for the same route file.
Better types for
params(#13543)For example:
Previously,
paramsforroutes/routewere calculated as{ p: string, r: string }.This incorrectly ignores params that could come from child routes.
If visiting
/parent/1/route/2/child1/3/4, the actual params passed toroutes/routewill have a type of{ p: string, r: string, c1a: string, c1b: string }.Now,
paramsare aware of child routes and autocompletion will include child params as optionals:You can also narrow the types for
paramsas it is implemented as a normalized union of params for each page that includesroutes/route:UNSTABLE: renamed internal
react-router/route-moduleexport toreact-router/internalUNSTABLE: removed
Infoexport from generated+types/*filesAvoid initial fetcher execution 404 error when Lazy Route Discovery is interrupted by a navigation (#13564)
Remove hashes from files in
dist/for easier usage withpatch-package(#13567)href replaces splats
*(#13593)@react-router/architect@7.6.1-pre.0
Patch Changes
@architect/functionsfrom^5.2.0to^7.0.0(#13556)react-router@7.6.1-pre.0@react-router/node@7.6.1-pre.0@react-router/cloudflare@7.6.1-pre.0
Patch Changes
react-router@7.6.1-pre.0@react-router/dev@7.6.1-pre.0
Patch Changes
Prevent typegen with route files are outside the app directory (#12996)
Fix typegen when same route is used at multiple paths (#13574)
For example,
routes/route.tsxis used at 4 different paths here:Previously, typegen would arbitrarily pick one of these paths to be the "winner" and generate types for the route module based on that path.
Now, typegen creates unions as necessary for alternate paths for the same route file.
Add additional logging to
buildcommand output when cleaning assets from server build (#13547)Better types for
params(#13543)For example:
Previously,
paramsforroutes/routewere calculated as{ p: string, r: string }.This incorrectly ignores params that could come from child routes.
If visiting
/parent/1/route/2/child1/3/4, the actual params passed toroutes/routewill have a type of{ p: string, r: string, c1a: string, c1b: string }.Now,
paramsare aware of child routes and autocompletion will include child params as optionals:You can also narrow the types for
paramsas it is implemented as a normalized union of params for each page that includesroutes/route:UNSTABLE: renamed internal
react-router/route-moduleexport toreact-router/internalUNSTABLE: removed
Infoexport from generated+types/*files[UNSTABLE] Normalize dirent entry path across node versions when generating SRI manifest (#13591)
Don't clean assets from server build when
build.ssrEmitAssetshas been enabled in Vite config (#13547)Fix
hreffor optional segments (#13595)Type generation now expands paths with optionals into their corresponding non-optional paths.
For example, the path
/user/:id?gets expanded into/userand/user/:idto more closely model visitable URLs.hrefthen uses these expanded (non-optional) paths to construct type-safe paths for your app:This becomes even more important for static optional paths where there wasn't a good way to indicate whether the optional should be included in the resulting path:
Updated dependencies:
react-router@7.6.1-pre.0@react-router/node@7.6.1-pre.0@react-router/serve@7.6.1-pre.0react-router-dom@7.6.1-pre.0
Patch Changes
react-router@7.6.1-pre.0@react-router/express@7.6.1-pre.0
Patch Changes
react-router@7.6.1-pre.0@react-router/node@7.6.1-pre.0@react-router/fs-routes@7.6.1-pre.0
Patch Changes
@react-router/dev@7.6.1-pre.0@react-router/node@7.6.1-pre.0
Patch Changes
react-router@7.6.1-pre.0@react-router/remix-routes-option-adapter@7.6.1-pre.0
Patch Changes
@react-router/dev@7.6.1-pre.0@react-router/serve@7.6.1-pre.0
Patch Changes
react-router@7.6.1-pre.0@react-router/node@7.6.1-pre.0@react-router/express@7.6.1-pre.0create-react-router@7.6.1-pre.0