Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ 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)
- [v8.5.3](#v853)
- [v8.5.2](#v852)
- [v8.5.1](#v851)
- [`<Await unstable_promise>`](#await-unstable_promise)
Expand Down Expand Up @@ -123,6 +124,86 @@ We manage release notes in this file instead of the paginated Github Releases Pa

</details>

## v8.5.3

Date: 2026-11-23

### Patch Changes

- `react-router` - Forward all `NavigateOptions` from `<RouterProvider>`'s `navigator.push()` and `navigator.replace()` to `router.navigate()` ([#15781](https://github.com/remix-run/react-router/pull/15781))
- Options such as `mask`, `defaultShouldRevalidate`, `flushSync`, and `viewTransition` now reach the router from `<Link>`, `useNavigate()`, and `useSearchParams()` inside descendant `<Routes>` in Data and Framework modes

- `react-router` - Keep a navigation that is awaiting lazy route discovery from being completed with the previous page's matches when a fetcher action revalidation settles in that window ([#15731](https://github.com/remix-run/react-router/pull/15731))

- `react-router` - Fix circular type error when arrow function route components access `matches` ([#15163](https://github.com/remix-run/react-router/pull/15163))

Accessing `matches` from `Route.ComponentProps` in an arrow function component caused a TypeScript circular type reference error while the equivalent function declaration worked fine.

The issue was that the generated `Matches` tuple included `module: typeof import("./self")` for the current route's entry. TypeScript's `RouteModule` assignability check evaluates `["default"]` — which for arrow functions requires resolving the parameter type annotation, ultimately looping back to `Route.ComponentProps`. Function declarations avoid this because their type is known from the declaration without evaluating parameter types.

The fix changes the type infrastructure to use a `MatchInfoWithLoaderData` alternative for the self-match entry, which carries `loaderData` directly and sidesteps the `RouteModule` check entirely.

- `react-router` - Fix `useBlocker` blocking a second time when the destination route updates search params in a mount effect ([#15538](https://github.com/remix-run/react-router/pull/15538))

- `react-router` - Fix `<Form>` and `useSubmit` to read `encType`/`formEncType` values case-insensitively, so a value like `Multipart/Form-Data` submits as multipart instead of falling back to `application/x-www-form-urlencoded` ([#15776](https://github.com/remix-run/react-router/pull/15776))

- `react-router` - Fix hash history not restoring the router location of a masked entry on Back/Forward ([#15771](https://github.com/remix-run/react-router/pull/15771))

- `react-router` - Fix `<HydratedRouter>` re-rendering the previous route after each navigation ([#15823](https://github.com/remix-run/react-router/pull/15823))

`DataRoutes` read `FrameworkContext`, whose value changes on every `<HydratedRouter>` location update, so its memoization was bypassed and the route tree rendered again with the old router state before the new location committed. With `<Navigate state={...} replace>` this could loop until Safari threw a `SecurityError` for too many `history.replaceState()` calls. `RouterProvider` now reads the route discovery runtime and passes it to `DataRoutes` as a prop.

- `react-router` - Keep the current route's `actionData` during the `loading` state of a submission to another route, so the page that is still rendered no longer sees `undefined` before the navigation completes ([#15716](https://github.com/remix-run/react-router/pull/15716))

- `react-router` - Let the browser handle clicks on a `<Link download>` (and on custom links built with `useLinkClickHandler`) so the file is downloaded instead of being navigated to with client-side routing ([#15815](https://github.com/remix-run/react-router/pull/15815))

- `react-router` - Suppress nonce hydration warnings on critical CSS and HTML link descriptors rendered by `<Links>`, and on the developer scripts rendered by the default root error boundary and hydrate fallback, when using `<ServerRouter nonce>`. ([#15721](https://github.com/remix-run/react-router/pull/15721))

- `react-router` - Fix blocked back/forward navigations in a memory router landing on the wrong history entry when the requested delta goes past the first or last entry ([#15779](https://github.com/remix-run/react-router/pull/15779))

- `react-router` - Preserve `caseSensitive` on client routes in Framework Mode and `createRoutesStub()` ([#15808](https://github.com/remix-run/react-router/pull/15808))
- Forward `route.caseSensitive` in `createClientRoutes()` so client hydration, client-side navigation, lazy route discovery, and HMR match `createServerRoutes()` and `createStaticHandlerDataRoutes()`
- Forward `route.caseSensitive` in `createRoutesStub()`

- `react-router` - Preserve loader data for the current routes when a background fetcher finishes during a navigation, preventing missing layout content when the navigation reuses that data. ([#15806](https://github.com/remix-run/react-router/pull/15806))

- `react-router` - Discard invalid persisted scroll-position records so page hide can save new positions without throwing or silently losing them. ([#15794](https://github.com/remix-run/react-router/pull/15794))

- `react-router` - Fix `session.unset()` to remove both regular and flashed values for the given key and accept flash-only keys in typed sessions. ([#15811](https://github.com/remix-run/react-router/pull/15811))

- `react-router` - Keep `NavLink` inactive in the prerendered Framework SPA fallback and set its active state from the browser URL after hydration ([#15818](https://github.com/remix-run/react-router/pull/15818))

- `react-router` - Be defensive against leading double slashes in static router `encodeLocation()` ([#15805](https://github.com/remix-run/react-router/pull/15805))
- Prevents `TypeError: Invalid URL` during SSR in `<ServerRouter>`, `<StaticRouterProvider>`, and `<StaticRouter>` when encoding locations with leading double slashes (such as query-only or hash-only `<NavLink>`s on double-slash request URLs)

- `react-router` - Fix unhandled single-fetch stream completion rejections while preserving errors for callers awaiting completion or deferred values ([#15765](https://github.com/remix-run/react-router/pull/15765))

- `react-router` - Treat session cookies with an invalid payload shape as empty sessions. Storage adapters receive only nonempty string session IDs, and cookie-backed sessions accept only non-array objects as session data. ([#15809](https://github.com/remix-run/react-router/pull/15809))

- `@react-router/architect` - Fix `sendReactRouterResponse` corrupting binary response bodies whose content type is not in `binaryTypes` and dropping a leading byte order mark from text bodies ([#15814](https://github.com/remix-run/react-router/pull/15814))

- `@react-router/dev` - Fix dev server crash when a route has an invalid export with `ssr: false` + `prerender` ([#15591](https://github.com/remix-run/react-router/pull/15591))
- The export validation was not awaited, so its error became an unhandled rejection that exited the process. It now surfaces as a Vite error and the dev server keeps running.

- `@react-router/dev` - Allow `.server` module imports in Vitest tests that run in Node with Vitest's default middleware-mode server ([#15563](https://github.com/remix-run/react-router/pull/15563))

The check still applies in Browser Mode and when the test runner's Vite server listens, such as single-project runs with `--ui` or `--api`.

- `@react-router/dev` - Fix circular type error when arrow function route components access `matches` ([#15163](https://github.com/remix-run/react-router/pull/15163))

Typegen now emits `{ id, loaderData: Info["loaderData"] }` for the current route's entry in the `Matches` tuple instead of `{ id, module: typeof import("./self") }`. This avoids the `RouteModule` assignability check that caused a circular TypeScript type reference when the route's default export was an arrow function component.

### Unstable Changes

⚠️ _[Unstable features](https://reactrouter.com/community/api-development-strategy#unstable-flags) are not recommended for production use_

- `react-router` - Report loader, action, and middleware errors through `unstable_matchRSCServerRequest`'s `onError` and log request errors with `console.error` by default when no `onError` is provided ([#15598](https://github.com/remix-run/react-router/pull/15598))
- Report middleware errors that occur after a form action consumes the request body.
- Avoid logging route errors again when rendering the default error boundary during SSR in RSC Data and RSC Framework Mode.
- `react-router` - Avoid false 404s in RSC Framework and RSC Data modes when navigating while eager route discovery is still streaming route definitions ([#15801](https://github.com/remix-run/react-router/pull/15801))

**Full Changelog**: [`v8.5.2...v8.5.3`](https://github.com/remix-run/react-router/compare/react-router@8.5.2...react-router@8.5.3)

## v8.5.2

Date: 2026-11-18
Expand Down
6 changes: 6 additions & 0 deletions packages/create-react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# `create-react-router`

## v8.5.3

### Patch Changes

- _No changes_

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-react-router",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Create a new React Router app",
"homepage": "https://reactrouter.com",
"bugs": {
Expand Down

This file was deleted.

9 changes: 9 additions & 0 deletions packages/react-router-architect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# `@react-router/architect`

## v8.5.3

### Patch Changes

- Fix `sendReactRouterResponse` corrupting binary response bodies whose content type is not in `binaryTypes` and dropping a leading byte order mark from text bodies ([#15814](https://github.com/remix-run/react-router/pull/15814))
- Updated dependencies:
- [`react-router@8.5.3`](https://github.com/remix-run/react-router/releases/tag/react-router@8.5.3)
- [`@react-router/node@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-architect/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/architect",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Architect server request handler for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/cloudflare`

## v8.5.3

### Patch Changes

- Updated dependencies:
- [`react-router@8.5.3`](https://github.com/remix-run/react-router/releases/tag/react-router@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/cloudflare",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Cloudflare platform abstractions for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react-router-dev/.changes/patch.dot-server-vitest.md

This file was deleted.

This file was deleted.

19 changes: 19 additions & 0 deletions packages/react-router-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# `@react-router/dev`

## v8.5.3

### Patch Changes

- Fix dev server crash when a route has an invalid export with `ssr: false` + `prerender` ([#15591](https://github.com/remix-run/react-router/pull/15591))
- The export validation was not awaited, so its error became an unhandled rejection that exited the process. It now surfaces as a Vite error and the dev server keeps running.

- Allow `.server` module imports in Vitest tests that run in Node with Vitest's default middleware-mode server ([#15563](https://github.com/remix-run/react-router/pull/15563))

The check still applies in Browser Mode and when the test runner's Vite server listens, such as single-project runs with `--ui` or `--api`.

- Fix circular type error when arrow function route components access `matches` ([#15163](https://github.com/remix-run/react-router/pull/15163))

Typegen now emits `{ id, loaderData: Info["loaderData"] }` for the current route's entry in the `Matches` tuple instead of `{ id, module: typeof import("./self") }`. This avoids the `RouteModule` assignability check that caused a circular TypeScript type reference when the route's default export was an arrow function component.
- Updated dependencies:
- [`react-router@8.5.3`](https://github.com/remix-run/react-router/releases/tag/react-router@8.5.3)
- [`@react-router/node@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.5.3)
- [`@react-router/serve@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/dev",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Dev tools and CLI for React Router",
"keywords": [
"react",
Expand Down
8 changes: 8 additions & 0 deletions packages/react-router-express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# `@react-router/express`

## v8.5.3

### Patch Changes

- Updated dependencies:
- [`react-router@8.5.3`](https://github.com/remix-run/react-router/releases/tag/react-router@8.5.3)
- [`@react-router/node@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-express/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/express",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Express server request handler for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-fs-routes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/fs-routes`

## v8.5.3

### Patch Changes

- Updated dependencies:
- [`@react-router/dev@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/dev@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-fs-routes/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/fs-routes",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "File system routing conventions for React Router, for use within routes.ts",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/node`

## v8.5.3

### Patch Changes

- Updated dependencies:
- [`react-router@8.5.3`](https://github.com/remix-run/react-router/releases/tag/react-router@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/node",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Node.js platform abstractions for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# `@react-router/remix-config-routes-adapter`

## v8.5.3

### Patch Changes

- Updated dependencies:
- [`@react-router/dev@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/dev@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/remix-routes-option-adapter",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Adapter for Remix's \"routes\" config option, for use within routes.ts",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
9 changes: 9 additions & 0 deletions packages/react-router-serve/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# `@react-router/serve`

## v8.5.3

### Patch Changes

- Updated dependencies:
- [`react-router@8.5.3`](https://github.com/remix-run/react-router/releases/tag/react-router@8.5.3)
- [`@react-router/express@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/express@8.5.3)
- [`@react-router/node@8.5.3`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.5.3)

## v8.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-serve/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-router/serve",
"type": "module",
"version": "8.5.2",
"version": "8.5.3",
"description": "Production application server for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion packages/react-router/.changes/patch.hash-history-mask.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading