|
1 | 1 | # `react-router`
|
2 | 2 |
|
| 3 | +## 6.28.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- - Log deprecation warnings for v7 flags ([#11750](https://github.com/remix-run/react-router/pull/11750)) |
| 8 | + - Add deprecation warnings to `json`/`defer` in favor of returning raw objects |
| 9 | + - These methods will be removed in React Router v7 |
| 10 | + |
| 11 | +### Patch Changes |
| 12 | + |
| 13 | +- Update JSDoc URLs for new website structure (add /v6/ segment) ([#12141](https://github.com/remix-run/react-router/pull/12141)) |
| 14 | +- Updated dependencies: |
| 15 | + |
| 16 | + |
| 17 | +## 6.27.0 |
| 18 | + |
| 19 | +### Minor Changes |
| 20 | + |
| 21 | +- Stabilize `unstable_patchRoutesOnNavigation` ([#11973](https://github.com/remix-run/react-router/pull/11973)) |
| 22 | + - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience ([#11967](https://github.com/remix-run/react-router/pull/11967)) |
| 23 | +- Stabilize `unstable_dataStrategy` ([#11974](https://github.com/remix-run/react-router/pull/11974)) |
| 24 | +- Stabilize the `unstable_flushSync` option for navigations and fetchers ([#11989](https://github.com/remix-run/react-router/pull/11989)) |
| 25 | +- Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook ([#11989](https://github.com/remix-run/react-router/pull/11989)) |
| 26 | + |
| 27 | +### Patch Changes |
| 28 | + |
| 29 | +- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) |
| 30 | + |
| 31 | +- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params ([#12003](https://github.com/remix-run/react-router/pull/12003)) |
| 32 | + |
| 33 | +- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) |
| 34 | + |
| 35 | +- Updated dependencies: |
| 36 | + |
| 37 | + |
3 | 38 | ## 6.26.2
|
4 | 39 |
|
5 | 40 | ### Patch Changes
|
@@ -61,7 +96,7 @@ No significant changes to this package were made in this release. [See the repo
|
61 | 96 |
|
62 | 97 | - Add support for Lazy Route Discovery (a.k.a. Fog of War) ([#11626](https://github.com/remix-run/react-router/pull/11626))
|
63 | 98 | - RFC: <https://github.com/remix-run/react-router/discussions/11113>
|
64 |
| - - `unstable_patchRoutesOnMiss` docs: <https://reactrouter.com/en/main/routers/create-browser-router> |
| 99 | + - `unstable_patchRoutesOnMiss` docs: <https://reactrouter.com/v6/routers/create-browser-router> |
65 | 100 |
|
66 | 101 | ### Patch Changes
|
67 | 102 |
|
@@ -307,7 +342,7 @@ No significant changes to this package were made in this release. [See the repo
|
307 | 342 | ### Minor Changes
|
308 | 343 |
|
309 | 344 | - Add `unstable_flushSync` option to `useNavigate`/`useSumbit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005))
|
310 |
| -- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/en/main/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior. ([#10991](https://github.com/remix-run/react-router/pull/10991)) |
| 345 | +- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/v6/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior. ([#10991](https://github.com/remix-run/react-router/pull/10991)) |
311 | 346 |
|
312 | 347 | ### Patch Changes
|
313 | 348 |
|
@@ -397,7 +432,7 @@ No significant changes to this package were made in this release. [See the repo
|
397 | 432 |
|
398 | 433 | ### Minor Changes
|
399 | 434 |
|
400 |
| -- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) |
| 435 | +- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/v6/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596)) |
401 | 436 |
|
402 | 437 | Existing behavior will no longer include `React.startTransition`:
|
403 | 438 |
|
@@ -480,7 +515,7 @@ No significant changes to this package were made in this release. [See the repo
|
480 | 515 |
|
481 | 516 | ### Minor Changes
|
482 | 517 |
|
483 |
| -- Added support for [**Future Flags**](https://reactrouter.com/en/main/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](https://github.com/remix-run/react-router/pull/10207)) |
| 518 | +- Added support for [**Future Flags**](https://reactrouter.com/v6/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](https://github.com/remix-run/react-router/pull/10207)) |
484 | 519 |
|
485 | 520 | - When `future.v7_normalizeFormMethod === false` (default v6 behavior),
|
486 | 521 | - `useNavigation().formMethod` is lowercase
|
@@ -757,7 +792,7 @@ function Comp() {
|
757 | 792 |
|
758 | 793 | ## 6.4.0
|
759 | 794 |
|
760 |
| -Whoa this is a big one! `6.4.0` brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the [docs](https://reactrouter.com), especially the [feature overview](https://reactrouter.com/start/overview) and the [tutorial](https://reactrouter.com/start/tutorial). |
| 795 | +Whoa this is a big one! `6.4.0` brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the [docs](https://reactrouter.com), especially the [feature overview](https://reactrouter.com/en/6.4.0/start/overview) and the [tutorial](https://reactrouter.com/en/6.4.0/start/tutorial). |
761 | 796 |
|
762 | 797 | **New APIs**
|
763 | 798 |
|
|
0 commit comments