Skip to content

Commit 667f936

Browse files
chore: Update version for release (#10981)
1 parent 3c6e27c commit 667f936

23 files changed

+45
-146
lines changed

.changeset/fetcher-cleanup.md

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

.changeset/fetcher-data.md

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

.changeset/fetcher-key.md

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

.changeset/fetcher-ref-count.md

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

.changeset/fix-get-delete-fetcher-types.md

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

.changeset/fix-router-future-prop.md

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

.changeset/form-navigate-false.md

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

.changeset/pre.json

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

.changeset/support-optional-path-segments-in-match-path.md

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

docs/components/form.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ interface FormProps
2020
| "text/plain";
2121
action?: string;
2222
onSubmit?: React.FormEventHandler<HTMLFormElement>;
23+
fetcherKey?: string;
24+
navigate?: boolean;
2325
preventScrollReset?: boolean;
2426
relative?: "route" | "path";
2527
reloadDocument?: boolean;

docs/guides/api-development-strategy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ const router = createBrowserRouter(routes, {
6565

6666
| Flag | Description |
6767
| ------------------------ | --------------------------------------------------------------------- |
68-
| `v7_normalizeFormMethod` | Normalize `useNavigation().formMethod` to be an uppercase HTTP Method |
6968
| `v7_fetcherPersist` | Delay active fetcher cleanup until they return to an `idle` state |
69+
| `v7_normalizeFormMethod` | Normalize `useNavigation().formMethod` to be an uppercase HTTP Method |
70+
| `v7_prependBasename` | Prepend the router basename to navigate/fetch paths |
7071

7172
### React Router Future Flags
7273

docs/hooks/use-fetcher.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Fetchers have a lot of built-in behavior:
6464

6565
### `key`
6666

67-
By default, `useFetcher` generate a unique fetcher scoped to that component (however, it may be looked up in [`useFetchers()`][use_fetchers] while in-flight). If you want to identify a fetcher with your own key such that you can access it from elsewhere in your app, you can do that with the `key` option:
67+
By default, `useFetcher` generate a unique fetcher scoped to that component (however, it may be looked up in [`useFetchers()`][use-fetchers] while in-flight). If you want to identify a fetcher with your own `key` such that you can access it from elsewhere in your app, you can do that with the `key` option:
6868

69-
```tsx
69+
```tsx lines=[2,8]
7070
function AddToBagButton() {
7171
const fetcher = useFetcher({ key: "add-to-bag" });
7272
return <fetcher.Form method="post">...</fetcher.Form>;
@@ -277,4 +277,5 @@ fetcher.formMethod; // "post"
277277
[link]: ../components/link
278278
[form]: ../components/form
279279
[api-development-strategy]: ../guides/api-development-strategy
280-
[use-submit]: ./use-submit.md
280+
[use-submit]: ./use-submit
281+
[use-fetchers]: ./use-fetchers

docs/routers/create-browser-router.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,22 @@ const router = createBrowserRouter(routes, {
114114
});
115115
```
116116

117+
The following future flags are currently available:
118+
119+
| Flag | Description |
120+
| ------------------------ | --------------------------------------------------------------------- |
121+
| `v7_fetcherPersist` | Delay active fetcher cleanup until they return to an `idle` state |
122+
| `v7_normalizeFormMethod` | Normalize `useNavigation().formMethod` to be an uppercase HTTP Method |
123+
| `v7_prependBasename` | Prepend the router basename to navigate/fetch paths |
124+
117125
## `window`
118126

119127
Useful for environments like browser devtool plugins or testing to use a different window than the global `window`.
120128

121129
[loader]: ../route/loader
122130
[action]: ../route/action
123131
[fetcher]: ../hooks/use-fetcher
124-
[browser-router]: ./browser-router
125-
[form]: ../components/form
126132
[route]: ../route/route
127-
[routes]: ../components/routes
128133
[historyapi]: https://developer.mozilla.org/en-US/docs/Web/API/History
129134
[api-development-strategy]: ../guides/api-development-strategy
130135
[remixing-react-router]: https://remix.run/blog/remixing-react-router

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

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

3-
## 6.18.0-pre.1
3+
## 6.18.0
44

55
### Patch Changes
66

77
- Updated dependencies:
8-
9-
10-
11-
## 6.18.0-pre.0
12-
13-
### Patch Changes
14-
15-
- Updated dependencies:
16-
17-
8+
9+
1810

1911
## 6.17.0
2012

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom-v5-compat",
3-
"version": "6.18.0-pre.1",
3+
"version": "6.18.0",
44
"description": "Migration path to React Router v6 from v4/5",
55
"keywords": [
66
"react",
@@ -24,7 +24,7 @@
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
2626
"history": "^5.3.0",
27-
"react-router": "6.18.0-pre.1"
27+
"react-router": "6.18.0"
2828
},
2929
"peerDependencies": {
3030
"react": ">=16.8",

packages/react-router-dom/CHANGELOG.md

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

3-
## 6.18.0-pre.1
4-
5-
### Patch Changes
6-
7-
- Updated dependencies:
8-
- `@remix-run/[email protected]`
9-
10-
11-
## 6.18.0-pre.0
3+
## 6.18.0
124

135
### Minor Changes
146

@@ -24,10 +16,10 @@
2416
### Patch Changes
2517

2618
- Adds a fetcher context to `RouterProvider` that holds completed fetcher data, in preparation for the upcoming future flag that will change the fetcher persistence/cleanup behavior ([#10961](https://github.com/remix-run/react-router/pull/10961))
27-
- Fix the `future`prop on `BrowserRouter`, `HashRouter` and `MemoryRouter` so that it accepts a `Partial<FutureConfig>` instead of requiring all flags to be included. ([#10962](https://github.com/remix-run/react-router/pull/10962))
19+
- Fix the `future` prop on `BrowserRouter`, `HashRouter` and `MemoryRouter` so that it accepts a `Partial<FutureConfig>` instead of requiring all flags to be included. ([#10962](https://github.com/remix-run/react-router/pull/10962))
2820
- Updated dependencies:
29-
- `@remix-run/[email protected]-pre.0`
30-
21+
- `@remix-run/[email protected]`
22+
3123

3224
## 6.17.0
3325

packages/react-router-dom/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-dom",
3-
"version": "6.18.0-pre.1",
3+
"version": "6.18.0",
44
"description": "Declarative routing for React web applications",
55
"keywords": [
66
"react",
@@ -23,8 +23,8 @@
2323
"module": "./dist/index.js",
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
26-
"@remix-run/router": "1.11.0-pre.1",
27-
"react-router": "6.18.0-pre.1"
26+
"@remix-run/router": "1.11.0",
27+
"react-router": "6.18.0"
2828
},
2929
"devDependencies": {
3030
"react": "^18.2.0",

packages/react-router-native/CHANGELOG.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
# `react-router-native`
22

3-
## 6.18.0-pre.1
3+
## 6.18.0
44

55
### Patch Changes
66

77
- Updated dependencies:
8-
9-
10-
## 6.18.0-pre.0
11-
12-
### Patch Changes
13-
14-
- Updated dependencies:
15-
8+
169

1710
## 6.17.0
1811

packages/react-router-native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router-native",
3-
"version": "6.18.0-pre.1",
3+
"version": "6.18.0",
44
"description": "Declarative routing for React Native applications",
55
"keywords": [
66
"react",
@@ -22,7 +22,7 @@
2222
"types": "./dist/index.d.ts",
2323
"dependencies": {
2424
"@ungap/url-search-params": "^0.2.2",
25-
"react-router": "6.18.0-pre.1"
25+
"react-router": "6.18.0"
2626
},
2727
"devDependencies": {
2828
"react": "^18.2.0",

packages/react-router/CHANGELOG.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
# `react-router`
22

3-
## 6.18.0-pre.1
3+
## 6.18.0
44

55
### Patch Changes
66

7+
- Fix the `future` prop on `BrowserRouter`, `HashRouter` and `MemoryRouter` so that it accepts a `Partial<FutureConfig>` instead of requiring all flags to be included. ([#10962](https://github.com/remix-run/react-router/pull/10962))
78
- Updated dependencies:
8-
- `@remix-run/[email protected]`
9-
10-
## 6.18.0-pre.0
11-
12-
### Patch Changes
13-
14-
- Fix the `future`prop on `BrowserRouter`, `HashRouter` and `MemoryRouter` so that it accepts a `Partial<FutureConfig>` instead of requiring all flags to be included. ([#10962](https://github.com/remix-run/react-router/pull/10962))
15-
- Updated dependencies:
16-
- `@remix-run/[email protected]`
9+
- `@remix-run/[email protected]`
1710

1811
## 6.17.0
1912

packages/react-router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-router",
3-
"version": "6.18.0-pre.1",
3+
"version": "6.18.0",
44
"description": "Declarative routing for React",
55
"keywords": [
66
"react",
@@ -23,7 +23,7 @@
2323
"module": "./dist/index.js",
2424
"types": "./dist/index.d.ts",
2525
"dependencies": {
26-
"@remix-run/router": "1.11.0-pre.1"
26+
"@remix-run/router": "1.11.0"
2727
},
2828
"devDependencies": {
2929
"react": "^18.2.0"

packages/router/CHANGELOG.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
# `@remix-run/router`
22

3-
## 1.11.0-pre.1
3+
## 1.11.0
44

55
### Minor Changes
66

7-
- When `v7_fetcherPersist` is enabled, the router now performs ref-counting on fetcher keys via `getFetcher`/`deleteFetcher` so it knows when a given fetcher is totally unmounted from the UI ([#10977](https://github.com/remix-run/react-router/pull/10977))
8-
9-
- Once a fetcher has been totally unmounted, we can ignore post-processing of a persisted fetcher result such as a redirect or an error
10-
- The router will also pass a new `deletedFetchers` array to the subscriber callbacks so that the UI layer can remove associated fetcher data
11-
12-
## 1.11.0-pre.0
13-
14-
### Minor Changes
15-
16-
- Add a new `future.v7_fetcherPersist` flag to the `@remix-run/router` to change the persistence behavior of fetchers when `router.deleteFetcher` is called. Instead of being immediately cleaned up, fetchers will persist until they return to an `idle` state([RFC](https://github.com/remix-run/remix/discussions/7698)) ([#10962](https://github.com/remix-run/react-router/pull/10962))
7+
- Add a new `future.v7_fetcherPersist` flag to the `@remix-run/router` to change the persistence behavior of fetchers when `router.deleteFetcher` is called. Instead of being immediately cleaned up, fetchers will persist until they return to an `idle` state ([RFC](https://github.com/remix-run/remix/discussions/7698)) ([#10962](https://github.com/remix-run/react-router/pull/10962))
178

189
- This is sort of a long-standing bug fix as the `useFetchers()` API was always supposed to only reflect **in-flight** fetcher information for pending/optimistic UI -- it was not intended to reflect fetcher data or hang onto fetchers after they returned to an `idle` state
19-
- With `v7_fetcherPersist`, the `router` only knows about in-flight fetchers - they do not exist in `state.fetchers` until a `fetch()` call is made, and they are removed as soon as it returns to `idle` (and the data is handed off to the React layer)
2010
- Keep an eye out for the following specific behavioral changes when opting into this flag and check your app for compatibility:
2111
- Fetchers that complete _while still mounted_ will no longer appear in `useFetchers()`. They served effectively no purpose in there since you can access the data via `useFetcher().data`).
2212
- Fetchers that previously unmounted _while in-flight_ will not be immediately aborted and will instead be cleaned up once they return to an `idle` state. They will remain exposed via `useFetchers` while in-flight so you can still access pending/optimistic data after unmount.
2313

14+
- When `v7_fetcherPersist` is enabled, the router now performs ref-counting on fetcher keys via `getFetcher`/`deleteFetcher` so it knows when a given fetcher is totally unmounted from the UI ([#10977](https://github.com/remix-run/react-router/pull/10977))
15+
16+
- Once a fetcher has been totally unmounted, we can ignore post-processing of a persisted fetcher result such as a redirect or an error
17+
- The router will also pass a new `deletedFetchers` array to the subscriber callbacks so that the UI layer can remove associated fetcher data
18+
2419
- Add support for optional path segments in `matchPath` ([#10768](https://github.com/remix-run/react-router/pull/10768))
2520

2621
### Patch Changes

packages/router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@remix-run/router",
3-
"version": "1.11.0-pre.1",
3+
"version": "1.11.0",
44
"description": "Nested/Data-driven/Framework-agnostic Routing",
55
"keywords": [
66
"remix",

0 commit comments

Comments
 (0)