chore: Update version for release #13561
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.
Releases
[email protected]
Minor Changes
Added a new
react-router.config.tsrouteDiscoveryoption to configure Lazy Route Discovery behavior. (#13451)/__manifestpath:routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }routeDiscovery: { mode: "lazy", manifestPath: "/custom-manifest" }routeDiscovery: { mode: "initial" }Add support for route component props in
createRoutesStub. This allows you to unit test your route components using the props instead of the hooks: (#13528)Patch Changes
Fix
react-routermodule augmentation forNodeNext(#13498)Don't bundle
react-routerinreact-router/domCJS export (#13497)Fix bug where a submitting
fetcherwould get stuck in aloadingstate if a revalidatingloaderredirected (#12873)Fix hydration error if a server
loaderreturnedundefined(#13496)Fix initial load 404 scenarios in data mode (#13500)
Stabilize
useRevalidator'srevalidatefunction (#13542)Preserve status code if a
clientActionthrows adata()result in framework mode (#13522)Be defensive against leading double slashes in paths to avoid
Invalid URLerrors from the URL constructor (#13510)new URL("//", window.location.origin)Remove
Navigatordeclaration fornavigator.connection.saveDatato avoid messing with any other types beyondsaveDatain userland (#13512)Fix
handleErrorparamsvalues on.datarequests for routes with a dynamic param as the last URL segment (#13481)Don't trigger an
ErrorBoundaryUI before the reload when we detect a manifest verison mismatch in Lazy Route Discovery (#13480)Inline
[email protected]dependency and fix decoding ordering of Map/Set instances (#13518)Only render dev warnings in DEV mode (#13461)
UNSTABLE: Fix a few bugs with error bubbling in middleware use-cases (#13538)
Short circuit post-processing on aborted
dataStrategyrequests (#13521)Cannot read properties of undefined (reading 'result')@react-router/[email protected]
Minor Changes
Added a new
react-router.config.tsrouteDiscoveryoption to configure Lazy Route Discovery behavior. (#13451)/__manifestpath:routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }routeDiscovery: { mode: "lazy", manifestPath: "/custom-manifest" }routeDiscovery: { mode: "initial" }Automatic types for future flags (#13506)
Some future flags alter the way types should work in React Router.
Previously, you had to remember to manually opt-in to the new types.
For example, for
unstable_middleware:It was up to you to keep the runtime future flags synced with the types for those future flags.
This was confusing and error-prone.
Now, React Router will automatically enable types for future flags.
That means you only need to specify the runtime future flag:
Behind the scenes, React Router will generate the corresponding
declare moduleinto.react-router/types.Currently this is done in
.react-router/types/+register.tsbut this is an implementation detail that may change in the future.Patch Changes
Support project root directories without a
package.jsonif it exists in a parent directory (#13472)When providing a custom Vite config path via the CLI
--config/-cflag, default the project root directory to the directory containing the Vite config when not explicitly provided (#13472)In a
routes.tscontext, ensure the--modeflag is respected forimport.meta.env.MODE(#13485)Previously,
import.meta.env.MODEwithin aroutes.tscontext was always"development"for thedevandtypegen --watchcommands, but otherwise resolved to"production". These defaults are still in place, but if a--modeflag is provided, this will now take precedence.Ensure consistent project root directory resolution logic in CLI commands (#13472)
When executing
react-router.config.tsandroutes.tswithvite-node, ensure that PostCSS config files are ignored (#13489)When extracting critical CSS during development, ensure it's loaded from the client environment to avoid issues with plugins that handle the SSR environment differently (#13503)
When
future.unstable_viteEnvironmentApiis enabled, ensure thatbuild.assetsDirin Vite config is respected whenenvironments.client.build.assetsDiris not configured (#13491)Fix "Status message is not supported by HTTP/2" error during dev when using HTTPS (#13460)
Update config when
react-router.config.tsis created or deleted during development. (#12319)Skip unnecessary
routes.tsevaluation before Vite build is started (#13513)Fix
TS2300: Duplicate identifiererrors caused by generated types (#13499)Previously, routes that had the same full path would cause duplicate entries in the generated types for
href(.react-router/types/+register.ts), causing type checking errors.Updated dependencies:
[email protected]@react-router/[email protected]@react-router/[email protected]@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]