@react-router/dev 8.0.0 → 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 +9 -0
- package/dist/{build-_6nEtuOY.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-BG0vJBnS.js → dev-BAYiWwCm.js} +2 -2
- package/dist/{routes-Df3IS9IO.js → routes-kAS9QOpS.js} +1 -1
- package/dist/routes.js +2 -2
- package/dist/{typegen-DXCQyb6V.js → typegen-9e9g0hnu.js} +3 -3
- package/dist/vite.js +6 -6
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
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
|
+
|
|
3
12
|
## v8.0.0
|
|
4
13
|
|
|
5
14
|
### Major 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,8 +110,8 @@
|
|
|
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",
|
|
@@ -119,8 +119,8 @@
|
|
|
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": "^8.0.
|
|
123
|
-
"
|
|
122
|
+
"@react-router/serve": "^8.0.1",
|
|
123
|
+
"react-router": "^8.0.1"
|
|
124
124
|
},
|
|
125
125
|
"peerDependenciesMeta": {
|
|
126
126
|
"@vitejs/plugin-rsc": {
|