Skip to content
Merged
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
11 changes: 10 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,14 @@
"@playground/split-route-modules-spa": "0.0.0",
"@playground/vite-plugin-cloudflare": "0.0.0"
},
"changesets": []
"changesets": [
"mighty-books-sing",
"olive-suns-rest",
"rsc-module-api",
"slimy-tips-explode",
"support-vite-8",
"sweet-trees-visit",
"weak-maps-double",
"weak-poems-press"
]
}
2 changes: 2 additions & 0 deletions packages/create-react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# `create-react-router`

## 7.14.0-pre.0

## 7.13.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,6 +1,6 @@
{
"name": "create-react-router",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"description": "Create a new React Router app",
"homepage": "https://reactrouter.com",
"bugs": {
Expand Down
8 changes: 8 additions & 0 deletions packages/react-router-architect/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# `@react-router/architect`

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router@7.14.0-pre.0`
- `@react-router/node@7.14.0-pre.0`

## 7.13.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,6 +1,6 @@
{
"name": "@react-router/architect",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"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`

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router@7.14.0-pre.0`

## 7.13.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,6 +1,6 @@
{
"name": "@react-router/cloudflare",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"description": "Cloudflare platform abstractions for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
73 changes: 73 additions & 0 deletions packages/react-router-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,78 @@
# `@react-router/dev`

## 7.14.0-pre.0

### Minor Changes

- Add support for Vite 8 ([#14876](https://github.com/remix-run/react-router/pull/14876))

### Patch Changes

- support for prerendering multiple server bundles with v8_viteEnvironmentApi ([#14921](https://github.com/remix-run/react-router/pull/14921))
- rsc framework mode prerender / spa mode support ([#14907](https://github.com/remix-run/react-router/pull/14907))
- UNSTABLE RSC FRAMEWORK MODE BREAKING CHANGE - Existing route module exports remain unchanged from stable v7 non-RSC mode, but new exports are added for RSC mode. If you want to use RSC features, you will need to update your route modules to export the new annotations. ([#14901](https://github.com/remix-run/react-router/pull/14901))

If you are using RSC framework mode currently, you will need to update your route modules to the new conventions. The following route module components have their own mutually exclusive server component counterparts:

| Server Component Export | Client Component |
| ----------------------- | ----------------- |
| `ServerComponent` | `default` |
| `ServerErrorBoundary` | `ErrorBoundary` |
| `ServerLayout` | `Layout` |
| `ServerHydrateFallback` | `HydrateFallback` |

If you were previously exporting a `ServerComponent`, your `ErrorBoundary`, `Layout`, and `HydrateFallback` were also server components. If you want to keep those as server components, you can rename them and prefix them with `Server`. If you were previously importing the implementations of those components from a client module, you can simply inline them.

Example:

Before

```tsx
import { ErrorBoundary as ClientErrorBoundary } from "./client";

export function ServerComponent() {
// ...
}

export function ErrorBoundary() {
return <ClientErrorBoundary />;
}

export function Layout() {
// ...
}

export function HydrateFallback() {
// ...
}
```

After

```tsx
export function ServerComponent() {
// ...
}

export function ErrorBoundary() {
// previous implementation of ClientErrorBoundary, this is now a client component
}

export function ServerLayout() {
// rename previous Layout export to ServerLayout to make it a server component
}

export function ServerHydrateFallback() {
// rename previous HydrateFallback export to ServerHydrateFallback to make it a server component
}
```

- update the reveal command to support rsc for `entry.client`, `entry.rsc`, `entry.ssr` ([#14904](https://github.com/remix-run/react-router/pull/14904))
- Updated dependencies:
- `react-router@7.14.0-pre.0`
- `@react-router/node@7.14.0-pre.0`
- `@react-router/serve@7.14.0-pre.0`

## 7.13.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,6 +1,6 @@
{
"name": "@react-router/dev",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"description": "Dev tools and CLI for React Router",
"homepage": "https://reactrouter.com",
"bugs": {
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# react-router-dom

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router@7.14.0-pre.0`

## 7.13.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router-dom",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"description": "Declarative routing for React web applications",
"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`

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router@7.14.0-pre.0`
- `@react-router/node@7.14.0-pre.0`

## 7.13.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,6 +1,6 @@
{
"name": "@react-router/express",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"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`

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `@react-router/dev@7.14.0-pre.0`

## 7.13.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,6 +1,6 @@
{
"name": "@react-router/fs-routes",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"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`

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router@7.14.0-pre.0`

## 7.13.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,6 +1,6 @@
{
"name": "@react-router/node",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"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`

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `@react-router/dev@7.14.0-pre.0`

## 7.13.2

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-router/remix-routes-option-adapter",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"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`

## 7.14.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router@7.14.0-pre.0`
- `@react-router/node@7.14.0-pre.0`
- `@react-router/express@7.14.0-pre.0`

## 7.13.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,6 +1,6 @@
{
"name": "@react-router/serve",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"description": "Production application server for React Router",
"bugs": {
"url": "https://github.com/remix-run/react-router/issues"
Expand Down
65 changes: 65 additions & 0 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,70 @@
# `react-router`

## 7.14.0-pre.0

### Patch Changes

- UNSTABLE RSC FRAMEWORK MODE BREAKING CHANGE - Existing route module exports remain unchanged from stable v7 non-RSC mode, but new exports are added for RSC mode. If you want to use RSC features, you will need to update your route modules to export the new annotations. ([#14901](https://github.com/remix-run/react-router/pull/14901))

If you are using RSC framework mode currently, you will need to update your route modules to the new conventions. The following route module components have their own mutually exclusive server component counterparts:

| Server Component Export | Client Component |
| ----------------------- | ----------------- |
| `ServerComponent` | `default` |
| `ServerErrorBoundary` | `ErrorBoundary` |
| `ServerLayout` | `Layout` |
| `ServerHydrateFallback` | `HydrateFallback` |

If you were previously exporting a `ServerComponent`, your `ErrorBoundary`, `Layout`, and `HydrateFallback` were also server components. If you want to keep those as server components, you can rename them and prefix them with `Server`. If you were previously importing the implementations of those components from a client module, you can simply inline them.

Example:

Before

```tsx
import { ErrorBoundary as ClientErrorBoundary } from "./client";

export function ServerComponent() {
// ...
}

export function ErrorBoundary() {
return <ClientErrorBoundary />;
}

export function Layout() {
// ...
}

export function HydrateFallback() {
// ...
}
```

After

```tsx
export function ServerComponent() {
// ...
}

export function ErrorBoundary() {
// previous implementation of ClientErrorBoundary, this is now a client component
}

export function ServerLayout() {
// rename previous Layout export to ServerLayout to make it a server component
}

export function ServerHydrateFallback() {
// rename previous HydrateFallback export to ServerHydrateFallback to make it a server component
}
```

- rsc Link prefetch ([#14902](https://github.com/remix-run/react-router/pull/14902))
- Remove recursion from turbo-stream v2 allowing for encoding / decoding of massive payloads. ([#14838](https://github.com/remix-run/react-router/pull/14838))
- encodeViaTurboStream leaked memory via unremoved AbortSignal listener ([#14900](https://github.com/remix-run/react-router/pull/14900))

## 7.13.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "7.13.2",
"version": "7.14.0-pre.0",
"description": "Declarative routing for React",
"keywords": [
"react",
Expand Down