chore: Update version for release (pre) #14127
Merged
+201
−12
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
[email protected]
Minor Changes
nonceprop toLinks&PrefetchPageLinks(#14048)loaderDataarguments/properties alongside existingdataarguments/properties to provide consistency and clarity betweenloaderDataandactionDataacross the board (#14047)Route.MetaArgs,Route.MetaMatch,MetaArgs,MetaMatch,Route.ComponentProps.matches,UIMatch@deprecatedwarnings have been added to the existingdataproperties to point users to newloaderDataproperties, in preparation for removing thedataproperties in a future major releasePatch Changes
[UNSTABLE] Ensure resource route errors go through
handleErrorw/middleware enabled (#14078)Prevent "Did not find corresponding fetcher result" console error when navigating during a
fetcher.submitrevalidation (#14114)Switch Lazy Route Discovery manifest URL generation to usea standalone
URLSearchParamsinstance instead ofURL.searchParamsto avoid a major performance bottleneck in Chrome (#14084)[UNSTABLE] Propagate returned Response from server middleware if next wasn't called (#14093)
[UNSTABLE] Allow server middlewares to return
data()values which will be converted into aResponse(#14093)[UNSTABLE] Update middleware error handling so that the
nextfunction never throws and instead handles any middleware errors at the properErrorBoundaryand returns theResponseup through the ancestornextfunction (#14118)contextparameter read-only (viaReadonly<unstable_RouterContextProvider>) so that TypeScript will not allow you to write arbitrary fields to it in loaders, actions, or middleware. (#14097)[UNSTABLE] Rename and alter the signature/functionality of the
unstable_respondAPI instaticHandler.query/staticHandler.queryRoute(#14103)unstable_generateMiddlewareResponsefor clarityunstable_respondand handing you the result, we now pass aquery/queryRoutefunction as a parameter and you execute the loaders/actions inside your callback, giving you full access to pre-processing and error handlingqueryversion of the API now has a signature of(query: (r: Request) => Promise<StaticHandlerContext | Response>) => Promise<Response>queryRouteversion of the API now has a signature of(queryRoute: (r: Request) => Promise<Response>) => Promise<Response>queryand direct error handling of errors thrown from querystaticHandlerunstable_respondAPI[UNSTABLE] Convert internal middleware implementations to use the new
unstable_generateMiddlewareResponseAPI (#14103)Adjust internal RSC usage of
React.useto avoid Webpack compilation errors when using React 18 (#14113)[UNSTABLE] Change
getLoadContextsignature (type GetLoadContextFunction) whenfuture.unstable_middlewareis enabled so that it returns anunstable_RouterContextProviderinstance instead of aMapused to contruct the instance internally (#14097)type unstable_InitialContextexportgetLoadContextfunctionRemove dependency on
@types/nodein TypeScript declaration files (#14059)Fix types for
UIMatchto reflect that theloaderData/dataproperties may beundefined(#12206)ErrorBoundaryis being rendered, not all active matches will have loader data available, since it may have been theirloaderthat threw to trigger the boundaryUIMatch.datatype was not correctly handing this and would always reflect the presence of data, leading to the unexpected runtime errors when anErrorBoundarywas renderedmatch.dataaccesses - you should properly guard forundefinedvalues in those scenarios.[UNSTABLE] Run client middleware on client navigations even if no loaders exist (#14106)
[UNSTABLE] Change the
unstable_getContextsignature onRouterProvider/HydratedRouter/unstable_RSCHydratedRouterso that it returns anunstable_RouterContextProviderinstance instead of aMapused to contruct the instance internally (#14097)unstable_getContextpropFix RSC Data Mode issue where routes that return
falsefromshouldRevalidatewould be replaced by an<Outlet />(#14071)@react-router/[email protected]
Patch Changes
[UNSTABLE] Change
getLoadContextsignature (type GetLoadContextFunction) whenfuture.unstable_middlewareis enabled so that it returns anunstable_RouterContextProviderinstance instead of aMapused to contruct the instance internally (#14097)type unstable_InitialContextexportgetLoadContextfunctionUpdated dependencies:
[email protected]@react-router/[email protected]@react-router/[email protected]
Patch Changes
[UNSTABLE] Change
getLoadContextsignature (type GetLoadContextFunction) whenfuture.unstable_middlewareis enabled so that it returns anunstable_RouterContextProviderinstance instead of aMapused to contruct the instance internally (#14097)type unstable_InitialContextexportgetLoadContextfunctionUpdated dependencies:
[email protected]@react-router/[email protected]
Patch Changes
[email protected]@react-router/[email protected]@react-router/[email protected][email protected]
Patch Changes
[email protected]@react-router/[email protected]
Patch Changes
[UNSTABLE] Change
getLoadContextsignature (type GetLoadContextFunction) whenfuture.unstable_middlewareis enabled so that it returns anunstable_RouterContextProviderinstance instead of aMapused to contruct the instance internally (#14097)type unstable_InitialContextexportgetLoadContextfunctionUpdated dependencies:
[email protected]@react-router/[email protected]@react-router/[email protected]
Patch Changes
@react-router/[email protected]@react-router/[email protected]
Patch Changes
[UNSTABLE] Change
getLoadContextsignature (type GetLoadContextFunction) whenfuture.unstable_middlewareis enabled so that it returns anunstable_RouterContextProviderinstance instead of aMapused to contruct the instance internally (#14097)type unstable_InitialContextexportgetLoadContextfunctionUpdated dependencies:
[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]