@react-router/dev 0.0.0-experimental-e613d4238 → 0.0.0-experimental-3df673e

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @react-router/dev v0.0.0-experimental-e613d4238
3
+ * @react-router/dev v0.0.0-experimental-3df673e
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -980,10 +980,9 @@ function generateRoutes(ctx) {
980
980
  interface Register {
981
981
  pages: Pages
982
982
  routeFiles: RouteFiles
983
- routeModules: RouteModules
984
983
  }
985
984
  }
986
- ` + "\n\n" + generate(pagesType(allPages)).code + "\n\n" + generate(routeFilesType({ fileToRoutes, routeToPages })).code + "\n\n" + generate(routeModulesType(ctx)).code
985
+ ` + "\n\n" + generate(pagesType(allPages)).code + "\n\n" + generate(routeFilesType({ fileToRoutes, routeToPages })).code
987
986
  };
988
987
  const allAnnotations = Array.from(fileToRoutes.entries()).filter(([file]) => isInAppDirectory(ctx, file)).map(
989
988
  ([file, routeIds]) => getRouteAnnotations({ ctx, file, routeIds, lineages })
@@ -1052,28 +1051,6 @@ function routeFilesType({
1052
1051
  )
1053
1052
  );
1054
1053
  }
1055
- function routeModulesType(ctx) {
1056
- return t2.tsTypeAliasDeclaration(
1057
- t2.identifier("RouteModules"),
1058
- null,
1059
- t2.tsTypeLiteral(
1060
- Object.values(ctx.config.routes).map(
1061
- (route) => t2.tsPropertySignature(
1062
- t2.stringLiteral(route.id),
1063
- t2.tsTypeAnnotation(
1064
- t2.tsTypeQuery(
1065
- t2.tsImportType(
1066
- t2.stringLiteral(
1067
- `./${Path3.relative(ctx.rootDirectory, ctx.config.appDirectory)}/${route.file}`
1068
- )
1069
- )
1070
- )
1071
- )
1072
- )
1073
- )
1074
- )
1075
- );
1076
- }
1077
1054
  function isInAppDirectory(ctx, routeFile) {
1078
1055
  const path9 = Path3.resolve(ctx.config.appDirectory, routeFile);
1079
1056
  return path9.startsWith(ctx.config.appDirectory);
package/dist/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-e613d4238
2
+ * @react-router/dev v0.0.0-experimental-3df673e
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/routes.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-e613d4238
2
+ * @react-router/dev v0.0.0-experimental-3df673e
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-e613d4238
2
+ * @react-router/dev v0.0.0-experimental-3df673e
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/vite.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v0.0.0-experimental-e613d4238
2
+ * @react-router/dev v0.0.0-experimental-3df673e
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -968,10 +968,9 @@ function generateRoutes(ctx) {
968
968
  interface Register {
969
969
  pages: Pages
970
970
  routeFiles: RouteFiles
971
- routeModules: RouteModules
972
971
  }
973
972
  }
974
- ` + "\n\n" + generate(pagesType(allPages)).code + "\n\n" + generate(routeFilesType({ fileToRoutes, routeToPages })).code + "\n\n" + generate(routeModulesType(ctx)).code
973
+ ` + "\n\n" + generate(pagesType(allPages)).code + "\n\n" + generate(routeFilesType({ fileToRoutes, routeToPages })).code
975
974
  };
976
975
  const allAnnotations = Array.from(fileToRoutes.entries()).filter(([file]) => isInAppDirectory(ctx, file)).map(
977
976
  ([file, routeIds]) => getRouteAnnotations({ ctx, file, routeIds, lineages })
@@ -1040,28 +1039,6 @@ function routeFilesType({
1040
1039
  )
1041
1040
  );
1042
1041
  }
1043
- function routeModulesType(ctx) {
1044
- return t2.tsTypeAliasDeclaration(
1045
- t2.identifier("RouteModules"),
1046
- null,
1047
- t2.tsTypeLiteral(
1048
- Object.values(ctx.config.routes).map(
1049
- (route) => t2.tsPropertySignature(
1050
- t2.stringLiteral(route.id),
1051
- t2.tsTypeAnnotation(
1052
- t2.tsTypeQuery(
1053
- t2.tsImportType(
1054
- t2.stringLiteral(
1055
- `./${Path3.relative(ctx.rootDirectory, ctx.config.appDirectory)}/${route.file}`
1056
- )
1057
- )
1058
- )
1059
- )
1060
- )
1061
- )
1062
- )
1063
- );
1064
- }
1065
1042
  function isInAppDirectory(ctx, routeFile) {
1066
1043
  const path9 = Path3.resolve(ctx.config.appDirectory, routeFile);
1067
1044
  return path9.startsWith(ctx.config.appDirectory);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/dev",
3
- "version": "0.0.0-experimental-e613d4238",
3
+ "version": "0.0.0-experimental-3df673e",
4
4
  "description": "Dev tools and CLI for React Router",
5
5
  "homepage": "https://reactrouter.com",
6
6
  "bugs": {
@@ -84,9 +84,9 @@
84
84
  "react-refresh": "^0.14.0",
85
85
  "semver": "^7.3.7",
86
86
  "tinyglobby": "^0.2.14",
87
- "valibot": "^0.41.0",
87
+ "valibot": "^1.1.0",
88
88
  "vite-node": "^3.2.2",
89
- "@react-router/node": "0.0.0-experimental-e613d4238"
89
+ "@react-router/node": "0.0.0-experimental-3df673e"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@types/babel__core": "^7.20.5",
@@ -109,16 +109,16 @@
109
109
  "vite": "^6.1.0",
110
110
  "wireit": "0.14.9",
111
111
  "wrangler": "^4.23.0",
112
- "@react-router/serve": "0.0.0-experimental-e613d4238",
113
- "react-router": "^0.0.0-experimental-e613d4238"
112
+ "@react-router/serve": "0.0.0-experimental-3df673e",
113
+ "react-router": "^0.0.0-experimental-3df673e"
114
114
  },
115
115
  "peerDependencies": {
116
116
  "@vitejs/plugin-rsc": "*",
117
117
  "typescript": "^5.1.0",
118
118
  "vite": "^5.1.0 || ^6.0.0 || ^7.0.0",
119
119
  "wrangler": "^3.28.2 || ^4.0.0",
120
- "@react-router/serve": "^0.0.0-experimental-e613d4238",
121
- "react-router": "^0.0.0-experimental-e613d4238"
120
+ "@react-router/serve": "^0.0.0-experimental-3df673e",
121
+ "react-router": "^0.0.0-experimental-3df673e"
122
122
  },
123
123
  "peerDependenciesMeta": {
124
124
  "@vitejs/plugin-rsc": {