@react-router/dev 7.9.5-pre.0 → 7.9.6-pre.0
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 +15 -4
- package/dist/cli/index.js +2 -3
- package/dist/config/defaults/entry.server.node.tsx +8 -0
- package/dist/config.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/vite/cloudflare.js +1 -1
- package/dist/vite.js +3 -3
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
-
## 7.9.
|
|
3
|
+
## 7.9.6-pre.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Use a dynamic `import()` to load ESM-only `p-map` dependency to avoid issues on Node 20.18 and below ([#14492](https://github.com/remix-run/react-router/pull/14492))
|
|
8
|
+
- Short circuit `HEAD` document requests before calling `renderToPipeableStream` in the default `entry.server.tsx` to more closely align with the [spec](https://httpwg.org/specs/rfc9110.html#HEAD) ([#14488](https://github.com/remix-run/react-router/pull/14488))
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- `react-router@7.9.6-pre.0`
|
|
11
|
+
- `@react-router/node@7.9.6-pre.0`
|
|
12
|
+
- `@react-router/serve@7.9.6-pre.0`
|
|
13
|
+
|
|
14
|
+
## 7.9.5
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
6
17
|
|
|
@@ -9,9 +20,9 @@
|
|
|
9
20
|
- Ensure route navigation doesn't remove CSS `link` elements used by dynamic imports ([#14463](https://github.com/remix-run/react-router/pull/14463))
|
|
10
21
|
- Typegen: only register route module types for routes within the app directory ([#14439](https://github.com/remix-run/react-router/pull/14439))
|
|
11
22
|
- Updated dependencies:
|
|
12
|
-
- `react-router@7.9.5
|
|
13
|
-
- `@react-router/node@7.9.5
|
|
14
|
-
- `@react-router/serve@7.9.5
|
|
23
|
+
- `react-router@7.9.5`
|
|
24
|
+
- `@react-router/node@7.9.5`
|
|
25
|
+
- `@react-router/serve@7.9.5`
|
|
15
26
|
|
|
16
27
|
## 7.9.4
|
|
17
28
|
|
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* @react-router/dev v7.9.
|
|
3
|
+
* @react-router/dev v7.9.6-pre.0
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Remix Software Inc.
|
|
6
6
|
*
|
|
@@ -1780,7 +1780,7 @@ function resolveEnvironmentsOptions(environmentResolvers, resolverOptions) {
|
|
|
1780
1780
|
function isNonNullable(x) {
|
|
1781
1781
|
return x != null;
|
|
1782
1782
|
}
|
|
1783
|
-
var import_node_crypto, import_node_fs3, import_promises2, path7, url, babel2, import_node_fetch_server2, import_react_router2, import_es_module_lexer, import_pick3, import_jsesc, import_picocolors5, import_kebabCase,
|
|
1783
|
+
var import_node_crypto, import_node_fs3, import_promises2, path7, url, babel2, import_node_fetch_server2, import_react_router2, import_es_module_lexer, import_pick3, import_jsesc, import_picocolors5, import_kebabCase, CLIENT_NON_COMPONENT_EXPORTS, CLIENT_ROUTE_EXPORTS, BUILD_CLIENT_ROUTE_QUERY_STRING, SSR_BUNDLE_PREFIX, virtualHmrRuntime, virtualInjectHmrRuntime, virtual, getServerBuildDirectory, getClientBuildDirectory, defaultEntriesDir, defaultEntries, REACT_REFRESH_HEADER;
|
|
1784
1784
|
var init_plugin = __esm({
|
|
1785
1785
|
"vite/plugin.ts"() {
|
|
1786
1786
|
"use strict";
|
|
@@ -1797,7 +1797,6 @@ var init_plugin = __esm({
|
|
|
1797
1797
|
import_jsesc = __toESM(require("jsesc"));
|
|
1798
1798
|
import_picocolors5 = __toESM(require("picocolors"));
|
|
1799
1799
|
import_kebabCase = __toESM(require("lodash/kebabCase"));
|
|
1800
|
-
import_p_map = __toESM(require("p-map"));
|
|
1801
1800
|
init_typegen();
|
|
1802
1801
|
init_invariant();
|
|
1803
1802
|
init_babel();
|
|
@@ -18,6 +18,14 @@ export default function handleRequest(
|
|
|
18
18
|
// If you have middleware enabled:
|
|
19
19
|
// loadContext: RouterContextProvider
|
|
20
20
|
) {
|
|
21
|
+
// https://httpwg.org/specs/rfc9110.html#HEAD
|
|
22
|
+
if (request.method.toUpperCase() === "HEAD") {
|
|
23
|
+
return new Response(null, {
|
|
24
|
+
status: responseStatusCode,
|
|
25
|
+
headers: responseHeaders,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
21
29
|
return new Promise((resolve, reject) => {
|
|
22
30
|
let shellRendered = false;
|
|
23
31
|
let userAgent = request.headers.get("user-agent");
|
package/dist/config.js
CHANGED
package/dist/routes.js
CHANGED
package/dist/vite/cloudflare.js
CHANGED
package/dist/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v7.9.
|
|
2
|
+
* @react-router/dev v7.9.6-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -59,7 +59,6 @@ var import_pick3 = __toESM(require("lodash/pick"));
|
|
|
59
59
|
var import_jsesc = __toESM(require("jsesc"));
|
|
60
60
|
var import_picocolors4 = __toESM(require("picocolors"));
|
|
61
61
|
var import_kebabCase = __toESM(require("lodash/kebabCase"));
|
|
62
|
-
var import_p_map = __toESM(require("p-map"));
|
|
63
62
|
|
|
64
63
|
// typegen/index.ts
|
|
65
64
|
var import_promises = __toESM(require("fs/promises"));
|
|
@@ -4322,7 +4321,8 @@ async function handlePrerender(viteConfig, reactRouterConfig, serverBuildDirecto
|
|
|
4322
4321
|
if (typeof prerender === "object" && "unstable_concurrency" in prerender) {
|
|
4323
4322
|
concurrency = prerender.unstable_concurrency ?? 1;
|
|
4324
4323
|
}
|
|
4325
|
-
|
|
4324
|
+
const pMap = await import("p-map");
|
|
4325
|
+
await pMap.default(build.prerender, prerenderSinglePath, { concurrency });
|
|
4326
4326
|
}
|
|
4327
4327
|
function getStaticPrerenderPaths(routes) {
|
|
4328
4328
|
let paths = ["/"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
|
-
"version": "7.9.
|
|
3
|
+
"version": "7.9.6-pre.0",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"tinyglobby": "^0.2.14",
|
|
88
88
|
"valibot": "^1.1.0",
|
|
89
89
|
"vite-node": "^3.2.2",
|
|
90
|
-
"@react-router/node": "7.9.
|
|
90
|
+
"@react-router/node": "7.9.6-pre.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@types/babel__core": "^7.20.5",
|
|
@@ -110,16 +110,16 @@
|
|
|
110
110
|
"vite": "^6.1.0",
|
|
111
111
|
"wireit": "0.14.9",
|
|
112
112
|
"wrangler": "^4.23.0",
|
|
113
|
-
"@react-router/serve": "7.9.
|
|
114
|
-
"react-router": "^7.9.
|
|
113
|
+
"@react-router/serve": "7.9.6-pre.0",
|
|
114
|
+
"react-router": "^7.9.6-pre.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@vitejs/plugin-rsc": "*",
|
|
118
118
|
"typescript": "^5.1.0",
|
|
119
119
|
"vite": "^5.1.0 || ^6.0.0 || ^7.0.0",
|
|
120
120
|
"wrangler": "^3.28.2 || ^4.0.0",
|
|
121
|
-
"@react-router/serve": "^7.9.
|
|
122
|
-
"react-router": "^7.9.
|
|
121
|
+
"@react-router/serve": "^7.9.6-pre.0",
|
|
122
|
+
"react-router": "^7.9.6-pre.0"
|
|
123
123
|
},
|
|
124
124
|
"peerDependenciesMeta": {
|
|
125
125
|
"@vitejs/plugin-rsc": {
|