Skip to content

Commit cf1d250

Browse files
Release v7.14.2 (#14993)
Co-authored-by: Remix Run Bot <hello@remix.run>
1 parent aabf4a1 commit cf1d250

29 files changed

Lines changed: 208 additions & 56 deletions

CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ 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+
- [v7.14.2](#v7142)
1617
- [v7.14.1](#v7141)
1718
- [v7.14.0](#v7140)
1819
- [v7.13.2](#v7132)
@@ -168,6 +169,69 @@ We manage release notes in this file instead of the paginated Github Releases Pa
168169

169170
</details>
170171

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))
179+
180+
- `react-router` - Properly handle parent middleware redirects during `fetcher.load` ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
181+
182+
- `react-router` - Remove redundant `Omit<RouterProviderProps, "flushSync">` from `react-router/dom` `RouterProvider` ([[aabf4a1](https://github.com/remix-run/react-router/commit/aabf4a1))
183+
184+
- `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.
232+
233+
**Full Changelog**: [`v7.14.1...v7.14.2`](https://github.com/remix-run/react-router/compare/react-router@7.14.1...react-router@7.14.2)
234+
171235
## v7.14.1
172236

173237
Date: 2026-04-13

packages/create-react-router/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# `create-react-router`
22

3+
## v7.14.2
4+
5+
### Patch Changes
6+
7+
- _No changes_
8+
39
## v7.14.1
410

511
### Patch Changes

packages/create-react-router/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-react-router",
3-
"version": "7.14.1",
3+
"version": "7.14.2",
44
"description": "Create a new React Router app",
55
"homepage": "https://reactrouter.com",
66
"bugs": {

packages/react-router-architect/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# `@react-router/architect`
22

3+
## v7.14.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- [`react-router@7.14.2`](https://github.com/remix-run/react-router/releases/tag/react-router@7.14.2)
9+
- [`@react-router/node@7.14.2`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@7.14.2)
10+
311
## v7.14.1
412

513
### Patch Changes

packages/react-router-architect/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/architect",
3-
"version": "7.14.1",
3+
"version": "7.14.2",
44
"description": "Architect server request handler for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-cloudflare/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# `@react-router/cloudflare`
22

3+
## v7.14.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- [`react-router@7.14.2`](https://github.com/remix-run/react-router/releases/tag/react-router@7.14.2)
9+
310
## v7.14.1
411

512
### Patch Changes

packages/react-router-cloudflare/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/cloudflare",
3-
"version": "7.14.1",
3+
"version": "7.14.2",
44
"description": "Cloudflare platform abstractions for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-dev/.changes/patch.fix-typegen-layouts-without-pages.md

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

packages/react-router-dev/.changes/unstable.three-buses-develop.md

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

packages/react-router-dev/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# `@react-router/dev`
22

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.
19+
- Updated dependencies:
20+
- [`react-router@7.14.2`](https://github.com/remix-run/react-router/releases/tag/react-router@7.14.2)
21+
- [`@react-router/node@7.14.2`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@7.14.2)
22+
- [`@react-router/serve@7.14.2`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@7.14.2)
23+
324
## v7.14.1
425

526
### Patch Changes

0 commit comments

Comments
 (0)