@tanstack/react-start 1.160.1 → 1.161.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,15 @@
1
+ /**
2
+ * Side-effect-only marker import.
3
+ *
4
+ * Usage:
5
+ * import '@tanstack/react-start/client-only'
6
+ *
7
+ * When this import appears in a module, the import-protection plugin marks
8
+ * that module as client-only. Importing a client-only module from the server
9
+ * environment will trigger a violation (error or mock depending on config).
10
+ *
11
+ * At build time, the plugin intercepts this specifier in `resolveId` and
12
+ * replaces it with a virtual empty module — this source file exists only
13
+ * so that TypeScript and IDE tooling can resolve the import.
14
+ */
15
+ export {};
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=client-only.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-only.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Side-effect-only marker import.
3
+ *
4
+ * Usage:
5
+ * import '@tanstack/react-start/server-only'
6
+ *
7
+ * When this import appears in a module, the import-protection plugin marks
8
+ * that module as server-only. Importing a server-only module from the client
9
+ * environment will trigger a violation (error or mock depending on config).
10
+ *
11
+ * At build time, the plugin intercepts this specifier in `resolveId` and
12
+ * replaces it with a virtual empty module — this source file exists only
13
+ * so that TypeScript and IDE tooling can resolve the import.
14
+ */
15
+ export {};
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=server-only.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-only.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-start",
3
- "version": "1.160.1",
3
+ "version": "1.161.0",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -74,6 +74,18 @@
74
74
  "default": "./dist/default-entry/esm/server.js"
75
75
  }
76
76
  },
77
+ "./server-only": {
78
+ "import": {
79
+ "types": "./dist/esm/server-only.d.ts",
80
+ "default": "./dist/esm/server-only.js"
81
+ }
82
+ },
83
+ "./client-only": {
84
+ "import": {
85
+ "types": "./dist/esm/client-only.d.ts",
86
+ "default": "./dist/esm/client-only.js"
87
+ }
88
+ },
77
89
  "./package.json": "./package.json"
78
90
  },
79
91
  "sideEffects": false,
@@ -86,12 +98,12 @@
86
98
  },
87
99
  "dependencies": {
88
100
  "pathe": "^2.0.3",
89
- "@tanstack/react-start-server": "1.160.0",
90
- "@tanstack/react-router": "1.160.0",
101
+ "@tanstack/react-start-client": "1.160.2",
102
+ "@tanstack/react-start-server": "1.160.2",
91
103
  "@tanstack/router-utils": "^1.158.0",
92
- "@tanstack/react-start-client": "1.160.0",
104
+ "@tanstack/react-router": "1.160.2",
93
105
  "@tanstack/start-client-core": "1.160.0",
94
- "@tanstack/start-plugin-core": "1.160.1",
106
+ "@tanstack/start-plugin-core": "1.161.0",
95
107
  "@tanstack/start-server-core": "1.160.0"
96
108
  },
97
109
  "peerDependencies": {
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Side-effect-only marker import.
3
+ *
4
+ * Usage:
5
+ * import '@tanstack/react-start/client-only'
6
+ *
7
+ * When this import appears in a module, the import-protection plugin marks
8
+ * that module as client-only. Importing a client-only module from the server
9
+ * environment will trigger a violation (error or mock depending on config).
10
+ *
11
+ * At build time, the plugin intercepts this specifier in `resolveId` and
12
+ * replaces it with a virtual empty module — this source file exists only
13
+ * so that TypeScript and IDE tooling can resolve the import.
14
+ */
15
+ export {}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Side-effect-only marker import.
3
+ *
4
+ * Usage:
5
+ * import '@tanstack/react-start/server-only'
6
+ *
7
+ * When this import appears in a module, the import-protection plugin marks
8
+ * that module as server-only. Importing a server-only module from the client
9
+ * environment will trigger a violation (error or mock depending on config).
10
+ *
11
+ * At build time, the plugin intercepts this specifier in `resolveId` and
12
+ * replaces it with a virtual empty module — this source file exists only
13
+ * so that TypeScript and IDE tooling can resolve the import.
14
+ */
15
+ export {}