Skip to content

Commit 5c5bf6a

Browse files
committed
Merge branch 'release-next' into v6
2 parents ecdbbde + 91ef146 commit 5c5bf6a

File tree

17 files changed

+202
-121
lines changed

17 files changed

+202
-121
lines changed

.changeset/fifty-rockets-hide.md

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

.changeset/five-bottles-press.md

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

.changeset/hip-poets-provide.md

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

.changeset/sour-dryers-walk.md

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

CHANGELOG.md

Lines changed: 98 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -13,170 +13,173 @@ We manage release notes in this file instead of the paginated Github Releases Pa
1313
<summary>Table of Contents</summary>
1414

1515
- [React Router Releases](#react-router-releases)
16-
- [v6.25.1](#v6251)
16+
- [v6.26.0](#v6260)
17+
- [Minor Changes](#minor-changes)
1718
- [Patch Changes](#patch-changes)
19+
- [v6.25.1](#v6251)
20+
- [Patch Changes](#patch-changes-1)
1821
- [v6.25.0](#v6250)
1922
- [What's Changed](#whats-changed)
2023
- [Stabilized `v7_skipActionErrorRevalidation`](#stabilized-v7_skipactionerrorrevalidation)
21-
- [Minor Changes](#minor-changes)
22-
- [Patch Changes](#patch-changes-1)
23-
- [v6.24.1](#v6241)
24+
- [Minor Changes](#minor-changes-1)
2425
- [Patch Changes](#patch-changes-2)
26+
- [v6.24.1](#v6241)
27+
- [Patch Changes](#patch-changes-3)
2528
- [v6.24.0](#v6240)
2629
- [What's Changed](#whats-changed-1)
2730
- [Lazy Route Discovery (a.k.a. "Fog of War")](#lazy-route-discovery-aka-fog-of-war)
28-
- [Minor Changes](#minor-changes-1)
29-
- [Patch Changes](#patch-changes-3)
30-
- [v6.23.1](#v6231)
31+
- [Minor Changes](#minor-changes-2)
3132
- [Patch Changes](#patch-changes-4)
33+
- [v6.23.1](#v6231)
34+
- [Patch Changes](#patch-changes-5)
3235
- [v6.23.0](#v6230)
3336
- [What's Changed](#whats-changed-2)
3437
- [Data Strategy (unstable)](#data-strategy-unstable)
3538
- [Skip Action Error Revalidation (unstable)](#skip-action-error-revalidation-unstable)
36-
- [Minor Changes](#minor-changes-2)
39+
- [Minor Changes](#minor-changes-3)
3740
- [v6.22.3](#v6223)
38-
- [Patch Changes](#patch-changes-5)
39-
- [v6.22.2](#v6222)
4041
- [Patch Changes](#patch-changes-6)
41-
- [v6.22.1](#v6221)
42+
- [v6.22.2](#v6222)
4243
- [Patch Changes](#patch-changes-7)
44+
- [v6.22.1](#v6221)
45+
- [Patch Changes](#patch-changes-8)
4346
- [v6.22.0](#v6220)
4447
- [What's Changed](#whats-changed-3)
4548
- [Core Web Vitals Technology Report Flag](#core-web-vitals-technology-report-flag)
46-
- [Minor Changes](#minor-changes-3)
47-
- [Patch Changes](#patch-changes-8)
48-
- [v6.21.3](#v6213)
49+
- [Minor Changes](#minor-changes-4)
4950
- [Patch Changes](#patch-changes-9)
50-
- [v6.21.2](#v6212)
51+
- [v6.21.3](#v6213)
5152
- [Patch Changes](#patch-changes-10)
52-
- [v6.21.1](#v6211)
53+
- [v6.21.2](#v6212)
5354
- [Patch Changes](#patch-changes-11)
55+
- [v6.21.1](#v6211)
56+
- [Patch Changes](#patch-changes-12)
5457
- [v6.21.0](#v6210)
5558
- [What's Changed](#whats-changed-4)
5659
- [`future.v7_relativeSplatPath`](#futurev7_relativesplatpath)
5760
- [Partial Hydration](#partial-hydration)
58-
- [Minor Changes](#minor-changes-4)
59-
- [Patch Changes](#patch-changes-12)
60-
- [v6.20.1](#v6201)
61-
- [Patch Changes](#patch-changes-13)
62-
- [v6.20.0](#v6200)
6361
- [Minor Changes](#minor-changes-5)
62+
- [Patch Changes](#patch-changes-13)
63+
- [v6.20.1](#v6201)
6464
- [Patch Changes](#patch-changes-14)
65+
- [v6.20.0](#v6200)
66+
- [Minor Changes](#minor-changes-6)
67+
- [Patch Changes](#patch-changes-15)
6568
- [v6.19.0](#v6190)
6669
- [What's Changed](#whats-changed-5)
6770
- [`unstable_flushSync` API](#unstable_flushsync-api)
68-
- [Minor Changes](#minor-changes-6)
69-
- [Patch Changes](#patch-changes-15)
71+
- [Minor Changes](#minor-changes-7)
72+
- [Patch Changes](#patch-changes-16)
7073
- [v6.18.0](#v6180)
7174
- [What's Changed](#whats-changed-6)
7275
- [New Fetcher APIs](#new-fetcher-apis)
7376
- [Persistence Future Flag (`future.v7_fetcherPersist`)](#persistence-future-flag-futurev7_fetcherpersist)
74-
- [Minor Changes](#minor-changes-7)
75-
- [Patch Changes](#patch-changes-16)
77+
- [Minor Changes](#minor-changes-8)
78+
- [Patch Changes](#patch-changes-17)
7679
- [v6.17.0](#v6170)
7780
- [What's Changed](#whats-changed-7)
7881
- [View Transitions 🚀](#view-transitions-)
79-
- [Minor Changes](#minor-changes-8)
80-
- [Patch Changes](#patch-changes-17)
81-
- [v6.16.0](#v6160)
8282
- [Minor Changes](#minor-changes-9)
8383
- [Patch Changes](#patch-changes-18)
84-
- [v6.15.0](#v6150)
84+
- [v6.16.0](#v6160)
8585
- [Minor Changes](#minor-changes-10)
8686
- [Patch Changes](#patch-changes-19)
87-
- [v6.14.2](#v6142)
87+
- [v6.15.0](#v6150)
88+
- [Minor Changes](#minor-changes-11)
8889
- [Patch Changes](#patch-changes-20)
89-
- [v6.14.1](#v6141)
90+
- [v6.14.2](#v6142)
9091
- [Patch Changes](#patch-changes-21)
92+
- [v6.14.1](#v6141)
93+
- [Patch Changes](#patch-changes-22)
9194
- [v6.14.0](#v6140)
9295
- [What's Changed](#whats-changed-8)
9396
- [JSON/Text Submissions](#jsontext-submissions)
94-
- [Minor Changes](#minor-changes-11)
95-
- [Patch Changes](#patch-changes-22)
97+
- [Minor Changes](#minor-changes-12)
98+
- [Patch Changes](#patch-changes-23)
9699
- [v6.13.0](#v6130)
97100
- [What's Changed](#whats-changed-9)
98101
- [`future.v7_startTransition`](#futurev7_starttransition)
99-
- [Minor Changes](#minor-changes-12)
100-
- [Patch Changes](#patch-changes-23)
101-
- [v6.12.1](#v6121)
102+
- [Minor Changes](#minor-changes-13)
102103
- [Patch Changes](#patch-changes-24)
104+
- [v6.12.1](#v6121)
105+
- [Patch Changes](#patch-changes-25)
103106
- [v6.12.0](#v6120)
104107
- [What's Changed](#whats-changed-10)
105108
- [`React.startTransition` support](#reactstarttransition-support)
106-
- [Minor Changes](#minor-changes-13)
107-
- [Patch Changes](#patch-changes-25)
108-
- [v6.11.2](#v6112)
109+
- [Minor Changes](#minor-changes-14)
109110
- [Patch Changes](#patch-changes-26)
110-
- [v6.11.1](#v6111)
111+
- [v6.11.2](#v6112)
111112
- [Patch Changes](#patch-changes-27)
112-
- [v6.11.0](#v6110)
113-
- [Minor Changes](#minor-changes-14)
113+
- [v6.11.1](#v6111)
114114
- [Patch Changes](#patch-changes-28)
115+
- [v6.11.0](#v6110)
116+
- [Minor Changes](#minor-changes-15)
117+
- [Patch Changes](#patch-changes-29)
115118
- [v6.10.0](#v6100)
116119
- [What's Changed](#whats-changed-11)
117-
- [Minor Changes](#minor-changes-15)
120+
- [Minor Changes](#minor-changes-16)
118121
- [`future.v7_normalizeFormMethod`](#futurev7_normalizeformmethod)
119-
- [Patch Changes](#patch-changes-29)
122+
- [Patch Changes](#patch-changes-30)
120123
- [v6.9.0](#v690)
121124
- [What's Changed](#whats-changed-12)
122125
- [`Component`/`ErrorBoundary` route properties](#componenterrorboundary-route-properties)
123126
- [Introducing Lazy Route Modules](#introducing-lazy-route-modules)
124-
- [Minor Changes](#minor-changes-16)
125-
- [Patch Changes](#patch-changes-30)
126-
- [v6.8.2](#v682)
127+
- [Minor Changes](#minor-changes-17)
127128
- [Patch Changes](#patch-changes-31)
128-
- [v6.8.1](#v681)
129+
- [v6.8.2](#v682)
129130
- [Patch Changes](#patch-changes-32)
130-
- [v6.8.0](#v680)
131-
- [Minor Changes](#minor-changes-17)
131+
- [v6.8.1](#v681)
132132
- [Patch Changes](#patch-changes-33)
133-
- [v6.7.0](#v670)
133+
- [v6.8.0](#v680)
134134
- [Minor Changes](#minor-changes-18)
135135
- [Patch Changes](#patch-changes-34)
136-
- [v6.6.2](#v662)
136+
- [v6.7.0](#v670)
137+
- [Minor Changes](#minor-changes-19)
137138
- [Patch Changes](#patch-changes-35)
138-
- [v6.6.1](#v661)
139+
- [v6.6.2](#v662)
139140
- [Patch Changes](#patch-changes-36)
141+
- [v6.6.1](#v661)
142+
- [Patch Changes](#patch-changes-37)
140143
- [v6.6.0](#v660)
141144
- [What's Changed](#whats-changed-13)
142-
- [Minor Changes](#minor-changes-19)
143-
- [Patch Changes](#patch-changes-37)
144-
- [v6.5.0](#v650)
145-
- [What's Changed](#whats-changed-14)
146145
- [Minor Changes](#minor-changes-20)
147146
- [Patch Changes](#patch-changes-38)
148-
- [v6.4.5](#v645)
147+
- [v6.5.0](#v650)
148+
- [What's Changed](#whats-changed-14)
149+
- [Minor Changes](#minor-changes-21)
149150
- [Patch Changes](#patch-changes-39)
150-
- [v6.4.4](#v644)
151+
- [v6.4.5](#v645)
151152
- [Patch Changes](#patch-changes-40)
152-
- [v6.4.3](#v643)
153+
- [v6.4.4](#v644)
153154
- [Patch Changes](#patch-changes-41)
154-
- [v6.4.2](#v642)
155+
- [v6.4.3](#v643)
155156
- [Patch Changes](#patch-changes-42)
156-
- [v6.4.1](#v641)
157+
- [v6.4.2](#v642)
157158
- [Patch Changes](#patch-changes-43)
159+
- [v6.4.1](#v641)
160+
- [Patch Changes](#patch-changes-44)
158161
- [v6.4.0](#v640)
159162
- [What's Changed](#whats-changed-15)
160163
- [Remix Data APIs](#remix-data-apis)
161-
- [Patch Changes](#patch-changes-44)
164+
- [Patch Changes](#patch-changes-45)
162165
- [v6.3.0](#v630)
163-
- [Minor Changes](#minor-changes-21)
166+
- [Minor Changes](#minor-changes-22)
164167
- [v6.2.2](#v622)
165-
- [Patch Changes](#patch-changes-45)
166-
- [v6.2.1](#v621)
167168
- [Patch Changes](#patch-changes-46)
168-
- [v6.2.0](#v620)
169-
- [Minor Changes](#minor-changes-22)
169+
- [v6.2.1](#v621)
170170
- [Patch Changes](#patch-changes-47)
171-
- [v6.1.1](#v611)
172-
- [Patch Changes](#patch-changes-48)
173-
- [v6.1.0](#v610)
171+
- [v6.2.0](#v620)
174172
- [Minor Changes](#minor-changes-23)
173+
- [Patch Changes](#patch-changes-48)
174+
- [v6.1.1](#v611)
175175
- [Patch Changes](#patch-changes-49)
176-
- [v6.0.2](#v602)
176+
- [v6.1.0](#v610)
177+
- [Minor Changes](#minor-changes-24)
177178
- [Patch Changes](#patch-changes-50)
178-
- [v6.0.1](#v601)
179+
- [v6.0.2](#v602)
179180
- [Patch Changes](#patch-changes-51)
181+
- [v6.0.1](#v601)
182+
- [Patch Changes](#patch-changes-52)
180183
- [v6.0.0](#v600)
181184

182185
</details>
@@ -200,6 +203,28 @@ Date: YYYY-MM-DD
200203
**Full Changelog**: [`v6.X.Y...v6.X.Y`](https://github.com/remix-run/react-router/compare/[email protected]@6.X.Y)
201204
-->
202205

206+
## v6.26.0
207+
208+
Date: 2024-08-01
209+
210+
### Minor Changes
211+
212+
- Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#11811](https://github.com/remix-run/react-router/pull/11811))
213+
- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#11836](https://github.com/remix-run/react-router/pull/11836))
214+
- This API is not intended for direct usage in React Router SPA applications
215+
- It is primarily intended for usage with `createStaticHandler.query()` to allow loaders/actions to return arbitrary data along with custom `status`/`headers` without forcing the serialization of data into a `Response` instance
216+
- This allows for more advanced serialization tactics via `unstable_dataStrategy` such as serializing via `turbo-stream` in Remix Single Fetch
217+
- ⚠️ This removes the `status` field from `HandlerResult`
218+
- If you need to return a specific `status` from `unstable_dataStrategy` you should instead do so via `unstable_data()`
219+
220+
### Patch Changes
221+
222+
- Fix internal cleanup of interrupted fetchers to avoid invalid revalidations on navigations ([#11839](https://github.com/remix-run/react-router/pull/11839))
223+
- Fix initial hydration behavior when using `future.v7_partialHydration` along with `unstable_patchRoutesOnMiss` ([#11838](https://github.com/remix-run/react-router/pull/11838))
224+
- During initial hydration, `router.state.matches` will now include any partial matches so that we can render ancestor `HydrateFallback` components
225+
226+
**Full Changelog**: [`v6.25.1...v6.26.0`](https://github.com/remix-run/react-router/compare/[email protected]@6.26.0)
227+
203228
## v6.25.1
204229

205230
Date: 2024-07-17

docs/fetch/replace.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: replace
3+
new: true
4+
---
5+
6+
# `replace`
7+
8+
This is a small wrapper around [`redirect`][redirect] that will trigger a client-side redirect to the new location using `history.replaceState` instead of `history.pushState`.
9+
10+
## Type Declaration
11+
12+
```ts
13+
type RedirectFunction = (
14+
url: string,
15+
init?: number | ResponseInit
16+
) => Response;
17+
```
18+
19+
## `url`
20+
21+
The URL to redirect to.
22+
23+
```js
24+
replace("/otherapp/login");
25+
```
26+
27+
## `init`
28+
29+
The `status` or the [Response][response] options to be used in the response.
30+
31+
[response]: https://developer.mozilla.org/en-US/docs/Web/API/Response/Response
32+
[redirect]: ./redirect

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

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

3+
## 6.26.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@remix-run/[email protected]`
9+
10+
11+
312
## 6.25.1
413

514
### Patch Changes

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.25.1",
3+
"version": "6.26.0",
44
"description": "Migration path to React Router v6 from v4/5",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)