Skip to content

Commit a569d76

Browse files
chore: Update version for release (#11717)
1 parent 3b6abbb commit a569d76

File tree

16 files changed

+36
-71
lines changed

16 files changed

+36
-71
lines changed

.changeset/fog-of-war.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.changeset/gorgeous-geese-sit.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pre.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.changeset/smooth-sloths-exist.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
1515
- [React Router Releases](#react-router-releases)
1616
- [v6.24.0](#v6240)
1717
- [What's Changed](#whats-changed)
18-
- [Lazy Route Discovery (a.k.a. Fog of War)](#lazy-route-discovery-aka-fog-of-war)
18+
- [Lazy Route Discovery (a.k.a. "Fog of War")](#lazy-route-discovery-aka-fog-of-war)
1919
- [Minor Changes](#minor-changes)
2020
- [Patch Changes](#patch-changes)
2121
- [v6.23.1](#v6231)
@@ -86,7 +86,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
8686
- [Patch Changes](#patch-changes-19)
8787
- [v6.13.0](#v6130)
8888
- [What's Changed](#whats-changed-8)
89-
- [v7_startTransition](#v7_starttransition)
89+
- [v7\_startTransition](#v7_starttransition)
9090
- [Minor Changes](#minor-changes-11)
9191
- [Patch Changes](#patch-changes-20)
9292
- [v6.12.1](#v6121)
@@ -106,7 +106,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
106106
- [v6.10.0](#v6100)
107107
- [What's Changed](#whats-changed-10)
108108
- [Minor Changes](#minor-changes-14)
109-
- [future.v7_normalizeFormMethod](#futurev7_normalizeformmethod)
109+
- [future.v7\_normalizeFormMethod](#futurev7_normalizeformmethod)
110110
- [Patch Changes](#patch-changes-26)
111111
- [v6.9.0](#v690)
112112
- [What's Changed](#whats-changed-11)
@@ -193,15 +193,15 @@ Date: YYYY-MM-DD
193193

194194
## v6.24.0
195195

196-
Date: 2024-06-18
196+
Date: 2024-06-24
197197

198198
### What's Changed
199199

200-
#### Lazy Route Discovery (a.k.a. Fog of War)
200+
#### Lazy Route Discovery (a.k.a. "Fog of War")
201201

202-
We're really excited to release our new API for "Lazy Route Discovery" in v6.24.0! For some background information, please check out the original [RFC](https://github.com/remix-run/react-router/discussions/11113). The tl;dr; is that ever since we introduced the Data APIs in v6.4 via `<RouterProvider>`, we've been a little bummed that one of the tradeoffs was the lack of a compelling code-splitting story mirroring what we had in the `<BrowserRouter>`/`<Routes>` apps. We took a baby-step towards improving that story with `route.lazy` in v6.9, but with v6.24 we've gone the rest of the way.
202+
We're really excited to release our new API for "Lazy Route Discovery" in `v6.24.0`! For some background information, please check out the original [RFC](https://github.com/remix-run/react-router/discussions/11113). The **tl;dr;** is that ever since we introduced the Data APIs in v6.4 via `<RouterProvider>`, we've been a little bummed that one of the tradeoffs was the lack of a compelling code-splitting story mirroring what we had in the `<BrowserRouter>`/`<Routes>` apps. We took a baby-step towards improving that story with `route.lazy` in `v6.9.0`, but with `v6.24.0` we've gone the rest of the way.
203203

204-
With 6.24, you can now load portions of the route tree lazily via the new `unstable_patchRoutesOnMiss` option passed to `createBrowserRouter` (and it's memory/hash counterparts). This gives you a way to hook into spots where React Router is unable to match a given path and patch new routes into the route tree during the navigation (or fetcher call).
204+
With "Fog of War", you can now load portions of the route tree lazily via the new `unstable_patchRoutesOnMiss` option passed to `createBrowserRouter` (and it's memory/hash counterparts). This gives you a way to hook into spots where React Router is unable to match a given path and patch new routes into the route tree during the navigation (or fetcher call).
205205

206206
Here's a very small example, but please refer to the [documentation](https://reactrouter.com/en/main/routers/create-browser-router#unstable_patchroutesonmiss) for more information and use cases:
207207

@@ -229,7 +229,7 @@ const router = createBrowserRouter(
229229

230230
### Minor Changes
231231

232-
- Add support for Lazy Route Discovery (a.k.a. Fog of War) ([#11626](https://github.com/remix-run/react-router/pull/11626))
232+
- Add support for Lazy Route Discovery (a.k.a. "Fog of War") ([#11626](https://github.com/remix-run/react-router/pull/11626))
233233

234234
### Patch Changes
235235

docs/routers/create-browser-router.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ const router = createBrowserRouter(
430430
async unstable_patchRoutesOnMiss({ path, patch }) {
431431
if (path === "/a") {
432432
// Load/patch the `a` route as a child of the route with id `root`
433-
let route = await getARoute(); // { path: 'a', Component: A }
433+
let route = await getARoute();
434+
// ^ { path: 'a', Component: A }
434435
patch("root", [route]);
435436
}
436437
},
@@ -456,8 +457,9 @@ const router = createBrowserRouter(
456457
{
457458
async unstable_patchRoutesOnMiss({ path, patch }) {
458459
if (path === "/root-sibling") {
459-
// Load/patch the `/sibling` route at the top
460-
let route = await getRootSiblingRoute(); // { path: '/sibling', Component: Sibling }
460+
// Load/patch the `/root-sibling` route as a sibling of the root route
461+
let route = await getRootSiblingRoute();
462+
// ^ { path: '/root-sibling', Component: RootSibling }
461463
patch(null, [route]);
462464
}
463465
},

packages/react-router-dom-v5-compat/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# `react-router-dom-v5-compat`
22

3-
## 6.24.0-pre.0
3+
## 6.24.0
44

55
### Patch Changes
66

77
- Allow falsy `location.state` values passed to `<StaticRouter>` ([#11495](https://github.com/remix-run/react-router/pull/11495))
88
- Updated dependencies:
9-
10-
11-
- `@remix-run/[email protected]-pre.0`
9+
10+
11+
- `@remix-run/[email protected]`
1212

1313
## 6.23.1
1414

packages/react-router-dom-v5-compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom-v5-compat",
3-
"version": "6.24.0-pre.0",
3+
"version": "6.24.0",
44
"description": "Migration path to React Router v6 from v4/5",
55
"keywords": [
66
"react",

packages/react-router-dom/CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# `react-router-dom`
22

3-
## 6.24.0-pre.0
3+
## 6.24.0
44

55
### Minor Changes
66

77
- Add support for Lazy Route Discovery (a.k.a. Fog of War) ([#11626](https://github.com/remix-run/react-router/pull/11626))
88

9-
- RFC: https://github.com/remix-run/react-router/discussions/11113
10-
- `unstable_patchRoutesOnMiss` docs: https://reactrouter.com/en/main/routers/create-browser-router
9+
- RFC: <https://github.com/remix-run/react-router/discussions/11113>
10+
- `unstable_patchRoutesOnMiss` docs: <https://reactrouter.com/en/main/routers/create-browser-router>
1111

1212
### Patch Changes
1313

1414
- Fix `fetcher.submit` types - remove incorrect `navigate`/`fetcherKey`/`unstable_viewTransition` options because they are only relevant for `useSubmit` ([#11631](https://github.com/remix-run/react-router/pull/11631))
1515
- Allow falsy `location.state` values passed to `<StaticRouter>` ([#11495](https://github.com/remix-run/react-router/pull/11495))
1616
- Updated dependencies:
17-
18-
- `@remix-run/[email protected]-pre.0`
17+
18+
- `@remix-run/[email protected]`
1919

2020
## 6.23.1
2121

packages/react-router-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom",
3-
"version": "6.24.0-pre.0",
3+
"version": "6.24.0",
44
"description": "Declarative routing for React web applications",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)