chore: Update version for release #14141
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
nonce
prop toLinks
&PrefetchPageLinks
(#14048)loaderData
arguments/properties alongside existingdata
arguments/properties to provide consistency and clarity betweenloaderData
andactionData
across the board (#14047)Route.MetaArgs
,Route.MetaMatch
,MetaArgs
,MetaMatch
,Route.ComponentProps.matches
,UIMatch
@deprecated
warnings have been added to the existingdata
properties to point users to newloaderData
properties, in preparation for removing thedata
properties in a future major releasePatch Changes
[UNSTABLE] Ensure resource route errors go through
handleError
w/middleware enabled (#14078)[REMOVE] Few additional fixes for returning/throwing data from middleware - attach to Handle middlewares returning responses without calling next #14093 (#14128)
Prevent "Did not find corresponding fetcher result" console error when navigating during a
fetcher.submit
revalidation (#14114)Bubble client-side middleware errors prior to
next
to the appropriate ancestor error boundary (#14138)Switch Lazy Route Discovery manifest URL generation to usea standalone
URLSearchParams
instance instead ofURL.searchParams
to 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
next
function never throws and instead handles any middleware errors at the properErrorBoundary
and returns theResponse
up through the ancestornext
function (#14118)context
parameter 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_respond
API instaticHandler.query
/staticHandler.queryRoute
(#14103)unstable_generateMiddlewareResponse
for clarityunstable_respond
and handing you the result, we now pass aquery
/queryRoute
function as a parameter and you execute the loaders/actions inside your callback, giving you full access to pre-processing and error handlingquery
version of the API now has a signature of(query: (r: Request) => Promise<StaticHandlerContext | Response>) => Promise<Response>
queryRoute
version of the API now has a signature of(queryRoute: (r: Request) => Promise<Response>) => Promise<Response>
query
and direct error handling of errors thrown from querystaticHandler
unstable_respond
API[UNSTABLE] Convert internal middleware implementations to use the new
unstable_generateMiddlewareResponse
API (#14103)Adjust internal RSC usage of
React.use
to avoid Webpack compilation errors when using React 18 (#14113)[UNSTABLE] Change
getLoadContext
signature (type GetLoadContextFunction
) whenfuture.unstable_middleware
is enabled so that it returns anunstable_RouterContextProvider
instance instead of aMap
used to contruct the instance internally (#14097)type unstable_InitialContext
exportgetLoadContext
functionRemove dependency on
@types/node
in TypeScript declaration files (#14059)Fix types for
UIMatch
to reflect that theloaderData
/data
properties may beundefined
(#12206)ErrorBoundary
is being rendered, not all active matches will have loader data available, since it may have been theirloader
that threw to trigger the boundaryUIMatch.data
type was not correctly handing this and would always reflect the presence of data, leading to the unexpected runtime errors when anErrorBoundary
was renderedmatch.data
accesses - you should properly guard forundefined
values in those scenarios.[UNSTABLE] Run client middleware on client navigations even if no loaders exist (#14106)
[UNSTABLE] Change the
unstable_getContext
signature onRouterProvider
/HydratedRouter
/unstable_RSCHydratedRouter
so that it returns anunstable_RouterContextProvider
instance instead of aMap
used to contruct the instance internally (#14097)unstable_getContext
propproxy server action side-effect redirects from actions for document and callServer requests (#14131)
Fix RSC Data Mode issue where routes that return
false
fromshouldRevalidate
would be replaced by an<Outlet />
(#14071)@react-router/[email protected]
Patch Changes
[UNSTABLE] Change
getLoadContext
signature (type GetLoadContextFunction
) whenfuture.unstable_middleware
is enabled so that it returns anunstable_RouterContextProvider
instance instead of aMap
used to contruct the instance internally (#14097)type unstable_InitialContext
exportgetLoadContext
functionUpdated dependencies:
[email protected]
@react-router/[email protected]
@react-router/[email protected]
Patch Changes
[UNSTABLE] Change
getLoadContext
signature (type GetLoadContextFunction
) whenfuture.unstable_middleware
is enabled so that it returns anunstable_RouterContextProvider
instance instead of aMap
used to contruct the instance internally (#14097)type unstable_InitialContext
exportgetLoadContext
functionUpdated 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
getLoadContext
signature (type GetLoadContextFunction
) whenfuture.unstable_middleware
is enabled so that it returns anunstable_RouterContextProvider
instance instead of aMap
used to contruct the instance internally (#14097)type unstable_InitialContext
exportgetLoadContext
functionUpdated 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
getLoadContext
signature (type GetLoadContextFunction
) whenfuture.unstable_middleware
is enabled so that it returns anunstable_RouterContextProvider
instance instead of aMap
used to contruct the instance internally (#14097)type unstable_InitialContext
exportgetLoadContext
functionUpdated 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]