@react-router/dev 0.0.0-experimental-073f56f6c → 0.0.0-experimental-ce4015162
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 +17 -0
- package/bin.cjs +20 -0
- package/dist/build-BzQqIPQx.js +41 -0
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +379 -2591
- package/dist/config-DOhNF86o.d.ts +280 -0
- package/dist/config.d.ts +2 -280
- package/dist/config.js +2 -19
- package/dist/dev--vS8KUm0.js +53 -0
- package/dist/invariant-BCP1NPJ8.js +19 -0
- package/dist/{routes-CZR-bKRt.d.ts → routes-BbocpwgJ.d.ts} +63 -62
- package/dist/routes-DWLkrlkM.js +187 -0
- package/dist/routes.d.ts +3 -2
- package/dist/routes.js +3 -190
- package/dist/typegen-DfdqqoXA.js +841 -0
- package/dist/vite-oFg2Sopv.js +41 -0
- package/dist/vite.d.ts +7 -6
- package/dist/vite.js +3180 -6488
- package/module-sync-enabled/index.mjs +2 -2
- package/package.json +46 -49
- package/bin.js +0 -15
- package/dist/vite/cloudflare.d.ts +0 -24
- package/dist/vite/cloudflare.js +0 -891
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
const
|
|
3
|
-
const moduleSyncEnabled =
|
|
2
|
+
const nodeRequire = createRequire(import.meta.url);
|
|
3
|
+
const moduleSyncEnabled = nodeRequire("#module-sync-enabled").default;
|
|
4
4
|
export { moduleSyncEnabled };
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0-experimental-ce4015162",
|
|
4
5
|
"description": "Dev tools and CLI for React Router",
|
|
5
6
|
"homepage": "https://reactrouter.com",
|
|
6
7
|
"bugs": {
|
|
@@ -29,10 +30,6 @@
|
|
|
29
30
|
"types": "./dist/vite.d.ts",
|
|
30
31
|
"default": "./dist/vite.js"
|
|
31
32
|
},
|
|
32
|
-
"./vite/cloudflare": {
|
|
33
|
-
"types": "./dist/vite/cloudflare.d.ts",
|
|
34
|
-
"default": "./dist/vite/cloudflare.js"
|
|
35
|
-
},
|
|
36
33
|
"./package.json": "./package.json"
|
|
37
34
|
},
|
|
38
35
|
"imports": {
|
|
@@ -42,11 +39,11 @@
|
|
|
42
39
|
}
|
|
43
40
|
},
|
|
44
41
|
"bin": {
|
|
45
|
-
"react-router": "bin.
|
|
42
|
+
"react-router": "bin.cjs"
|
|
46
43
|
},
|
|
47
44
|
"wireit": {
|
|
48
45
|
"build": {
|
|
49
|
-
"command": "
|
|
46
|
+
"command": "tsdown",
|
|
50
47
|
"files": [
|
|
51
48
|
"../../pnpm-workspace.yaml",
|
|
52
49
|
"cli/**",
|
|
@@ -55,7 +52,7 @@
|
|
|
55
52
|
"typegen/**",
|
|
56
53
|
"vite/**",
|
|
57
54
|
"*.ts",
|
|
58
|
-
"bin.
|
|
55
|
+
"bin.cjs",
|
|
59
56
|
"tsconfig.json",
|
|
60
57
|
"package.json"
|
|
61
58
|
],
|
|
@@ -65,68 +62,68 @@
|
|
|
65
62
|
}
|
|
66
63
|
},
|
|
67
64
|
"dependencies": {
|
|
68
|
-
"@babel/core": "^7.
|
|
69
|
-
"@babel/generator": "^7.
|
|
70
|
-
"@babel/parser": "^7.
|
|
71
|
-
"@babel/plugin-syntax-jsx": "^7.
|
|
72
|
-
"@babel/preset-typescript": "^7.
|
|
73
|
-
"@babel/traverse": "^7.
|
|
74
|
-
"@babel/types": "^7.
|
|
65
|
+
"@babel/core": "^7.29.0",
|
|
66
|
+
"@babel/generator": "^7.29.1",
|
|
67
|
+
"@babel/parser": "^7.29.3",
|
|
68
|
+
"@babel/plugin-syntax-jsx": "^7.28.6",
|
|
69
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
70
|
+
"@babel/traverse": "^7.29.0",
|
|
71
|
+
"@babel/types": "^7.29.0",
|
|
75
72
|
"@remix-run/node-fetch-server": "^0.13.0",
|
|
76
73
|
"arg": "^5.0.1",
|
|
77
|
-
"babel-dead-code-elimination": "^1.0.
|
|
78
|
-
"chokidar": "^
|
|
79
|
-
"dedent": "^1.
|
|
80
|
-
"es-module-lexer": "^
|
|
81
|
-
"exit-hook": "
|
|
82
|
-
"isbot": "^5.1.
|
|
83
|
-
"jsesc": "3.0
|
|
84
|
-
"lodash": "^4.
|
|
85
|
-
"p-map": "^7.0.
|
|
86
|
-
"pathe": "^
|
|
74
|
+
"babel-dead-code-elimination": "^1.0.12",
|
|
75
|
+
"chokidar": "^5.0.0",
|
|
76
|
+
"dedent": "^1.7.2",
|
|
77
|
+
"es-module-lexer": "^2.0.0",
|
|
78
|
+
"exit-hook": "5.1.0",
|
|
79
|
+
"isbot": "^5.1.40",
|
|
80
|
+
"jsesc": "3.1.0",
|
|
81
|
+
"lodash": "^4.18.1",
|
|
82
|
+
"p-map": "^7.0.4",
|
|
83
|
+
"pathe": "^2.0.3",
|
|
87
84
|
"picocolors": "^1.1.1",
|
|
88
|
-
"pkg-types": "^2.3.
|
|
89
|
-
"prettier": "^3.
|
|
85
|
+
"pkg-types": "^2.3.1",
|
|
86
|
+
"prettier": "^3.8.3",
|
|
90
87
|
"react-refresh": "^0.14.0",
|
|
91
|
-
"semver": "^7.
|
|
88
|
+
"semver": "^7.8.0",
|
|
92
89
|
"tinyglobby": "^0.2.14",
|
|
93
|
-
"valibot": "^1.
|
|
90
|
+
"valibot": "^1.4.0",
|
|
94
91
|
"vite-node": "^3.2.2",
|
|
95
|
-
"@react-router/node": "0.0.0-experimental-
|
|
92
|
+
"@react-router/node": "0.0.0-experimental-ce4015162"
|
|
96
93
|
},
|
|
97
94
|
"devDependencies": {
|
|
98
95
|
"@types/babel__core": "^7.20.5",
|
|
99
96
|
"@types/babel__generator": "^7.27.0",
|
|
100
|
-
"@types/babel__traverse": "^7.
|
|
97
|
+
"@types/babel__traverse": "^7.28.0",
|
|
101
98
|
"@types/dedent": "^0.7.0",
|
|
102
99
|
"@types/express": "^4.17.9",
|
|
103
100
|
"@types/jest": "^29.5.4",
|
|
104
101
|
"@types/jsesc": "^3.0.1",
|
|
105
|
-
"@types/lodash": "^4.
|
|
106
|
-
"@types/node": "^
|
|
102
|
+
"@types/lodash": "^4.17.24",
|
|
103
|
+
"@types/node": "^22.19.0",
|
|
107
104
|
"@types/npmcli__package-json": "^4.0.0",
|
|
108
|
-
"@types/semver": "^7.7.
|
|
105
|
+
"@types/semver": "^7.7.1",
|
|
109
106
|
"@vitejs/plugin-rsc": "~0.5.21",
|
|
110
107
|
"esbuild-register": "^3.6.0",
|
|
111
|
-
"execa": "
|
|
108
|
+
"execa": "9.6.1",
|
|
112
109
|
"express": "^4.19.2",
|
|
113
|
-
"fast-glob": "3.
|
|
114
|
-
"
|
|
115
|
-
"typescript": "^
|
|
116
|
-
"vite": "^
|
|
110
|
+
"fast-glob": "3.3.3",
|
|
111
|
+
"tsdown": "^0.21.10",
|
|
112
|
+
"typescript": "^6.0.3",
|
|
113
|
+
"vite": "^7.0.0",
|
|
117
114
|
"wireit": "0.14.9",
|
|
118
|
-
"wrangler": "^4.
|
|
119
|
-
"@react-router/serve": "0.0.0-experimental-
|
|
120
|
-
"react-router": "^0.0.0-experimental-
|
|
115
|
+
"wrangler": "^4.93.1",
|
|
116
|
+
"@react-router/serve": "0.0.0-experimental-ce4015162",
|
|
117
|
+
"react-router": "^0.0.0-experimental-ce4015162"
|
|
121
118
|
},
|
|
122
119
|
"peerDependencies": {
|
|
123
120
|
"@vitejs/plugin-rsc": "~0.5.21",
|
|
124
|
-
"react-server-dom-webpack": "^19.2.
|
|
121
|
+
"react-server-dom-webpack": "^19.2.6",
|
|
125
122
|
"typescript": "^5.1.0 || ^6.0.0",
|
|
126
|
-
"vite": "^
|
|
127
|
-
"wrangler": "^
|
|
128
|
-
"@react-router/serve": "^0.0.0-experimental-
|
|
129
|
-
"react-router": "^0.0.0-experimental-
|
|
123
|
+
"vite": "^7.0.0 || ^8.0.0",
|
|
124
|
+
"wrangler": "^4.0.0",
|
|
125
|
+
"@react-router/serve": "^0.0.0-experimental-ce4015162",
|
|
126
|
+
"react-router": "^0.0.0-experimental-ce4015162"
|
|
130
127
|
},
|
|
131
128
|
"peerDependenciesMeta": {
|
|
132
129
|
"@vitejs/plugin-rsc": {
|
|
@@ -146,12 +143,12 @@
|
|
|
146
143
|
}
|
|
147
144
|
},
|
|
148
145
|
"engines": {
|
|
149
|
-
"node": ">=
|
|
146
|
+
"node": ">=22.12.0"
|
|
150
147
|
},
|
|
151
148
|
"files": [
|
|
152
149
|
"dist/",
|
|
153
150
|
"module-sync-enabled/",
|
|
154
|
-
"bin.
|
|
151
|
+
"bin.cjs",
|
|
155
152
|
"rsc-types.d.ts",
|
|
156
153
|
"CHANGELOG.md",
|
|
157
154
|
"LICENSE.md",
|
package/bin.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
let arg = require("arg");
|
|
3
|
-
|
|
4
|
-
// Minimal replication of our actual parsing in `run.ts`. If not already set,
|
|
5
|
-
// default `NODE_ENV` so React loads the proper version in it's CJS entry script.
|
|
6
|
-
// We have to do this before importing `run.ts` since that is what imports
|
|
7
|
-
// `react` (indirectly via `react-router`)
|
|
8
|
-
let args = arg({}, { argv: process.argv.slice(2), permissive: true });
|
|
9
|
-
if (args._.length === 0 || args._[0] === "dev") {
|
|
10
|
-
process.env.NODE_ENV = process.env.NODE_ENV ?? "development";
|
|
11
|
-
} else {
|
|
12
|
-
process.env.NODE_ENV = process.env.NODE_ENV ?? "production";
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
require("./dist/cli/index");
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UNSAFE_MiddlewareEnabled, RouterContextProvider, AppLoadContext } from 'react-router';
|
|
2
|
-
import { Plugin } from 'vite';
|
|
3
|
-
import { PlatformProxy, GetPlatformProxyOptions } from 'wrangler';
|
|
4
|
-
|
|
5
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
6
|
-
type CfProperties = Record<string, unknown>;
|
|
7
|
-
type LoadContext<Env, Cf extends CfProperties> = {
|
|
8
|
-
cloudflare: Omit<PlatformProxy<Env, Cf>, "dispose">;
|
|
9
|
-
};
|
|
10
|
-
type GetLoadContext<Env, Cf extends CfProperties> = (args: {
|
|
11
|
-
request: Request;
|
|
12
|
-
context: LoadContext<Env, Cf>;
|
|
13
|
-
}) => UNSAFE_MiddlewareEnabled extends true ? MaybePromise<RouterContextProvider> : MaybePromise<AppLoadContext>;
|
|
14
|
-
/**
|
|
15
|
-
* Vite plugin that provides [Node proxies to local workerd
|
|
16
|
-
* bindings](https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy)
|
|
17
|
-
* to `context.cloudflare` in your server loaders and server actions during
|
|
18
|
-
* development.
|
|
19
|
-
*/
|
|
20
|
-
declare const cloudflareDevProxyVitePlugin: <Env, Cf extends CfProperties>(options?: {
|
|
21
|
-
getLoadContext?: GetLoadContext<Env, Cf>;
|
|
22
|
-
} & GetPlatformProxyOptions) => Plugin;
|
|
23
|
-
|
|
24
|
-
export { cloudflareDevProxyVitePlugin as cloudflareDevProxy };
|