chore: Update version for release (pre) #13011
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
@react-router/[email protected]
Minor Changes
Generate a "SPA fallback" HTML file for scenarios where applications are prerendering the
/
route withssr:false
(#12948)ssr:false
without aprerender
config, this is considered "SPA Mode" and the generatedindex.html
file will only render down to the root route and will be able to hydrate for any valid application pathssr:false
with aprerender
config but do not include the/
path (i.e.,prerender: ['/blog/post']
), then we still generate a "SPA Mode"index.html
file that can hydrate for any path in the applicationssr:false
and included the/
path in yourprerender
config, we would prerender the/
route intoindex.html
as a non-SPA page__spa-fallback.html
that will allow you to hydrate for any non-prerendered pathsssr:false
app and serve the others as a SPAnpx sirv-cli build/client --single __spa-fallback.html
loader
in the root route in SPA mode because it can be called/server-rendered at build time (#12948)Route.HydrateFallbackProps
now also receivesloaderData
HydrateFallback
is rendering while children routes are loadingundefined
if theHydrateFallback
is rendering because the route has it's own hydratingclientLoader
index.html
Patch Changes
Handle custom
envDir
in Vite config (#12969)Fix CLI parsing to allow argumentless
npx react-router
usage (#12925)Skip action-only resource routes when using
prerender:true
(#13004)Enhance invalid export detection when using
ssr:false
(#12948)headers
/action
are prohibited in all routes withssr:false
because there will be no runtime server on which to run themloader
functions are more nuanced and depend on whether a given route is prerenderedssr:false
without aprerender
config, only theroot
route can have aloader
index.html
file with the root routeHydrateFallback
so it is capable of hydrating for any path in your application - therefore we can only call a root routeloader
at build timessr:false
with aprerender
config, you can export aloader
from routes matched by one of theprerender
paths because those routes will be server rendered at build timeloader
from a route that is never matched by aprerender
path will throw a build time error because there will be no runtime server to ever run the loaderLimit prerendered resource route
.data
files to only the target route (#13004)Add unstable support for splitting route modules in framework mode via
future.unstable_splitRouteModules
(#11871)Add
future.unstable_viteEnvironmentApi
flag to enable experimental Vite Environment API support (#12936)Disable Lazy Route Discovery for all
ssr:false
apps and not just "SPA Mode" because there is no runtime server to serve the search-param-configured__manifest
requests (#12894)ssr:false
and noprerender
config but we realized it should apply to allssr:false
apps, including those prerendering multiple pagesprerender
scenarios we would prerender the/__manifest
file assuming the static file server would serve it but that makes some unneccesary assumptions about the static file server behaviorsUpdated dependencies:
[email protected]
@react-router/[email protected]
@react-router/[email protected]
[email protected]
Patch Changes
Don't apply Single Fetch revalidation de-optimization when in SPA mode since there is no server HTTP request (#12948)
Add unstable support for splitting route modules in framework mode via
future.unstable_splitRouteModules
(#11871)Align dev server behavior with static file server behavior when
ssr:false
is set (#12948)prerender
config exists, only SSR down to the rootHydrateFallback
(SPA Mode)prerender
config exists but the current path is not prerendered, only SSR down to the rootHydrateFallback
(SPA Fallback).data
requests to non-pre-rendered pathsImprove prefetch performance of CSS side effects in framework mode (#12889)
Disable Lazy Route Discovery for all
ssr:false
apps and not just "SPA Mode" because there is no runtime server to serve the search-param-configured__manifest
requests (#12894)ssr:false
and noprerender
config but we realized it should apply to allssr:false
apps, including those prerendering multiple pagesprerender
scenarios we would prerender the/__manifest
file assuming the static file server would serve it but that makes some unneccesary assumptions about the static file server behaviorsProperly handle interrupted manifest requests in lazy route discovery (#12915)
@react-router/[email protected]
Patch Changes
[email protected]
@react-router/[email protected]
@react-router/[email protected]
Patch Changes
[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]