Sourced from react-router's releases.
v7.5.2
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v752
v7.5.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v751
v7.5.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v750
v7.4.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v741
v7.4.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v740
v7.3.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v730
v6.30.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6300
v7.2.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v720
v.7.1.5
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v715
v7.1.4
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v714
v6.29.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6290
v7.1.3
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v713
v7.1.2
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v712
v6.28.2
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6282
v7.1.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v711
v7.1.0
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v710
v6.28.1
See the changelog for release notes: https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v6281
... (truncated)
Sourced from react-router's changelog.
7.5.2
Patch Changes
Update Single Fetch to also handle the 204 redirects used in
?_data
requests in Remix v2 (#13364)
- This allows applications to return a redirect on
.data
requests from outside the scope of React Router (i.e., anexpress
/hono
middleware)- ⚠️ Please note that doing so relies on implementation details that are subject to change without a SemVer major release
- This is primarily done to ease upgrading to Single Fetch for existing Remix v2 applications, but the recommended way to handle this is redirecting from a route middleware
Adjust approach for Prerendering/SPA Mode via headers (#13453)
7.5.1
Patch Changes
Fix single fetch bug where no revalidation request would be made when navigating upwards to a reused parent route (#13253)
When using the object-based
route.lazy
API, theHydrateFallback
andhydrateFallbackElement
properties are now skipped when lazy loading routes after hydration. (#13376)If you move the code for these properties into a separate file, you can use this optimization to avoid downloading unused hydration code. For example:
createBrowserRouter([ { path: "/show/:showId", lazy: { loader: async () => (await import("./show.loader.js")).loader, Component: async () => (await import("./show.component.js")).Component, HydrateFallback: async () => (await import("./show.hydrate-fallback.js")).HydrateFallback, }, }, ]);
Properly revalidate prerendered paths when param values change (#13380)
UNSTABLE: Add a new
unstable_runClientMiddleware
argument todataStrategy
to enable middleware execution in customdataStrategy
implementations (#13395)UNSTABLE: Add better error messaging when
getLoadContext
is not updated to return aMap
" (#13242)Do not automatically add
null
tostaticHandler.query()
context.loaderData
if routes do not have loaders (#13223)
- This was a Remix v2 implementation detail inadvertently left in for React Router v7
- Now that we allow returning
undefined
from loaders, our prior check ofloaderData[routeId] !== undefined
was no longer sufficient and was changed to arouteId in loaderData
check - thesenull
values can cause issues for this new check- ⚠️ This could be a "breaking bug fix" for you if you are doing manual SSR with
createStaticHandler()
/<StaticRouterProvider>
, and usingcontext.loaderData
to control<RouterProvider>
hydration behavior on the clientFix prerendering when a loader returns a redirect (#13365)
... (truncated)
5819e0c
chore: Update version for release (#13456)d0cac33
chore: Update version for release (pre) (#13454)c843029
Adjust approach for prerendering/SPA mode via headers (#13453)8e4963f
Restore handling of 204 "soft" redirects on data requests (#13364)ed77157
update session documentation links (#13448)4281172
Missed refactor updatesb166e48
Minor refactors to support RSC (#13423)5dd7c15
chore: Update version for release (#13422)6ce4a79
chore: Update version for release (pre) (#13412)cd5681b
Slight refactor of fetchAndDecode for RSC (#13409)