Skip to content

Commit

Permalink
chore: Update version for release (#11717)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 24, 2024
1 parent 3b6abbb commit a569d76
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 71 deletions.
10 changes: 0 additions & 10 deletions .changeset/fog-of-war.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-geese-sit.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/pre.json

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/smooth-sloths-exist.md

This file was deleted.

16 changes: 8 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
- [React Router Releases](#react-router-releases)
- [v6.24.0](#v6240)
- [What's Changed](#whats-changed)
- [Lazy Route Discovery (a.k.a. Fog of War)](#lazy-route-discovery-aka-fog-of-war)
- [Lazy Route Discovery (a.k.a. "Fog of War")](#lazy-route-discovery-aka-fog-of-war)
- [Minor Changes](#minor-changes)
- [Patch Changes](#patch-changes)
- [v6.23.1](#v6231)
Expand Down Expand Up @@ -86,7 +86,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
- [Patch Changes](#patch-changes-19)
- [v6.13.0](#v6130)
- [What's Changed](#whats-changed-8)
- [v7_startTransition](#v7_starttransition)
- [v7\_startTransition](#v7_starttransition)
- [Minor Changes](#minor-changes-11)
- [Patch Changes](#patch-changes-20)
- [v6.12.1](#v6121)
Expand All @@ -106,7 +106,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
- [v6.10.0](#v6100)
- [What's Changed](#whats-changed-10)
- [Minor Changes](#minor-changes-14)
- [future.v7_normalizeFormMethod](#futurev7_normalizeformmethod)
- [future.v7\_normalizeFormMethod](#futurev7_normalizeformmethod)
- [Patch Changes](#patch-changes-26)
- [v6.9.0](#v690)
- [What's Changed](#whats-changed-11)
Expand Down Expand Up @@ -193,15 +193,15 @@ Date: YYYY-MM-DD

## v6.24.0

Date: 2024-06-18
Date: 2024-06-24

### What's Changed

#### Lazy Route Discovery (a.k.a. Fog of War)
#### Lazy Route Discovery (a.k.a. "Fog of War")

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.
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.

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).
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).

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:

Expand Down Expand Up @@ -229,7 +229,7 @@ const router = createBrowserRouter(

### Minor Changes

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

### Patch Changes

Expand Down
8 changes: 5 additions & 3 deletions docs/routers/create-browser-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ const router = createBrowserRouter(
async unstable_patchRoutesOnMiss({ path, patch }) {
if (path === "/a") {
// Load/patch the `a` route as a child of the route with id `root`
let route = await getARoute(); // { path: 'a', Component: A }
let route = await getARoute();
// ^ { path: 'a', Component: A }
patch("root", [route]);
}
},
Expand All @@ -456,8 +457,9 @@ const router = createBrowserRouter(
{
async unstable_patchRoutesOnMiss({ path, patch }) {
if (path === "/root-sibling") {
// Load/patch the `/sibling` route at the top
let route = await getRootSiblingRoute(); // { path: '/sibling', Component: Sibling }
// Load/patch the `/root-sibling` route as a sibling of the root route
let route = await getRootSiblingRoute();
// ^ { path: '/root-sibling', Component: RootSibling }
patch(null, [route]);
}
},
Expand Down
8 changes: 4 additions & 4 deletions packages/react-router-dom-v5-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# `react-router-dom-v5-compat`

## 6.24.0-pre.0
## 6.24.0

### Patch Changes

- Allow falsy `location.state` values passed to `<StaticRouter>` ([#11495](https://github.com/remix-run/react-router/pull/11495))
- Updated dependencies:
- `react-router-dom@6.24.0-pre.0`
- `react-router@6.24.0-pre.0`
- `@remix-run/router@1.17.0-pre.0`
- `react-router-dom@6.24.0`
- `react-router@6.24.0`
- `@remix-run/router@1.17.0`

## 6.23.1

Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom-v5-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom-v5-compat",
"version": "6.24.0-pre.0",
"version": "6.24.0",
"description": "Migration path to React Router v6 from v4/5",
"keywords": [
"react",
Expand Down
10 changes: 5 additions & 5 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# `react-router-dom`

## 6.24.0-pre.0
## 6.24.0

### Minor Changes

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

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

### Patch Changes

- 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))
- Allow falsy `location.state` values passed to `<StaticRouter>` ([#11495](https://github.com/remix-run/react-router/pull/11495))
- Updated dependencies:
- `react-router@6.24.0-pre.0`
- `@remix-run/router@1.17.0-pre.0`
- `react-router@6.24.0`
- `@remix-run/router@1.17.0`

## 6.23.1

Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom",
"version": "6.24.0-pre.0",
"version": "6.24.0",
"description": "Declarative routing for React web applications",
"keywords": [
"react",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# `react-router-native`

## 6.24.0-pre.0
## 6.24.0

### Patch Changes

- Updated dependencies:
- `react-router@6.24.0-pre.0`
- `react-router@6.24.0`

## 6.23.1

Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-native",
"version": "6.24.0-pre.0",
"version": "6.24.0",
"description": "Declarative routing for React Native applications",
"keywords": [
"react",
Expand Down
8 changes: 4 additions & 4 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# `react-router`

## 6.24.0-pre.0
## 6.24.0

### Minor Changes

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

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

### Patch Changes

- Updated dependencies:
- `@remix-run/router@1.17.0-pre.0`
- `@remix-run/router@1.17.0`

## 6.23.1

Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "6.24.0-pre.0",
"version": "6.24.0",
"description": "Declarative routing for React",
"keywords": [
"react",
Expand Down
6 changes: 3 additions & 3 deletions packages/router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# `@remix-run/router`

## 1.17.0-pre.0
## 1.17.0

### Minor Changes

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

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

## 1.16.1

Expand Down
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/router",
"version": "1.17.0-pre.0",
"version": "1.17.0",
"description": "Nested/Data-driven/Framework-agnostic Routing",
"keywords": [
"remix",
Expand Down

0 comments on commit a569d76

Please sign in to comment.