Sourced from react-router's releases.
v7.8.2
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v782
v7.8.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v781
v7.8.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v780
Sourced from react-router's changelog.
7.8.2
Patch Changes
[UNSTABLE] Remove Data Mode
future.unstable_middlewareflag fromcreateBrowserRouter(#14213)
- This is only needed as a Framework Mode flag because of the route modules and the
getLoadContexttype behavior change- In Data Mode, it's an opt-in feature because it's just a new property on a route object, so there's no behavior changes that necessitate a flag
[UNSTABLE] Add
<RouterProvider unstable_onError>/<HydratedRouter unstable_onError>prop for client side error reporting (#14162)server action revalidation opt out via $SKIP_REVALIDATION field (#14154)
Properly escape interpolated param values in
generatePath()(#13530)Maintain
ReadonlyMapandReadonlySettypes in server response data. (#13092)[UNSTABLE] Delay serialization of
.dataredirects to 202 responses until after middleware chain (#14205)Fix
TypeErrorif you throw frompatchRoutesOnNavigationwhen no partial matches exist (#14198)Fix
basenameusage without a leading slash in data routers (#11671)[UNSTABLE] Update client middleware so it returns the data strategy results allowing for more advanced post-processing middleware (#14151)
7.8.1
Patch Changes
- Fix usage of optional path segments in nested routes defined using absolute paths (#14135)
- Bubble client pre-next middleware error to the shallowest ancestor that needs to load, not strictly the shallowest ancestor with a loader (#14150)
- Fix optional static segment matching in
matchPath(#11813)- Fix prerendering when a
basenameis set withssr:false(#13791)- Provide
isRouteErrorResponseutility inreact-serverenvironments (#14166)- Propagate non-redirect Responses thrown from middleware to the error boundary on document/data requests (#14182)
- Handle
metaandlinksRoute Exports in RSC Data Mode (#14136)- Properly convert returned/thrown
data()values toResponseinstances viaResponse.json()in resource routes and middleware (#14159, #14181)7.8.0
Minor Changes
- Add
nonceprop toLinks&PrefetchPageLinks(#14048)- Add
loaderDataarguments/properties alongside existingdataarguments/properties to provide consistency and clarity betweenloaderDataandactionDataacross the board (#14047)
- Updated types:
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
- Prevent "Did not find corresponding fetcher result" console error when navigating during a
fetcher.submitrevalidation (#14114)
... (truncated)
eade1de
chore: Update version for release (#14223)27eed3a
chore: Update version for release (pre) (#14214)935fb25
fix(react-router/router): remove unused client side middleware future
flag (#...bebb46c
feat(react-router): server action revalidation opt out via
`$SKIP_REVALIDATIO...d10c7ef
Update missed type for clientMiddleware (#14212)ef3016c
chore: Update version for release (pre) (#14211)4dfb883
Delay turbo-stream serialization of .data redirects (#14205)e9a17ed
feat(react-router): add unstable_onError prop to
RouterProvider for clien...06519e2
Serialize ReadonlyMap and ReadonlySet types (#13092)d7eb048
chore: format