@react-router/dev 8.0.0-pre.1 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/dist/{build-BNyvbPOz.js → build-ygYOQjbA.js} +2 -2
- package/dist/cli/index.js +7 -7
- package/dist/config/defaults/entry.server.node.tsx +2 -4
- package/dist/config.js +1 -1
- package/dist/{dev-m_IzFFzQ.js → dev-BAYiWwCm.js} +2 -2
- package/dist/{routes-DPac_fCT.js → routes-kAS9QOpS.js} +1 -1
- package/dist/routes.js +2 -2
- package/dist/{typegen-BNUacd46.js → typegen-9e9g0hnu.js} +3 -3
- package/dist/vite.js +6 -6
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
+
## v8.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- [`react-router@8.0.1`](https://github.com/remix-run/react-router/releases/tag/react-router@8.0.1)
|
|
9
|
+
- [`@react-router/node@8.0.1`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.0.1)
|
|
10
|
+
- [`@react-router/serve@8.0.1`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@8.0.1)
|
|
11
|
+
|
|
12
|
+
## v8.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- Remove `@react-router/dev/vite/cloudflare` dev proxy export; use `@cloudflare/vite-plugin` instead ([#15077](https://github.com/remix-run/react-router/pull/15077))
|
|
17
|
+
- Drops support for `wrangler@3` as a peer dependency of `@react-router/dev`
|
|
18
|
+
- Remove the `future.v8_trailingSlashAwareDataRequests` flag ([#15100](https://github.com/remix-run/react-router/pull/15100))
|
|
19
|
+
- Trailing slash-aware data request URLs are now the default behavior.
|
|
20
|
+
- Remove `future.v8_passThroughRequests` flag - the raw incoming `request` is now always passed through to `loader`/`action`. ([#15079](https://github.com/remix-run/react-router/pull/15079))
|
|
21
|
+
- Move `future.v8_splitRouteModules` to a top-level `splitRouteModules` config option and change the default behavior to `true` ([#15086](https://github.com/remix-run/react-router/pull/15086))
|
|
22
|
+
- Set `splitRouteModules: false` to keep route modules in a single chunk
|
|
23
|
+
- Set `splitRouteModules: "enforce"` to require all routes to be splittable
|
|
24
|
+
- Update minimum Node version to 22.22.0 ([#14928](https://github.com/remix-run/react-router/pull/14928))
|
|
25
|
+
- Require Vite 7+ and make the Vite Environment API build path mandatory ([#15077](https://github.com/remix-run/react-router/pull/15077))
|
|
26
|
+
- Removed the `future.v8_viteEnvironmentApi` flag because the Vite Environment API is always enabled ([#15077](https://github.com/remix-run/react-router/pull/15077))
|
|
27
|
+
- Removed the `future.unstable_previewServerPrerendering` flag and make prerendering with the Vite Environment API the default. ([#15077](https://github.com/remix-run/react-router/pull/15077))
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- Bump dependencies ([#15080](https://github.com/remix-run/react-router/pull/15080))
|
|
32
|
+
- Bumped `@babel/core` from `^7.27.7` to `^7.29.7`
|
|
33
|
+
- Bumped `@babel/generator` from `^7.27.5` to `^7.29.7`
|
|
34
|
+
- Bumped `@babel/parser` from `^7.27.7` to `^7.29.7`
|
|
35
|
+
- Bumped `@babel/plugin-syntax-jsx` from `^7.27.1` to `^7.29.7`
|
|
36
|
+
- Bumped `@babel/preset-typescript` from `^7.27.1` to `^7.29.7`
|
|
37
|
+
- Bumped `@babel/traverse` from `^7.27.7` to `^7.29.7`
|
|
38
|
+
- Bumped `@babel/types` from `^7.27.7` to `^7.29.7`
|
|
39
|
+
- Bumped `dedent` from `^1.5.3` to `^1.7.2`
|
|
40
|
+
- Bumped `jsesc` from `3.0.2` to `3.1.0`
|
|
41
|
+
- Bumped `lodash` from `^4.17.21` to `^4.18.1`
|
|
42
|
+
- Bumped `prettier` from `^3.6.2` to `^3.8.3`
|
|
43
|
+
- Bumped `@remix-run/node-fetch-server` from `^0.13.0` to `^0.13.3`
|
|
44
|
+
- Bumped `react-refresh` from `^0.14.0` to `^0.18.0`
|
|
45
|
+
- Bumped `semver` from `^7.3.7` to `^7.8.1`
|
|
46
|
+
- Bumped `tinyglobby` from `^0.2.14` to `^0.2.16`
|
|
47
|
+
- Bumped `valibot` from `^1.2.0` to `^1.4.1`
|
|
48
|
+
- Replace `cookie` and `set-cookie-parser` with `cookie-es` ([#15109](https://github.com/remix-run/react-router/pull/15109))
|
|
49
|
+
- Removed the `vite-node` dependency in favor of Vite's native module runner APIs ([#15104](https://github.com/remix-run/react-router/pull/15104))
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Bump dependencies ([#15080](https://github.com/remix-run/react-router/pull/15080))
|
|
54
|
+
- Bumped `@babel/core` from `^7.29.0` to `^7.29.7`
|
|
55
|
+
- Bumped `@babel/generator` from `^7.29.1` to `^7.29.7`
|
|
56
|
+
- Bumped `@babel/parser` from `^7.29.3` to `^7.29.7`
|
|
57
|
+
- Bumped `@babel/plugin-syntax-jsx` from `^7.28.6` to `^7.29.7`
|
|
58
|
+
- Bumped `@babel/preset-typescript` from `^7.28.5` to `^7.29.7`
|
|
59
|
+
- Bumped `@babel/traverse` from `^7.29.0` to `^7.29.7`
|
|
60
|
+
- Bumped `@babel/types` from `^7.29.0` to `^7.29.7`
|
|
61
|
+
- Bumped `babel-dead-code-elimination` from `^1.0.6` to `^1.0.12`
|
|
62
|
+
- Bumped `chokidar` from `^4.0.0` to `^5.0.0`
|
|
63
|
+
- Bumped `es-module-lexer` from `^1.3.1` to `^2.1.0`
|
|
64
|
+
- Bumped `exit-hook` from `2.2.1` to `5.1.0`
|
|
65
|
+
- Bumped `isbot` from `^5.1.11` to `^5.1.40`
|
|
66
|
+
- Bumped `p-map` from `^7.0.3` to `^7.0.4`
|
|
67
|
+
- Bumped `pathe` from `^1.1.2` to `^2.0.3`
|
|
68
|
+
- Bumped `pkg-types` from `^2.3.0` to `^2.3.1`
|
|
69
|
+
- Bumped `react-refresh` from `^0.14.0` to `^0.18.0`
|
|
70
|
+
- Bumped `semver` from `^7.8.0` to `^7.8.1`
|
|
71
|
+
- Bumped `tinyglobby` from `^0.2.14` to `^0.2.16`
|
|
72
|
+
- Bumped `valibot` from `^1.4.0` to `^1.4.1`
|
|
73
|
+
- Fix Windows libuv assertion (`!(handle->flags & UV_HANDLE_CLOSING)` in `src/win/async.c`) during prerendering by using `node:http` instead of `fetch` for internal prerender requests against the Vite preview server ([#15077](https://github.com/remix-run/react-router/pull/15077))
|
|
74
|
+
- Updated dependencies:
|
|
75
|
+
- [`react-router@8.0.0`](https://github.com/remix-run/react-router/releases/tag/react-router@8.0.0)
|
|
76
|
+
- [`@react-router/node@8.0.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.0.0)
|
|
77
|
+
- [`@react-router/serve@8.0.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@8.0.0)
|
|
78
|
+
|
|
3
79
|
## v7.18.0
|
|
4
80
|
|
|
5
81
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v8.0.
|
|
2
|
+
* @react-router/dev v8.0.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import { g as preloadVite, h as getVite } from "./typegen-
|
|
11
|
+
import { g as preloadVite, h as getVite } from "./typegen-9e9g0hnu.js";
|
|
12
12
|
//#region vite/build.ts
|
|
13
13
|
async function build(root, viteBuildOptions) {
|
|
14
14
|
await preloadVite();
|
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* @react-router/dev v8.0.
|
|
3
|
+
* @react-router/dev v8.0.1
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Remix Software Inc.
|
|
6
6
|
*
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @license MIT
|
|
11
11
|
*/
|
|
12
|
-
import { g as preloadVite, h as getVite, l as loadConfig, n as watch, t as run$1 } from "../typegen-
|
|
12
|
+
import { g as preloadVite, h as getVite, l as loadConfig, n as watch, t as run$1 } from "../typegen-9e9g0hnu.js";
|
|
13
13
|
import { createRequire } from "node:module";
|
|
14
|
-
import fs, { existsSync } from "node:fs";
|
|
15
|
-
import * as path$1 from "node:path";
|
|
16
|
-
import path from "node:path";
|
|
17
14
|
import arg from "arg";
|
|
18
15
|
import semver from "semver";
|
|
19
16
|
import colors from "picocolors";
|
|
17
|
+
import fs, { existsSync } from "node:fs";
|
|
20
18
|
import { copyFile, readFile, writeFile } from "node:fs/promises";
|
|
19
|
+
import * as path$1 from "node:path";
|
|
20
|
+
import path from "node:path";
|
|
21
21
|
import exitHook from "exit-hook";
|
|
22
22
|
import { readPackageJSON } from "pkg-types";
|
|
23
23
|
import "react-router";
|
|
@@ -141,7 +141,7 @@ async function routes(rootDirectory, flags = {}) {
|
|
|
141
141
|
}
|
|
142
142
|
async function build(root, options = {}) {
|
|
143
143
|
root = resolveRootDirectory(root, options);
|
|
144
|
-
let { build } = await import("../build-
|
|
144
|
+
let { build } = await import("../build-ygYOQjbA.js");
|
|
145
145
|
if (options.profile) await start();
|
|
146
146
|
try {
|
|
147
147
|
await build(root, options);
|
|
@@ -150,7 +150,7 @@ async function build(root, options = {}) {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
async function dev(root, options = {}) {
|
|
153
|
-
let { dev } = await import("../dev-
|
|
153
|
+
let { dev } = await import("../dev-BAYiWwCm.js");
|
|
154
154
|
if (options.profile) await start();
|
|
155
155
|
exitHook(() => stop(console.info));
|
|
156
156
|
root = resolveRootDirectory(root, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PassThrough } from "node:stream";
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { EntryContext, RouterContextProvider } from "react-router";
|
|
4
4
|
import { createReadableStreamFromReadable } from "@react-router/node";
|
|
5
5
|
import { ServerRouter } from "react-router";
|
|
6
6
|
import { isbot } from "isbot";
|
|
@@ -14,9 +14,7 @@ export default function handleRequest(
|
|
|
14
14
|
responseStatusCode: number,
|
|
15
15
|
responseHeaders: Headers,
|
|
16
16
|
routerContext: EntryContext,
|
|
17
|
-
loadContext:
|
|
18
|
-
// If you have middleware enabled:
|
|
19
|
-
// loadContext: RouterContextProvider
|
|
17
|
+
loadContext: RouterContextProvider,
|
|
20
18
|
) {
|
|
21
19
|
// https://httpwg.org/specs/rfc9110.html#HEAD
|
|
22
20
|
if (request.method.toUpperCase() === "HEAD") {
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v8.0.
|
|
2
|
+
* @react-router/dev v8.0.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import { g as preloadVite, h as getVite } from "./typegen-
|
|
11
|
+
import { g as preloadVite, h as getVite } from "./typegen-9e9g0hnu.js";
|
|
12
12
|
import { n as start, r as stop, t as getSession } from "./cli/index.js";
|
|
13
13
|
import colors from "picocolors";
|
|
14
14
|
//#region vite/dev.ts
|
package/dist/routes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v8.0.
|
|
2
|
+
* @react-router/dev v8.0.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import { a as prefix, i as layout, n as getAppDirectory, o as relative, r as index, s as route } from "./routes-
|
|
11
|
+
import { a as prefix, i as layout, n as getAppDirectory, o as relative, r as index, s as route } from "./routes-kAS9QOpS.js";
|
|
12
12
|
export { getAppDirectory, index, layout, prefix, relative, route };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v8.0.
|
|
2
|
+
* @react-router/dev v8.0.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import { c as setAppDirectory, l as validateRouteConfig, t as configRoutesToRouteManifest, u as invariant } from "./routes-
|
|
11
|
+
import { c as setAppDirectory, l as validateRouteConfig, t as configRoutesToRouteManifest, u as invariant } from "./routes-kAS9QOpS.js";
|
|
12
12
|
import { createRequire } from "node:module";
|
|
13
|
-
import fs from "node:fs";
|
|
14
13
|
import colors from "picocolors";
|
|
14
|
+
import fs from "node:fs";
|
|
15
15
|
import fs$1 from "node:fs/promises";
|
|
16
16
|
import { readPackageJSON, sortPackage, updatePackage } from "pkg-types";
|
|
17
17
|
import { execSync } from "node:child_process";
|
package/dist/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v8.0.
|
|
2
|
+
* @react-router/dev v8.0.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import { a as t, c as createConfigLoader, d as resolveRSCEntryFiles, f as ssrExternals, g as preloadVite, h as getVite, i as parse$1, m as defineOptimizeDepsCompilerOptions, n as watch, o as traverse, p as defineCompilerOptions, r as generate, s as configRouteToBranchRoute, u as resolveEntryFiles } from "./typegen-
|
|
12
|
-
import { u as invariant } from "./routes-
|
|
11
|
+
import { a as t, c as createConfigLoader, d as resolveRSCEntryFiles, f as ssrExternals, g as preloadVite, h as getVite, i as parse$1, m as defineOptimizeDepsCompilerOptions, n as watch, o as traverse, p as defineCompilerOptions, r as generate, s as configRouteToBranchRoute, u as resolveEntryFiles } from "./typegen-9e9g0hnu.js";
|
|
12
|
+
import { u as invariant } from "./routes-kAS9QOpS.js";
|
|
13
13
|
import { createRequire } from "node:module";
|
|
14
|
+
import colors from "picocolors";
|
|
14
15
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
16
|
+
import { cp, mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
|
|
15
17
|
import * as path$2 from "node:path";
|
|
16
18
|
import path from "node:path";
|
|
17
|
-
import colors from "picocolors";
|
|
18
|
-
import { cp, mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
|
|
19
19
|
import { createRequestHandler, matchRoutes, unstable_setDevServerHooks } from "react-router";
|
|
20
20
|
import * as Path from "pathe";
|
|
21
21
|
import path$1, { join } from "pathe";
|
|
@@ -2706,7 +2706,7 @@ const nodeRequire = createRequire(import.meta.url);
|
|
|
2706
2706
|
function hasDependency({ name, rootDirectory }) {
|
|
2707
2707
|
try {
|
|
2708
2708
|
return Boolean(nodeRequire.resolve(name, { paths: [rootDirectory] }));
|
|
2709
|
-
} catch (
|
|
2709
|
+
} catch (e) {
|
|
2710
2710
|
return false;
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.1",
|
|
5
5
|
"description": "Dev tools and CLI for React Router",
|
|
6
6
|
"homepage": "https://reactrouter.com",
|
|
7
7
|
"bugs": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"semver": "^7.8.1",
|
|
89
89
|
"tinyglobby": "^0.2.16",
|
|
90
90
|
"valibot": "^1.4.1",
|
|
91
|
-
"@react-router/node": "8.0.
|
|
91
|
+
"@react-router/node": "8.0.1"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@types/babel__core": "^7.20.5",
|
|
@@ -110,17 +110,17 @@
|
|
|
110
110
|
"vite": "^7.0.0",
|
|
111
111
|
"wireit": "0.14.12",
|
|
112
112
|
"wrangler": "^4.95.0",
|
|
113
|
-
"react-router": "^8.0.
|
|
114
|
-
"@react-router/serve": "8.0.
|
|
113
|
+
"react-router": "^8.0.1",
|
|
114
|
+
"@react-router/serve": "8.0.1"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@vitejs/plugin-rsc": "~0.5.26",
|
|
118
|
-
"react-server-dom-webpack": "^19.2.
|
|
118
|
+
"react-server-dom-webpack": "^19.2.7",
|
|
119
119
|
"typescript": "^5.1.0 || ^6.0.0",
|
|
120
120
|
"vite": "^7.0.0 || ^8.0.0",
|
|
121
121
|
"wrangler": "^4.0.0",
|
|
122
|
-
"@react-router/serve": "^8.0.
|
|
123
|
-
"react-router": "^8.0.
|
|
122
|
+
"@react-router/serve": "^8.0.1",
|
|
123
|
+
"react-router": "^8.0.1"
|
|
124
124
|
},
|
|
125
125
|
"peerDependenciesMeta": {
|
|
126
126
|
"@vitejs/plugin-rsc": {
|