Skip to content

Commit 3adc571

Browse files
chore: Update version for release (pre) (#13545)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent c9234c5 commit 3adc571

File tree

23 files changed

+245
-12
lines changed

23 files changed

+245
-12
lines changed

.changeset/pre.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,35 @@
2828
"@playground/split-route-modules-spa": "0.0.0",
2929
"@playground/vite-plugin-cloudflare": "0.0.0"
3030
},
31-
"changesets": []
31+
"changesets": [
32+
"afraid-games-rush",
33+
"angry-students-pay",
34+
"breezy-pets-hug",
35+
"bright-experts-grab",
36+
"cold-seals-count",
37+
"curvy-lobsters-accept",
38+
"curvy-queens-hug",
39+
"dirty-balloons-stare",
40+
"eighty-mangos-move",
41+
"fast-planets-matter",
42+
"forty-ants-teach",
43+
"healthy-readers-kick",
44+
"large-lobsters-grin",
45+
"late-hats-yell",
46+
"little-cups-deliver",
47+
"ninety-snails-shout",
48+
"odd-tools-work",
49+
"pink-candles-allow",
50+
"proud-needles-destroy",
51+
"rude-cobras-warn",
52+
"silly-ligers-dress",
53+
"six-squids-tickle",
54+
"sour-eggs-give",
55+
"stupid-kiwis-laugh",
56+
"ten-pears-wash",
57+
"thirty-bugs-jump",
58+
"tough-dancers-own",
59+
"twenty-snakes-love",
60+
"witty-brooms-work"
61+
]
3262
}

packages/create-react-router/CHANGELOG.md

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

3+
## 7.6.0-pre.0
4+
35
## 7.5.3
46

57
_No 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.5.3",
3+
"version": "7.6.0-pre.0",
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+
## 7.6.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
- `@react-router/[email protected]`
10+
311
## 7.5.3
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.5.3",
3+
"version": "7.6.0-pre.0",
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+
## 7.6.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
310
## 7.5.3
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.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Cloudflare platform abstractions for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-dev/CHANGELOG.md

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

3+
## 7.6.0-pre.0
4+
5+
### Minor Changes
6+
7+
- Added a new `react-router.config.ts` `routeDiscovery` option to configure Lazy Route Discovery behavior. ([#13451](https://github.com/remix-run/react-router/pull/13451))
8+
9+
- By default, Lazy Route Discovery is enabled and makes manifest requests to the `/__manifest` path:
10+
- `routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }`
11+
- You can modify the manifest path used:
12+
- `routeDiscovery: { mode: "lazy", manifestPath: "/custom-manifest" }`
13+
- Or you can disable this feature entirely and include all routes in the manifest on initial document load:
14+
- `routeDiscovery: { mode: "initial" }`
15+
16+
- Automatic types for future flags ([#13506](https://github.com/remix-run/react-router/pull/13506))
17+
18+
Some future flags alter the way types should work in React Router.
19+
Previously, you had to remember to manually opt-in to the new types.
20+
21+
For example, for `unstable_middleware`:
22+
23+
```ts
24+
// react-router.config.ts
25+
26+
// Step 1: Enable middleware
27+
export default {
28+
future: {
29+
unstable_middleware: true,
30+
},
31+
};
32+
33+
// Step 2: Enable middleware types
34+
declare module "react-router" {
35+
interface Future {
36+
unstable_middleware: true; // 👈 Enable middleware types
37+
}
38+
}
39+
```
40+
41+
It was up to you to keep the runtime future flags synced with the types for those future flags.
42+
This was confusing and error-prone.
43+
44+
Now, React Router will automatically enable types for future flags.
45+
That means you only need to specify the runtime future flag:
46+
47+
```ts
48+
// react-router.config.ts
49+
50+
// Step 1: Enable middleware
51+
export default {
52+
future: {
53+
unstable_middleware: true,
54+
},
55+
};
56+
57+
// No step 2! That's it!
58+
```
59+
60+
Behind the scenes, React Router will generate the corresponding `declare module` into `.react-router/types`.
61+
Currently this is done in `.react-router/types/+register.ts` but this is an implementation detail that may change in the future.
62+
63+
### Patch Changes
64+
65+
- Support project root directories without a `package.json` if it exists in a parent directory ([#13472](https://github.com/remix-run/react-router/pull/13472))
66+
- 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 ([#13472](https://github.com/remix-run/react-router/pull/13472))
67+
- In a `routes.ts` context, ensure the `--mode` flag is respected for `import.meta.env.MODE` ([#13485](https://github.com/remix-run/react-router/pull/13485))
68+
69+
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.
70+
71+
- Ensure consistent project root directory resolution logic in CLI commands ([#13472](https://github.com/remix-run/react-router/pull/13472))
72+
- When executing `react-router.config.ts` and `routes.ts` with `vite-node`, ensure that PostCSS config files are ignored ([#13489](https://github.com/remix-run/react-router/pull/13489))
73+
- When extracting critical CSS during development, ensure it's loaded from the client environment to avoid issues with plugins that handle the SSR environment differently ([#13503](https://github.com/remix-run/react-router/pull/13503))
74+
- When `future.unstable_viteEnvironmentApi` is enabled, ensure that `build.assetsDir` in Vite config is respected when `environments.client.build.assetsDir` is not configured ([#13491](https://github.com/remix-run/react-router/pull/13491))
75+
- Fix "Status message is not supported by HTTP/2" error during dev when using HTTPS ([#13460](https://github.com/remix-run/react-router/pull/13460))
76+
- Update config when `react-router.config.ts` is created or deleted during development. ([#12319](https://github.com/remix-run/react-router/pull/12319))
77+
- Skip unnecessary `routes.ts` evaluation before Vite build is started ([#13513](https://github.com/remix-run/react-router/pull/13513))
78+
- Fix `TS2300: Duplicate identifier` errors caused by generated types ([#13499](https://github.com/remix-run/react-router/pull/13499))
79+
80+
Previously, routes that had the same full path would cause duplicate entries in the generated types for `href` (`.react-router/types/+register.ts`), causing type checking errors.
81+
82+
- Updated dependencies:
83+
84+
- `@react-router/[email protected]`
85+
- `@react-router/[email protected]`
86+
387
## 7.5.3
488

589
### Patch Changes

packages/react-router-dev/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/dev",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Dev tools and CLI for React Router",
55
"homepage": "https://reactrouter.com",
66
"bugs": {

packages/react-router-dom/CHANGELOG.md

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

3+
## 7.6.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
310
## 7.5.3
411

512
### Patch Changes

0 commit comments

Comments
 (0)