@react-router/dev 0.0.0-experimental-004e483a8 → 0.0.0-experimental-208f173a8
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/dist/cli/index.js +4 -3
- package/dist/config.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/vite/cloudflare.js +1 -1
- package/dist/vite.js +4 -3
- package/package.json +6 -6
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* @react-router/dev v0.0.0-experimental-
|
|
3
|
+
* @react-router/dev v0.0.0-experimental-208f173a8
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Remix Software Inc.
|
|
6
6
|
*
|
|
@@ -860,8 +860,9 @@ function register(ctx) {
|
|
|
860
860
|
null,
|
|
861
861
|
t2.tsTypeLiteral(
|
|
862
862
|
Object.values(ctx.config.routes).map((route) => {
|
|
863
|
+
if (route.id !== "root" && !route.path) return void 0;
|
|
863
864
|
const lineage = getRouteLineage2(ctx.config.routes, route);
|
|
864
|
-
const fullpath = lineage.map((route2) => route2.path).join("/");
|
|
865
|
+
const fullpath = route.id === "root" ? "/" : lineage.map((route2) => route2.path).filter((path9) => path9 !== void 0).join("/");
|
|
865
866
|
const params = parseParams2(fullpath);
|
|
866
867
|
return t2.tsPropertySignature(
|
|
867
868
|
t2.stringLiteral(fullpath),
|
|
@@ -878,7 +879,7 @@ function register(ctx) {
|
|
|
878
879
|
)
|
|
879
880
|
)
|
|
880
881
|
);
|
|
881
|
-
})
|
|
882
|
+
}).filter((x) => x !== void 0)
|
|
882
883
|
)
|
|
883
884
|
);
|
|
884
885
|
return [register2, generate(typeParams).code].join("\n\n");
|
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 v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-208f173a8
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -837,8 +837,9 @@ function register(ctx) {
|
|
|
837
837
|
null,
|
|
838
838
|
t2.tsTypeLiteral(
|
|
839
839
|
Object.values(ctx.config.routes).map((route) => {
|
|
840
|
+
if (route.id !== "root" && !route.path) return void 0;
|
|
840
841
|
const lineage = getRouteLineage2(ctx.config.routes, route);
|
|
841
|
-
const fullpath = lineage.map((route2) => route2.path).join("/");
|
|
842
|
+
const fullpath = route.id === "root" ? "/" : lineage.map((route2) => route2.path).filter((path7) => path7 !== void 0).join("/");
|
|
842
843
|
const params = parseParams2(fullpath);
|
|
843
844
|
return t2.tsPropertySignature(
|
|
844
845
|
t2.stringLiteral(fullpath),
|
|
@@ -855,7 +856,7 @@ function register(ctx) {
|
|
|
855
856
|
)
|
|
856
857
|
)
|
|
857
858
|
);
|
|
858
|
-
})
|
|
859
|
+
}).filter((x) => x !== void 0)
|
|
859
860
|
)
|
|
860
861
|
);
|
|
861
862
|
return [register2, generate(typeParams).code].join("\n\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/dev",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-208f173a8",
|
|
4
4
|
"description": "Dev tools and CLI for React Router",
|
|
5
5
|
"homepage": "https://reactrouter.com",
|
|
6
6
|
"bugs": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"set-cookie-parser": "^2.6.0",
|
|
89
89
|
"valibot": "^0.41.0",
|
|
90
90
|
"vite-node": "3.0.0-beta.2",
|
|
91
|
-
"@react-router/node": "0.0.0-experimental-
|
|
91
|
+
"@react-router/node": "0.0.0-experimental-208f173a8"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@types/babel__core": "^7.20.5",
|
|
@@ -117,15 +117,15 @@
|
|
|
117
117
|
"vite": "^6.0.0",
|
|
118
118
|
"wireit": "0.14.9",
|
|
119
119
|
"wrangler": "^3.28.2",
|
|
120
|
-
"react-router": "^0.0.0-experimental-
|
|
121
|
-
"@react-router/serve": "0.0.0-experimental-
|
|
120
|
+
"react-router": "^0.0.0-experimental-208f173a8",
|
|
121
|
+
"@react-router/serve": "0.0.0-experimental-208f173a8"
|
|
122
122
|
},
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"typescript": "^5.1.0",
|
|
125
125
|
"vite": "^5.1.0 || ^6.0.0",
|
|
126
126
|
"wrangler": "^3.28.2",
|
|
127
|
-
"@react-router/serve": "^0.0.0-experimental-
|
|
128
|
-
"react-router": "^0.0.0-experimental-
|
|
127
|
+
"@react-router/serve": "^0.0.0-experimental-208f173a8",
|
|
128
|
+
"react-router": "^0.0.0-experimental-208f173a8"
|
|
129
129
|
},
|
|
130
130
|
"peerDependenciesMeta": {
|
|
131
131
|
"@react-router/serve": {
|