@tanstack/solid-start 1.131.6 → 1.132.0-alpha.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.
@@ -0,0 +1,3 @@
1
+ import { TanStackStartInputConfig } from '@tanstack/start-plugin-core';
2
+ import { PluginOption } from 'vite';
3
+ export declare function tanstackStart(options?: TanStackStartInputConfig): Array<PluginOption>;
@@ -0,0 +1,30 @@
1
+ import { fileURLToPath } from "node:url";
2
+ import { TanStackStartVitePluginCore } from "@tanstack/start-plugin-core";
3
+ import path from "pathe";
4
+ const currentDir = path.dirname(fileURLToPath(import.meta.url));
5
+ const defaultEntryDir = path.resolve(
6
+ currentDir,
7
+ "..",
8
+ "..",
9
+ "plugin",
10
+ "default-entry"
11
+ );
12
+ const defaultEntryPaths = {
13
+ client: path.resolve(defaultEntryDir, "client"),
14
+ server: path.resolve(defaultEntryDir, "server")
15
+ };
16
+ function tanstackStart(options) {
17
+ return [
18
+ TanStackStartVitePluginCore(
19
+ {
20
+ framework: "solid",
21
+ defaultEntryPaths
22
+ },
23
+ options
24
+ )
25
+ ];
26
+ }
27
+ export {
28
+ tanstackStart
29
+ };
30
+ //# sourceMappingURL=vite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite.js","sources":["../../../src/plugin/vite.ts"],"sourcesContent":["import { fileURLToPath } from 'node:url'\nimport { TanStackStartVitePluginCore } from '@tanstack/start-plugin-core'\nimport path from 'pathe'\nimport type { TanStackStartInputConfig } from '@tanstack/start-plugin-core'\nimport type { PluginOption } from 'vite'\n\nconst currentDir = path.dirname(fileURLToPath(import.meta.url))\nconst defaultEntryDir = path.resolve(\n currentDir,\n '..',\n '..',\n 'plugin',\n 'default-entry',\n)\nconst defaultEntryPaths = {\n client: path.resolve(defaultEntryDir, 'client'),\n server: path.resolve(defaultEntryDir, 'server'),\n}\n\nexport function tanstackStart(\n options?: TanStackStartInputConfig,\n): Array<PluginOption> {\n return [\n TanStackStartVitePluginCore(\n {\n framework: 'solid',\n defaultEntryPaths,\n },\n options,\n ),\n ]\n}\n"],"names":[],"mappings":";;;AAMA,MAAM,aAAa,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;AAC9D,MAAM,kBAAkB,KAAK;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AACA,MAAM,oBAAoB;AAAA,EACxB,QAAQ,KAAK,QAAQ,iBAAiB,QAAQ;AAAA,EAC9C,QAAQ,KAAK,QAAQ,iBAAiB,QAAQ;AAChD;AAEO,SAAS,cACd,SACqB;AACrB,SAAO;AAAA,IACL;AAAA,MACE;AAAA,QACE,WAAW;AAAA,QACX;AAAA,MAAA;AAAA,MAEF;AAAA,IAAA;AAAA,EACF;AAEJ;"}
@@ -0,0 +1,7 @@
1
+ import { hydrate } from 'solid-js/web'
2
+ import { StartClient } from '@tanstack/solid-start'
3
+ import { createRouter } from '#tanstack-start-router-entry'
4
+
5
+ const router = createRouter()
6
+
7
+ hydrate(() => <StartClient router={router} />, document.body)
@@ -0,0 +1,14 @@
1
+ import {
2
+ createStartHandler,
3
+ defaultStreamHandler,
4
+ } from '@tanstack/solid-start/server'
5
+
6
+ import { createRouter } from '#tanstack-start-router-entry'
7
+
8
+ const fetch = createStartHandler({
9
+ createRouter,
10
+ })(defaultStreamHandler)
11
+
12
+ export default {
13
+ fetch,
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-start",
3
- "version": "1.131.6",
3
+ "version": "1.132.0-alpha.0",
4
4
  "description": "Modern and scalable routing for Solid applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -30,60 +30,36 @@
30
30
  "import": {
31
31
  "types": "./dist/esm/client.d.ts",
32
32
  "default": "./dist/esm/client.js"
33
- },
34
- "require": {
35
- "types": "./dist/cjs/client.d.cts",
36
- "default": "./dist/cjs/client.cjs"
37
33
  }
38
34
  },
39
35
  "./client": {
40
36
  "import": {
41
37
  "types": "./dist/esm/client.d.ts",
42
38
  "default": "./dist/esm/client.js"
43
- },
44
- "require": {
45
- "types": "./dist/cjs/client.d.cts",
46
- "default": "./dist/cjs/client.cjs"
47
39
  }
48
40
  },
49
41
  "./server": {
50
42
  "import": {
51
43
  "types": "./dist/esm/server.d.ts",
52
44
  "default": "./dist/esm/server.js"
53
- },
54
- "require": {
55
- "types": "./dist/cjs/server.d.cts",
56
- "default": "./dist/cjs/server.cjs"
57
45
  }
58
46
  },
59
47
  "./plugin/vite": {
60
48
  "import": {
61
- "types": "./dist/esm/plugin-vite.d.ts",
62
- "default": "./dist/esm/plugin-vite.js"
63
- },
64
- "require": {
65
- "types": "./dist/cjs/plugin-vite.d.cts",
66
- "default": "./dist/cjs/plugin-vite.cjs"
49
+ "types": "./dist/esm/plugin/vite.d.ts",
50
+ "default": "./dist/esm/plugin/vite.js"
67
51
  }
68
52
  },
69
53
  "./server-functions-client": {
70
54
  "import": {
71
55
  "types": "./dist/esm/server-functions-client.d.ts",
72
56
  "default": "./dist/esm/server-functions-client.js"
73
- },
74
- "require": {
75
- "types": "./dist/cjs/server-functions-client.d.cts",
76
- "default": "./dist/cjs/server-functions-client.cjs"
77
57
  }
78
58
  },
79
59
  "./server-functions-server": {
80
60
  "import": {
81
61
  "types": "./dist/esm/server-functions-server.d.ts",
82
62
  "default": "./dist/esm/server-functions-server.js"
83
- },
84
- "require": {
85
- "types": "./dist/cjs/server-functions-server.d.cts",
86
- "default": "./dist/cjs/server-functions-server.cjs"
87
63
  }
88
64
  },
89
65
  "./package.json": "./package.json"
@@ -97,19 +73,20 @@
97
73
  "node": ">=12"
98
74
  },
99
75
  "dependencies": {
100
- "@tanstack/solid-start-client": "1.131.6",
101
- "@tanstack/solid-start-plugin": "1.131.6",
102
- "@tanstack/start-server-functions-client": "1.131.6",
103
- "@tanstack/start-server-functions-server": "1.131.2",
104
- "@tanstack/solid-start-server": "1.131.6"
76
+ "pathe": "^2.0.3",
77
+ "@tanstack/solid-start-client": "1.132.0-alpha.0",
78
+ "@tanstack/solid-start-server": "1.132.0-alpha.0",
79
+ "@tanstack/start-server-functions-client": "1.132.0-alpha.0",
80
+ "@tanstack/start-plugin-core": "1.132.0-alpha.0",
81
+ "@tanstack/start-server-functions-server": "1.132.0-alpha.0"
82
+ },
83
+ "devDependencies": {
84
+ "vite": "^7.1.1",
85
+ "@tanstack/router-utils": "1.132.0-alpha.0"
105
86
  },
106
87
  "peerDependencies": {
107
88
  "solid-js": ">=1.0.0",
108
- "vite": ">=6.0.0",
109
- "vite-plugin-solid": ">=2.11.6"
110
- },
111
- "devDependencies": {
112
- "esbuild": "^0.25.0"
89
+ "vite": ">=7.0.0"
113
90
  },
114
91
  "scripts": {}
115
92
  }
@@ -0,0 +1,7 @@
1
+ import { hydrate } from 'solid-js/web'
2
+ import { StartClient } from '@tanstack/solid-start'
3
+ import { createRouter } from '#tanstack-start-router-entry'
4
+
5
+ const router = createRouter()
6
+
7
+ hydrate(() => <StartClient router={router} />, document.body)
@@ -0,0 +1,4 @@
1
+ declare module '#tanstack-start-router-entry' {
2
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
3
+ export const createRouter: () => import('@tanstack/router-core').AnyRouter
4
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ createStartHandler,
3
+ defaultStreamHandler,
4
+ } from '@tanstack/solid-start/server'
5
+
6
+ import { createRouter } from '#tanstack-start-router-entry'
7
+
8
+ const fetch = createStartHandler({
9
+ createRouter,
10
+ })(defaultStreamHandler)
11
+
12
+ export default {
13
+ fetch,
14
+ }
@@ -0,0 +1,32 @@
1
+ import { fileURLToPath } from 'node:url'
2
+ import { TanStackStartVitePluginCore } from '@tanstack/start-plugin-core'
3
+ import path from 'pathe'
4
+ import type { TanStackStartInputConfig } from '@tanstack/start-plugin-core'
5
+ import type { PluginOption } from 'vite'
6
+
7
+ const currentDir = path.dirname(fileURLToPath(import.meta.url))
8
+ const defaultEntryDir = path.resolve(
9
+ currentDir,
10
+ '..',
11
+ '..',
12
+ 'plugin',
13
+ 'default-entry',
14
+ )
15
+ const defaultEntryPaths = {
16
+ client: path.resolve(defaultEntryDir, 'client'),
17
+ server: path.resolve(defaultEntryDir, 'server'),
18
+ }
19
+
20
+ export function tanstackStart(
21
+ options?: TanStackStartInputConfig,
22
+ ): Array<PluginOption> {
23
+ return [
24
+ TanStackStartVitePluginCore(
25
+ {
26
+ framework: 'solid',
27
+ defaultEntryPaths,
28
+ },
29
+ options,
30
+ ),
31
+ ]
32
+ }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const solidStartClient = require("@tanstack/solid-start-client");
4
- Object.keys(solidStartClient).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: () => solidStartClient[k]
8
- });
9
- });
10
- //# sourceMappingURL=client.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- export * from '@tanstack/solid-start-client';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const solidStartPlugin = require("@tanstack/solid-start-plugin");
4
- Object.keys(solidStartPlugin).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: () => solidStartPlugin[k]
8
- });
9
- });
10
- //# sourceMappingURL=plugin-vite.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-vite.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- export * from '@tanstack/solid-start-plugin';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const startServerFunctionsClient = require("@tanstack/start-server-functions-client");
4
- Object.keys(startServerFunctionsClient).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: () => startServerFunctionsClient[k]
8
- });
9
- });
10
- //# sourceMappingURL=server-functions-client.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server-functions-client.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- export * from '@tanstack/start-server-functions-client';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const startServerFunctionsServer = require("@tanstack/start-server-functions-server");
4
- Object.keys(startServerFunctionsServer).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: () => startServerFunctionsServer[k]
8
- });
9
- });
10
- //# sourceMappingURL=server-functions-server.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server-functions-server.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- export * from '@tanstack/start-server-functions-server';
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const solidStartServer = require("@tanstack/solid-start-server");
4
- Object.keys(solidStartServer).forEach((k) => {
5
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
- enumerable: true,
7
- get: () => solidStartServer[k]
8
- });
9
- });
10
- //# sourceMappingURL=server.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- export * from '@tanstack/solid-start-server';
@@ -1 +0,0 @@
1
- export * from '@tanstack/solid-start-plugin';
@@ -1,2 +0,0 @@
1
- export * from "@tanstack/solid-start-plugin";
2
- //# sourceMappingURL=plugin-vite.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-vite.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1 +0,0 @@
1
- export * from '@tanstack/solid-start-plugin'