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-next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onrelease-next
.Releases
[email protected]
Patch Changes
Update
Route.MetaArgs
to reflect thatdata
can be potentiallyundefined
(#13563)This is primarily for cases where a route
loader
threw an error to it's ownErrorBoundary
. but it also arises in the case of a 404 which renders the rootErrorBoundary
/meta
but the root loader did not run because not routes matched.Partially revert optimization added in
7.1.4
to reduce calls tomatchRoutes
because it surfaced other issues (#13562)Fix typegen when same route is used at multiple paths (#13574)
For example,
routes/route.tsx
is 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,
params
forroutes/route
were 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/route
will have a type of{ p: string, r: string, c1a: string, c1b: string }
.Now,
params
are aware of child routes and autocompletion will include child params as optionals:You can also narrow the types for
params
as it is implemented as a normalized union of params for each page that includesroutes/route
:UNSTABLE: renamed internal
react-router/route-module
export toreact-router/internal
UNSTABLE: removed
Info
export 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/[email protected]
Patch Changes
@architect/functions
from^5.2.0
to^7.0.0
(#13556)[email protected]
@react-router/[email protected]
@react-router/[email protected]
Patch Changes
[email protected]
@react-router/[email protected]
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.tsx
is 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
build
command output when cleaning assets from server build (#13547)Better types for
params
(#13543)For example:
Previously,
params
forroutes/route
were 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/route
will have a type of{ p: string, r: string, c1a: string, c1b: string }
.Now,
params
are aware of child routes and autocompletion will include child params as optionals:You can also narrow the types for
params
as it is implemented as a normalized union of params for each page that includesroutes/route
:UNSTABLE: renamed internal
react-router/route-module
export toreact-router/internal
UNSTABLE: removed
Info
export 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.ssrEmitAssets
has been enabled in Vite config (#13547)Fix
href
for 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/user
and/user/:id
to more closely model visitable URLs.href
then 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:
[email protected]
@react-router/[email protected]
@react-router/[email protected]
[email protected]
Patch Changes
[email protected]
@react-router/[email protected]
Patch Changes
[email protected]
@react-router/[email protected]
@react-router/[email protected]
Patch Changes
@react-router/[email protected]
@react-router/[email protected]
Patch Changes
[email protected]
@react-router/[email protected]
Patch Changes
@react-router/[email protected]
@react-router/[email protected]
Patch Changes
[email protected]
@react-router/[email protected]
@react-router/[email protected]
[email protected]