@tanstack/start-plugin-core 1.133.26 → 1.133.28

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.
@@ -11,7 +11,7 @@ const ENTRY_POINTS = {
11
11
  start: "#tanstack-start-entry",
12
12
  router: "#tanstack-router-entry"
13
13
  };
14
- const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?/];
14
+ const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?($|\?)/];
15
15
  export {
16
16
  ENTRY_POINTS,
17
17
  TRANSFORM_ID_REGEX,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const VITE_ENVIRONMENT_NAMES = {\n // 'ssr' is chosen as the name for the server environment to ensure backwards compatibility\n // with vite plugins that are not compatible with the new vite environment API (e.g. tailwindcss)\n server: 'ssr',\n client: 'client',\n} as const\n\nexport type ViteEnvironmentNames =\n (typeof VITE_ENVIRONMENT_NAMES)[keyof typeof VITE_ENVIRONMENT_NAMES]\n\n// for client and router:\n// if a user has a custom server/client entry point file, resolve.alias will point to this\n// otherwise it will be aliased to the default entry point in the respective framework plugin\nexport const ENTRY_POINTS = {\n client: 'virtual:tanstack-start-client-entry',\n server: 'virtual:tanstack-start-server-entry',\n // the start entry point must always be provided by the user\n start: '#tanstack-start-entry',\n router: '#tanstack-router-entry',\n} as const\n\nexport const TRANSFORM_ID_REGEX = [/\\.[cm]?[tj]sx?/]\n"],"names":[],"mappings":"AAAO,MAAM,yBAAyB;AAAA;AAAA;AAAA,EAGpC,QAAQ;AAAA,EACR,QAAQ;AACV;AAQO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,QAAQ;AAAA;AAAA,EAER,OAAO;AAAA,EACP,QAAQ;AACV;AAEO,MAAM,qBAAqB,CAAC,gBAAgB;"}
1
+ {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const VITE_ENVIRONMENT_NAMES = {\n // 'ssr' is chosen as the name for the server environment to ensure backwards compatibility\n // with vite plugins that are not compatible with the new vite environment API (e.g. tailwindcss)\n server: 'ssr',\n client: 'client',\n} as const\n\nexport type ViteEnvironmentNames =\n (typeof VITE_ENVIRONMENT_NAMES)[keyof typeof VITE_ENVIRONMENT_NAMES]\n\n// for client and router:\n// if a user has a custom server/client entry point file, resolve.alias will point to this\n// otherwise it will be aliased to the default entry point in the respective framework plugin\nexport const ENTRY_POINTS = {\n client: 'virtual:tanstack-start-client-entry',\n server: 'virtual:tanstack-start-server-entry',\n // the start entry point must always be provided by the user\n start: '#tanstack-start-entry',\n router: '#tanstack-router-entry',\n} as const\n\n// matches\n// .ts, .tsx, .cts, .mts, .js, .jsx, .cjs, .mjs\n// with optional query params after\n// but not .json\nexport const TRANSFORM_ID_REGEX = [/\\.[cm]?[tj]sx?($|\\?)/]\n"],"names":[],"mappings":"AAAO,MAAM,yBAAyB;AAAA;AAAA;AAAA,EAGpC,QAAQ;AAAA,EACR,QAAQ;AACV;AAQO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,QAAQ;AAAA;AAAA,EAER,OAAO;AAAA,EACP,QAAQ;AACV;AAMO,MAAM,qBAAqB,CAAC,sBAAsB;"}
@@ -37,6 +37,7 @@ export declare function parseStartConfig(opts: z.input<typeof tanstackStartOptio
37
37
  } | undefined;
38
38
  experimental?: {
39
39
  enableCodeSplitting?: boolean | undefined;
40
+ nonNestedRoutes?: boolean | undefined;
40
41
  } | undefined;
41
42
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
42
43
  entry?: string | undefined;
@@ -848,10 +849,13 @@ declare const tanstackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
848
849
  plugins: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodType<import('@tanstack/router-generator').GeneratorPlugin, z.ZodTypeDef, import('@tanstack/router-generator').GeneratorPlugin>, "many">>>;
849
850
  experimental: z.ZodOptional<z.ZodOptional<z.ZodObject<{
850
851
  enableCodeSplitting: z.ZodOptional<z.ZodBoolean>;
852
+ nonNestedRoutes: z.ZodOptional<z.ZodBoolean>;
851
853
  }, "strip", z.ZodTypeAny, {
852
854
  enableCodeSplitting?: boolean | undefined;
855
+ nonNestedRoutes?: boolean | undefined;
853
856
  }, {
854
857
  enableCodeSplitting?: boolean | undefined;
858
+ nonNestedRoutes?: boolean | undefined;
855
859
  }>>>;
856
860
  virtualRouteConfig: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<import('@tanstack/virtual-file-routes').VirtualRootRoute, z.ZodTypeDef, import('@tanstack/virtual-file-routes').VirtualRootRoute>, z.ZodString]>>>;
857
861
  routeFilePrefix: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -905,6 +909,7 @@ declare const tanstackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
905
909
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
906
910
  experimental?: {
907
911
  enableCodeSplitting?: boolean | undefined;
912
+ nonNestedRoutes?: boolean | undefined;
908
913
  } | undefined;
909
914
  virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
910
915
  routeFilePrefix?: string | undefined;
@@ -940,6 +945,7 @@ declare const tanstackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
940
945
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
941
946
  experimental?: {
942
947
  enableCodeSplitting?: boolean | undefined;
948
+ nonNestedRoutes?: boolean | undefined;
943
949
  } | undefined;
944
950
  virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
945
951
  routeFilePrefix?: string | undefined;
@@ -3045,6 +3051,7 @@ declare const tanstackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
3045
3051
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
3046
3052
  experimental?: {
3047
3053
  enableCodeSplitting?: boolean | undefined;
3054
+ nonNestedRoutes?: boolean | undefined;
3048
3055
  } | undefined;
3049
3056
  virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
3050
3057
  routeFilePrefix?: string | undefined;
@@ -3372,6 +3379,7 @@ declare const tanstackStartOptionsSchema: z.ZodDefault<z.ZodOptional<z.ZodObject
3372
3379
  plugins?: import('@tanstack/router-generator').GeneratorPlugin[] | undefined;
3373
3380
  experimental?: {
3374
3381
  enableCodeSplitting?: boolean | undefined;
3382
+ nonNestedRoutes?: boolean | undefined;
3375
3383
  } | undefined;
3376
3384
  virtualRouteConfig?: string | import('@tanstack/virtual-file-routes').VirtualRootRoute | undefined;
3377
3385
  routeFilePrefix?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/start-plugin-core",
3
- "version": "1.133.26",
3
+ "version": "1.133.28",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -59,13 +59,13 @@
59
59
  "vitefu": "^1.1.1",
60
60
  "xmlbuilder2": "^3.1.1",
61
61
  "zod": "^3.24.2",
62
- "@tanstack/router-core": "1.133.25",
63
- "@tanstack/router-generator": "1.133.25",
62
+ "@tanstack/router-core": "1.133.28",
63
+ "@tanstack/router-plugin": "1.133.28",
64
+ "@tanstack/router-generator": "1.133.28",
64
65
  "@tanstack/router-utils": "1.133.19",
65
- "@tanstack/router-plugin": "1.133.25",
66
66
  "@tanstack/server-functions-plugin": "1.133.25",
67
- "@tanstack/start-client-core": "1.133.25",
68
- "@tanstack/start-server-core": "1.133.26"
67
+ "@tanstack/start-client-core": "1.133.28",
68
+ "@tanstack/start-server-core": "1.133.28"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/babel__code-frame": "^7.0.6",
package/src/constants.ts CHANGED
@@ -19,4 +19,8 @@ export const ENTRY_POINTS = {
19
19
  router: '#tanstack-router-entry',
20
20
  } as const
21
21
 
22
- export const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?/]
22
+ // matches
23
+ // .ts, .tsx, .cts, .mts, .js, .jsx, .cjs, .mjs
24
+ // with optional query params after
25
+ // but not .json
26
+ export const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?($|\?)/]