Skip to content

Commit c3d0225

Browse files
committed
Merge branch 'dev' into markdalgleish/handle-new-config-file
2 parents df8d61c + 4037e51 commit c3d0225

File tree

294 files changed

+26885
-4303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

294 files changed

+26885
-4303
lines changed

.changeset/afraid-games-rush.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Fix `react-router` module augmentation for `NodeNext`

.changeset/angry-students-pay.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@react-router/dev": minor
3+
"react-router": minor
4+
---
5+
6+
Added a new `react-router.config.ts` `routeDiscovery` option to configure Lazy Route Discovery behavior.
7+
8+
- By default, Lazy Route Discovery is enabled and makes manifest requests to the `/__manifest` path:
9+
- `routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }`
10+
- You can modify the manifest path used:
11+
- `routeDiscovery: { mode: "lazy", manifestPath: "/custom-manifest" }`
12+
- Or you can disable this feature entirely and include all routes in the manifest on initial document load:
13+
- `routeDiscovery: { mode: "initial" }`

.changeset/bright-experts-grab.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
Support project root directories without a `package.json` if it exists in a parent directory

.changeset/cold-seals-count.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
When providing a custom Vite config path via the CLI `--config`/`-c` flag, default the project root directory to the directory containing the Vite config when not explicitly provided

.changeset/curvy-queens-hug.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Fix hydration error if a server `loader` returned `undefined`

.changeset/dirty-balloons-stare.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
In a `routes.ts` context, ensure the `--mode` flag is respected for `import.meta.env.MODE`
6+
7+
Previously, `import.meta.env.MODE` within a `routes.ts` context was always `"development"` for the `dev` and `typegen --watch` commands, but otherwise resolved to `"production"`. These defaults are still in place, but if a `--mode` flag is provided, this will now take precedence.

.changeset/dull-hotels-battle.md

-5
This file was deleted.

.changeset/eleven-oranges-cheat.md

-5
This file was deleted.

.changeset/forty-ants-teach.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
Ensure consistent project root directory resolution logic in CLI commands

.changeset/little-cups-deliver.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
When executing `react-router.config.ts` and `routes.ts` with `vite-node`, ensure that PostCSS config files are ignored

.changeset/pink-candles-allow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Fix `handleError` `params` values on `.data` requests for routes with a dynamic param as the last URL segment

.changeset/rude-cobras-warn.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
When `future.unstable_viteEnvironmentApi` is enabled, ensure that `build.assetsDir` in Vite config is respected when `environments.client.build.assetsDir` is not configured

.changeset/silly-ligers-dress.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Don't trigger an `ErrorBoundary` UI before the reload when we detect a manifest verison mismatch in Lazy Route Discovery

.changeset/silver-peas-shop.md

-5
This file was deleted.

.changeset/sour-eggs-give.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
Fix "Status message is not supported by HTTP/2" error during dev when using HTTPS

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules/
33
pnpm-lock.yaml
44
/docs/api
55
examples/**/dist/
6+
/integration/helpers/vite-plugin-cloudflare-template/worker-configuration.d.ts
67
/playground/
78
/playground-local/
89
packages/**/dist/

.github/workflows/integration-full.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
name: Branch
22

3-
# main/dev/release-* branches will get the full run across
3+
# main/dev branches will get the full run across
44
# all OS/browsers for multiple node versions
55

66
on:
77
push:
88
branches:
99
- main
1010
- dev
11-
- release-*
12-
tags:
13-
- "v0.0.0-nightly-*"
1411
paths-ignore:
1512
- ".changeset/**"
1613
- "decisions/**"

.github/workflows/shared-build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
node-version-file: ".nvmrc"
2323
cache: "pnpm"
2424

25-
- uses: google/wireit@setup-github-actions-caching/v2
25+
# TODO: Track and renable once this has been fixed: https://github.com/google/wireit/issues/1297
26+
# - uses: google/wireit@setup-github-actions-caching/v2
2627

2728
- name: Disable GitHub Actions Annotations
2829
run: |

.github/workflows/shared-integration.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
node-version: ${{ matrix.node }}
4646
cache: "pnpm"
4747

48-
- uses: google/wireit@setup-github-actions-caching/v2
48+
# TODO: Track and renable once this has been fixed: https://github.com/google/wireit/issues/1297
49+
# - uses: google/wireit@setup-github-actions-caching/v2
4950

5051
- name: Disable GitHub Actions Annotations
5152
run: |

.github/workflows/test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
cache: pnpm
4646
check-latest: true
4747

48-
- uses: google/wireit@setup-github-actions-caching/v2
48+
# TODO: Track and renable once this has been fixed: https://github.com/google/wireit/issues/1297
49+
# - uses: google/wireit@setup-github-actions-caching/v2
4950

5051
- name: Disable GitHub Actions Annotations
5152
run: |

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.DS_Store
22
npm-debug.log
33

4-
/docs/api/
54
/website/build/
65
node_modules/
76

0 commit comments

Comments
 (0)