You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
13
13
<summary>Table of Contents</summary>
14
14
15
15
- [React Router Releases](#react-router-releases)
16
+
- [v7.14.2](#v7142)
16
17
- [v7.14.1](#v7141)
17
18
- [v7.14.0](#v7140)
18
19
- [v7.13.2](#v7132)
@@ -168,6 +169,69 @@ We manage release notes in this file instead of the paginated Github Releases Pa
168
169
169
170
</details>
170
171
172
+
## v7.14.2
173
+
174
+
Date: 2026-04-20
175
+
176
+
### Patch Changes
177
+
178
+
- `react-router` - Remove the un-documented custom error serialization logic from the internal turbo-stream implementation. React Router only automatically handles serialization of `Error` and it's standard subtypes (`SyntaxError`, `TypeError`, etc.). ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
- `react-router` - Improved types for `generatePath`'s `param` arg ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
185
+
186
+
Type errors when required params are omitted:
187
+
188
+
```ts
189
+
// Before
190
+
// Passes type checks, but throws at runtime 💥
191
+
generatePath(":required", { required: null });
192
+
193
+
// After
194
+
generatePath(":required", { required: null });
195
+
// ^^^^^^^^ Type 'null' is not assignable to type 'string'.ts(2322)
196
+
```
197
+
198
+
Allow omission of optional params:
199
+
200
+
```ts
201
+
// Before
202
+
generatePath(":optional?", {});
203
+
// ^^ Property 'optional' is missing in type '{}' but required in type '{ optional: string | null | undefined; }'.ts(2741)
204
+
205
+
// After
206
+
generatePath(":optional?", {});
207
+
```
208
+
209
+
Allows extra keys:
210
+
211
+
```ts
212
+
// Before
213
+
generatePath(":a", { a: "1", b: "2" });
214
+
// ^ Object literal may only specify known properties, and 'b' does not exist in type '{ a: string; }'.ts(2353)
215
+
216
+
// After
217
+
generatePath(":a", { a: "1", b: "2" });
218
+
```
219
+
220
+
- `@react-router/dev` - Fix typegen for layouts without pages ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
221
+
222
+
Previously, typegen could produce `pages: ;` in `.react-router/types/+routes.ts` when a route corresponded to 0 pages.
223
+
Now, `pages: never;` is correctly generated for those cases.
224
+
225
+
### Unstable Changes
226
+
227
+
⚠️ _[Unstable features](https://reactrouter.com/community/api-development-strategy#unstable-flags) are not recommended for production use_
228
+
229
+
- `@react-router/dev` - For `unstable_reactRouterRSC` Vite plugin consumers, require `@vitejs/plugin-react` in user Vite config, and more reliably split route modules. ([#14965](https://github.com/remix-run/react-router/pull/14965)) ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
230
+
231
+
- ⚠️ This is a breaking change if you have begun using the `unstable_reactRouterRSC` Vite plugin - please install `@vitejs/plugin-react` and add the `react` plugin to your Vite plugins array.
Copy file name to clipboardExpand all lines: packages/react-router-dev/CHANGELOG.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,26 @@
1
1
# `@react-router/dev`
2
2
3
+
## v7.14.2
4
+
5
+
### Patch Changes
6
+
7
+
- Fix typegen for layouts without pages ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
8
+
9
+
Previously, typegen could produce `pages: ;` in `.react-router/types/+routes.ts` when a route corresponded to 0 pages.
10
+
Now, `pages: never;` is correctly generated for those cases.
11
+
12
+
### Unstable Changes
13
+
14
+
⚠️ _[Unstable features](https://reactrouter.com/community/api-development-strategy#unstable-flags) are not recommended for production use_
15
+
16
+
- For `unstable_reactRouterRSC` Vite plugin consumers, require `@vitejs/plugin-react` in user Vite config, and more reliably split route modules. ([#14965](https://github.com/remix-run/react-router/pull/14965)) ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
17
+
18
+
- ⚠️ This is a breaking change if you have begun using the `unstable_reactRouterRSC` Vite plugin - please install `@vitejs/plugin-react` and add the `react` plugin to your Vite plugins array.
0 commit comments