Skip to content

Commit

Permalink
Merge branch 'release-next' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jul 3, 2024
2 parents ff041d1 + 0a87644 commit 6def427
Show file tree
Hide file tree
Showing 20 changed files with 125 additions and 87 deletions.
5 changes: 0 additions & 5 deletions .changeset/flat-seals-hunt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lovely-apples-help.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-bees-invent.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/six-pianos-serve.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thirty-swans-fail.md

This file was deleted.

127 changes: 72 additions & 55 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,161 +13,163 @@ We manage release notes in this file instead of the paginated Github Releases Pa
<summary>Table of Contents</summary>

- [React Router Releases](#react-router-releases)
- [v6.24.1](#v6241)
- [Patch Changes](#patch-changes)
- [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)
- [Minor Changes](#minor-changes)
- [Patch Changes](#patch-changes)
- [v6.23.1](#v6231)
- [Patch Changes](#patch-changes-1)
- [v6.23.1](#v6231)
- [Patch Changes](#patch-changes-2)
- [v6.23.0](#v6230)
- [What's Changed](#whats-changed-1)
- [Data Strategy (unstable)](#data-strategy-unstable)
- [Skip Action Error Revalidation (unstable)](#skip-action-error-revalidation-unstable)
- [Minor Changes](#minor-changes-1)
- [v6.22.3](#v6223)
- [Patch Changes](#patch-changes-2)
- [v6.22.2](#v6222)
- [Patch Changes](#patch-changes-3)
- [v6.22.1](#v6221)
- [v6.22.2](#v6222)
- [Patch Changes](#patch-changes-4)
- [v6.22.1](#v6221)
- [Patch Changes](#patch-changes-5)
- [v6.22.0](#v6220)
- [What's Changed](#whats-changed-2)
- [Core Web Vitals Technology Report Flag](#core-web-vitals-technology-report-flag)
- [Minor Changes](#minor-changes-2)
- [Patch Changes](#patch-changes-5)
- [v6.21.3](#v6213)
- [Patch Changes](#patch-changes-6)
- [v6.21.2](#v6212)
- [v6.21.3](#v6213)
- [Patch Changes](#patch-changes-7)
- [v6.21.1](#v6211)
- [v6.21.2](#v6212)
- [Patch Changes](#patch-changes-8)
- [v6.21.1](#v6211)
- [Patch Changes](#patch-changes-9)
- [v6.21.0](#v6210)
- [What's Changed](#whats-changed-3)
- [`future.v7_relativeSplatPath`](#futurev7_relativesplatpath)
- [Partial Hydration](#partial-hydration)
- [Minor Changes](#minor-changes-3)
- [Patch Changes](#patch-changes-9)
- [v6.20.1](#v6201)
- [Patch Changes](#patch-changes-10)
- [v6.20.1](#v6201)
- [Patch Changes](#patch-changes-11)
- [v6.20.0](#v6200)
- [Minor Changes](#minor-changes-4)
- [Patch Changes](#patch-changes-11)
- [Patch Changes](#patch-changes-12)
- [v6.19.0](#v6190)
- [What's Changed](#whats-changed-4)
- [`unstable_flushSync` API](#unstable_flushsync-api)
- [Minor Changes](#minor-changes-5)
- [Patch Changes](#patch-changes-12)
- [Patch Changes](#patch-changes-13)
- [v6.18.0](#v6180)
- [What's Changed](#whats-changed-5)
- [New Fetcher APIs](#new-fetcher-apis)
- [Persistence Future Flag (`future.v7_fetcherPersist`)](#persistence-future-flag-futurev7_fetcherpersist)
- [Minor Changes](#minor-changes-6)
- [Patch Changes](#patch-changes-13)
- [Patch Changes](#patch-changes-14)
- [v6.17.0](#v6170)
- [What's Changed](#whats-changed-6)
- [View Transitions 🚀](#view-transitions-)
- [Minor Changes](#minor-changes-7)
- [Patch Changes](#patch-changes-14)
- [Patch Changes](#patch-changes-15)
- [v6.16.0](#v6160)
- [Minor Changes](#minor-changes-8)
- [Patch Changes](#patch-changes-15)
- [Patch Changes](#patch-changes-16)
- [v6.15.0](#v6150)
- [Minor Changes](#minor-changes-9)
- [Patch Changes](#patch-changes-16)
- [v6.14.2](#v6142)
- [Patch Changes](#patch-changes-17)
- [v6.14.1](#v6141)
- [v6.14.2](#v6142)
- [Patch Changes](#patch-changes-18)
- [v6.14.1](#v6141)
- [Patch Changes](#patch-changes-19)
- [v6.14.0](#v6140)
- [What's Changed](#whats-changed-7)
- [JSON/Text Submissions](#jsontext-submissions)
- [Minor Changes](#minor-changes-10)
- [Patch Changes](#patch-changes-19)
- [Patch Changes](#patch-changes-20)
- [v6.13.0](#v6130)
- [What's Changed](#whats-changed-8)
- [v7_startTransition](#v7_starttransition)
- [`future.v7_startTransition`](#futurev7_starttransition)
- [Minor Changes](#minor-changes-11)
- [Patch Changes](#patch-changes-20)
- [v6.12.1](#v6121)
- [Patch Changes](#patch-changes-21)
- [v6.12.1](#v6121)
- [Patch Changes](#patch-changes-22)
- [v6.12.0](#v6120)
- [What's Changed](#whats-changed-9)
- [`React.startTransition` support](#reactstarttransition-support)
- [Minor Changes](#minor-changes-12)
- [Patch Changes](#patch-changes-22)
- [v6.11.2](#v6112)
- [Patch Changes](#patch-changes-23)
- [v6.11.1](#v6111)
- [v6.11.2](#v6112)
- [Patch Changes](#patch-changes-24)
- [v6.11.1](#v6111)
- [Patch Changes](#patch-changes-25)
- [v6.11.0](#v6110)
- [Minor Changes](#minor-changes-13)
- [Patch Changes](#patch-changes-25)
- [Patch Changes](#patch-changes-26)
- [v6.10.0](#v6100)
- [What's Changed](#whats-changed-10)
- [Minor Changes](#minor-changes-14)
- [future.v7_normalizeFormMethod](#futurev7_normalizeformmethod)
- [Patch Changes](#patch-changes-26)
- [`future.v7_normalizeFormMethod`](#futurev7_normalizeformmethod)
- [Patch Changes](#patch-changes-27)
- [v6.9.0](#v690)
- [What's Changed](#whats-changed-11)
- [`Component`/`ErrorBoundary` route properties](#componenterrorboundary-route-properties)
- [Introducing Lazy Route Modules](#introducing-lazy-route-modules)
- [Minor Changes](#minor-changes-15)
- [Patch Changes](#patch-changes-27)
- [v6.8.2](#v682)
- [Patch Changes](#patch-changes-28)
- [v6.8.1](#v681)
- [v6.8.2](#v682)
- [Patch Changes](#patch-changes-29)
- [v6.8.1](#v681)
- [Patch Changes](#patch-changes-30)
- [v6.8.0](#v680)
- [Minor Changes](#minor-changes-16)
- [Patch Changes](#patch-changes-30)
- [Patch Changes](#patch-changes-31)
- [v6.7.0](#v670)
- [Minor Changes](#minor-changes-17)
- [Patch Changes](#patch-changes-31)
- [v6.6.2](#v662)
- [Patch Changes](#patch-changes-32)
- [v6.6.1](#v661)
- [v6.6.2](#v662)
- [Patch Changes](#patch-changes-33)
- [v6.6.1](#v661)
- [Patch Changes](#patch-changes-34)
- [v6.6.0](#v660)
- [What's Changed](#whats-changed-12)
- [Minor Changes](#minor-changes-18)
- [Patch Changes](#patch-changes-34)
- [Patch Changes](#patch-changes-35)
- [v6.5.0](#v650)
- [What's Changed](#whats-changed-13)
- [Minor Changes](#minor-changes-19)
- [Patch Changes](#patch-changes-35)
- [v6.4.5](#v645)
- [Patch Changes](#patch-changes-36)
- [v6.4.4](#v644)
- [v6.4.5](#v645)
- [Patch Changes](#patch-changes-37)
- [v6.4.3](#v643)
- [v6.4.4](#v644)
- [Patch Changes](#patch-changes-38)
- [v6.4.2](#v642)
- [v6.4.3](#v643)
- [Patch Changes](#patch-changes-39)
- [v6.4.1](#v641)
- [v6.4.2](#v642)
- [Patch Changes](#patch-changes-40)
- [v6.4.1](#v641)
- [Patch Changes](#patch-changes-41)
- [v6.4.0](#v640)
- [What's Changed](#whats-changed-14)
- [Remix Data APIs](#remix-data-apis)
- [Patch Changes](#patch-changes-41)
- [Patch Changes](#patch-changes-42)
- [v6.3.0](#v630)
- [Minor Changes](#minor-changes-20)
- [v6.2.2](#v622)
- [Patch Changes](#patch-changes-42)
- [v6.2.1](#v621)
- [Patch Changes](#patch-changes-43)
- [v6.2.1](#v621)
- [Patch Changes](#patch-changes-44)
- [v6.2.0](#v620)
- [Minor Changes](#minor-changes-21)
- [Patch Changes](#patch-changes-44)
- [v6.1.1](#v611)
- [Patch Changes](#patch-changes-45)
- [v6.1.1](#v611)
- [Patch Changes](#patch-changes-46)
- [v6.1.0](#v610)
- [Minor Changes](#minor-changes-22)
- [Patch Changes](#patch-changes-46)
- [v6.0.2](#v602)
- [Patch Changes](#patch-changes-47)
- [v6.0.1](#v601)
- [v6.0.2](#v602)
- [Patch Changes](#patch-changes-48)
- [v6.0.1](#v601)
- [Patch Changes](#patch-changes-49)
- [v6.0.0](#v600)

</details>
Expand All @@ -191,6 +193,21 @@ Date: YYYY-MM-DD
**Full Changelog**: [`v6.X.Y...v6.X.Y`](https://github.com/remix-run/react-router/compare/react-router@6.X.Y...react-router@6.X.Y)
-->

## v6.24.1

Date: 2024-07-03

### Patch Changes

- Remove `polyfill.io` reference from warning message because the domain was sold and has since been determined to serve malware ([#11741](https://github.com/remix-run/react-router/pull/11741))
- See https://sansec.io/research/polyfill-supply-chain-attack
- Export `NavLinkRenderProps` type for easier typing of custom `NavLink` callback ([#11553](https://github.com/remix-run/react-router/pull/11553))
- When using `future.v7_relativeSplatPath`, properly resolve relative paths in splat routes that are children of pathless routes ([#11633](https://github.com/remix-run/react-router/pull/11633))
- Fog of War (unstable): Trigger a new `router.routes` identity/reflow during route patching ([#11740](https://github.com/remix-run/react-router/pull/11740))
- Fog of War (unstable): Fix initial matching when a splat route matches ([#11759](https://github.com/remix-run/react-router/pull/11759))

**Full Changelog**: [`v6.24.0...v6.24.1`](https://github.com/remix-run/react-router/compare/react-router@6.24.0...react-router@6.24.1)

## v6.24.0

Date: 2024-06-24
Expand All @@ -203,7 +220,7 @@ We're really excited to release our new API for "Lazy Route Discovery" in `v6.24

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:
Here's a very small example, but please refer to the [documentation](https://reactrouter.com/en/main/routers/create-browser-router#optsunstable_patchroutesonmiss) for more information and use cases:

```js
const router = createBrowserRouter(
Expand Down Expand Up @@ -506,7 +523,7 @@ Per this [RFC](https://github.com/remix-run/remix/discussions/7698), we've intro

- You may now specify your own fetcher identifier via `useFetcher({ key: string })`, which allows you to access the same fetcher instance from different components in your application without prop-drilling
- Fetcher keys are now exposed on the fetchers returned from `useFetchers` so that they can be looked up by `key`
- `Form` and `useSumbit` now support optional `navigate`/`fetcherKey` props/params to allow kicking off a fetcher submission under the hood with an optionally user-specified `key`
- `Form` and `useSubmit` now support optional `navigate`/`fetcherKey` props/params to allow kicking off a fetcher submission under the hood with an optionally user-specified `key`
- `<Form method="post" navigate={false} fetcherKey="my-key">`
- `submit(data, { method: "post", navigate: false, fetcherKey: "my-key" })`
- Invoking a fetcher in this way is ephemeral and stateless
Expand Down Expand Up @@ -765,7 +782,7 @@ Date: 2023-06-14
`6.13.0` is really a patch release in spirit but comes with a SemVer minor bump since we added a new future flag.
#### v7_startTransition
#### `future.v7_startTransition`
The **tl;dr;** is that `6.13.0` is the same as [`6.12.0`](https://github.com/remix-run/react-router/releases/tag/react-router%406.12.0) bue we've moved the usage of `React.startTransition` behind an opt-in `future.v7_startTransition` [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) because we found that there are applications in the wild that are currently using `Suspense` in ways that are incompatible with `React.startTransition`.
Expand Down Expand Up @@ -918,7 +935,7 @@ You can also check out the docs [here](https://reactrouter.com/en/dev/guides/api
### Minor Changes
#### future.v7_normalizeFormMethod
#### `future.v7_normalizeFormMethod`
The first future 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()` (and some Remix) behavior. ([#10207](https://github.com/remix-run/react-router/pull/10207))
Expand Down
3 changes: 3 additions & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- adriananin
- adrienharnay
- afzalsayed96
- AhmadMayo
- Ajayff4
- akamfoad
- alany411
Expand Down Expand Up @@ -67,6 +68,7 @@
- DigitalNaut
- dmitrytarassov
- dokeet
- doytch
- Drishtantr
- edwin177
- eiffelwong1
Expand Down Expand Up @@ -99,6 +101,7 @@
- hongji00
- hsbtr
- hyesungoh
- iamnishanth
- ianflynnwork
- IbraRouisDev
- igniscyan
Expand Down
2 changes: 1 addition & 1 deletion docs/route/route.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Neither style is discouraged and behavior is identical. For the majority of this
interface RouteObject {
path?: string;
index?: boolean;
children?: React.ReactNode;
children?: RouteObject[];
caseSensitive?: boolean;
id?: string;
loader?: LoaderFunction;
Expand Down
2 changes: 1 addition & 1 deletion docs/routers/create-browser-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ const router = createBrowserRouter(
);
```

In the above example, if the user clicks a clink to `/a`, React Router won't be able to match it initially and will call `patchRoutesOnMiss` with `/a` and a `matches` array containing the root route match. By calling `patch`, it the `a` route will be added to the route tree and React Router will perform matching again. This time it will successfully match the `/a` path and the navigation will complete successfully.
In the above example, if the user clicks a link to `/a`, React Router won't be able to match it initially and will call `patchRoutesOnMiss` with `/a` and a `matches` array containing the root route match. By calling `patch`, the `a` route will be added to the route tree and React Router will perform matching again. This time it will successfully match the `/a` path and the navigation will complete successfully.

**Patching new root-level routes**

Expand Down
1 change: 1 addition & 0 deletions docs/utils/create-routes-from-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
createBrowserRouter,
createRoutesFromElements,
RouterProvider,
Route,
} from "react-router-dom";

// You can do this:
Expand Down
9 changes: 9 additions & 0 deletions packages/react-router-dom-v5-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# `react-router-dom-v5-compat`

## 6.24.1

### Patch Changes

- Updated dependencies:
- `react-router-dom@6.24.1`
- `@remix-run/router@1.17.1`
- `react-router@6.24.1`

## 6.24.0

### Patch Changes
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",
"version": "6.24.1",
"description": "Migration path to React Router v6 from v4/5",
"keywords": [
"react",
Expand Down
11 changes: 11 additions & 0 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# `react-router-dom`

## 6.24.1

### Patch Changes

- Remove `polyfill.io` reference from warning message because the domain was sold and has since been determined to serve malware ([#11741](https://github.com/remix-run/react-router/pull/11741))
- See <https://sansec.io/research/polyfill-supply-chain-attack>
- Export `NavLinkRenderProps` type for easier typing of custom `NavLink` callback ([#11553](https://github.com/remix-run/react-router/pull/11553))
- Updated dependencies:
- `@remix-run/router@1.17.1`
- `react-router@6.24.1`

## 6.24.0

### Minor Changes
Expand Down
Loading

0 comments on commit 6def427

Please sign in to comment.