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

packages/react-router-dom/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-dom",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Declarative routing for React web applications",
55
"keywords": [
66
"react",

packages/react-router-express/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# `@react-router/express`
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-express/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/express",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Express server request handler for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-fs-routes/CHANGELOG.md

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

3+
## 7.6.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@react-router/[email protected]`
9+
310
## 7.5.3
411

512
### Patch Changes

packages/react-router-fs-routes/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/fs-routes",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "File system routing conventions for React Router, for use within routes.ts",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-node/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# `@react-router/node`
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-node/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/node",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Node.js platform abstractions for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-remix-routes-option-adapter/CHANGELOG.md

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

3+
## 7.6.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@react-router/[email protected]`
9+
310
## 7.5.3
411

512
### Patch Changes

packages/react-router-remix-routes-option-adapter/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/remix-routes-option-adapter",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Adapter for Remix's \"routes\" config option, for use within routes.ts",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router-serve/CHANGELOG.md

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

3+
## 7.6.0-pre.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
9+
- `@react-router/[email protected]`
10+
- `@react-router/[email protected]`
11+
312
## 7.5.3
413

514
### Patch Changes

packages/react-router-serve/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/serve",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Production application server for React Router",
55
"bugs": {
66
"url": "https://github.com/remix-run/react-router/issues"

packages/react-router/CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
# `react-router`
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+
- Add support for route component props in `createRoutesStub`. This allows you to unit test your route components using the props instead of the hooks: ([#13528](https://github.com/remix-run/react-router/pull/13528))
17+
18+
```tsx
19+
let RoutesStub = createRoutesStub([
20+
{
21+
path: "/",
22+
Component({ loaderData }) {
23+
let data = loaderData as { message: string };
24+
return <pre data-testid="data">Message: {data.message}</pre>;
25+
},
26+
loader() {
27+
return { message: "hello" };
28+
},
29+
},
30+
]);
31+
32+
render(<RoutesStub />);
33+
34+
await waitFor(() => screen.findByText("Message: hello"));
35+
```
36+
37+
### Patch Changes
38+
39+
- Fix `react-router` module augmentation for `NodeNext` ([#13498](https://github.com/remix-run/react-router/pull/13498))
40+
- Don't bundle `react-router` in `react-router/dom` CJS export ([#13497](https://github.com/remix-run/react-router/pull/13497))
41+
- Fix bug where a submitting `fetcher` would get stuck in a `loading` state if a revalidating `loader` redirected ([#12873](https://github.com/remix-run/react-router/pull/12873))
42+
- Fix hydration error if a server `loader` returned `undefined` ([#13496](https://github.com/remix-run/react-router/pull/13496))
43+
- Fix initial load 404 scenarios in data mode ([#13500](https://github.com/remix-run/react-router/pull/13500))
44+
- Stabilize `useRevalidator`'s `revalidate` function ([#13542](https://github.com/remix-run/react-router/pull/13542))
45+
- Preserve status code if a `clientAction` throws a `data()` result in framework mode ([#13522](https://github.com/remix-run/react-router/pull/13522))
46+
- Be defensive against leading double slashes in paths to avoid `Invalid URL` errors from the URL constructor ([#13510](https://github.com/remix-run/react-router/pull/13510))
47+
48+
- Note we do not sanitize/normalize these paths - we only detect them so we can avoid the error that would be thrown by `new URL("//", window.location.origin)`
49+
50+
- Remove `Navigator` declaration for `navigator.connection.saveData` to avoid messing with any other types beyond `saveData` in userland ([#13512](https://github.com/remix-run/react-router/pull/13512))
51+
- Fix `handleError` `params` values on `.data` requests for routes with a dynamic param as the last URL segment ([#13481](https://github.com/remix-run/react-router/pull/13481))
52+
- Don't trigger an `ErrorBoundary` UI before the reload when we detect a manifest verison mismatch in Lazy Route Discovery ([#13480](https://github.com/remix-run/react-router/pull/13480))
53+
- Inline `[email protected]` dependency and fix decoding ordering of Map/Set instances ([#13518](https://github.com/remix-run/react-router/pull/13518))
54+
- Only render dev warnings in DEV mode ([#13461](https://github.com/remix-run/react-router/pull/13461))
55+
- UNSTABLE: Fix a few bugs with error bubbling in middleware use-cases ([#13538](https://github.com/remix-run/react-router/pull/13538))
56+
- Short circuit post-processing on aborted `dataStrategy` requests ([#13521](https://github.com/remix-run/react-router/pull/13521))
57+
58+
- This resolves non-user-facing console errors of the form `Cannot read properties of undefined (reading 'result')`
59+
360
## 7.5.3
461

562
### Patch Changes

packages/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": "react-router",
3-
"version": "7.5.3",
3+
"version": "7.6.0-pre.0",
44
"description": "Declarative routing for React",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)