@tanstack/cta-framework-react-cra 0.24.0 → 0.25.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.
Files changed (54) hide show
  1. package/ADD-ON-AUTHORING.md +26 -0
  2. package/add-ons/convex/assets/convex/_generated/api.d.ts +36 -0
  3. package/add-ons/convex/assets/convex/_generated/api.js +22 -0
  4. package/add-ons/convex/assets/convex/_generated/dataModel.d.ts +60 -0
  5. package/add-ons/convex/assets/convex/_generated/server.d.ts +142 -0
  6. package/add-ons/convex/assets/convex/_generated/server.js +89 -0
  7. package/add-ons/convex/assets/convex/tsconfig.json +25 -0
  8. package/add-ons/convex/assets/src/routes/demo.convex.tsx +3 -2
  9. package/add-ons/convex/package.json +1 -1
  10. package/add-ons/db/package.json +1 -1
  11. package/add-ons/form/package.json +1 -1
  12. package/add-ons/mcp/package.json +1 -1
  13. package/add-ons/neon/assets/vite-plugins/neon.ts +10 -0
  14. package/add-ons/neon/info.json +7 -0
  15. package/add-ons/sentry/package.json +1 -1
  16. package/add-ons/shadcn/package.json +1 -1
  17. package/add-ons/start/assets/vite.config.ts.ejs +11 -21
  18. package/add-ons/start/info.json +1 -6
  19. package/add-ons/start/package.json +1 -2
  20. package/add-ons/store/package.json +1 -1
  21. package/add-ons/t3env/package.json +3 -3
  22. package/add-ons/tRPC/package.json +1 -1
  23. package/add-ons/table/package.json +1 -1
  24. package/dist/index.js +1 -0
  25. package/examples/tanchat/package.json +3 -3
  26. package/hosts/cloudflare/assets/vite-plugins/cloudflare.ts +3 -0
  27. package/hosts/cloudflare/assets/wrangler.json +10 -0
  28. package/hosts/cloudflare/info.json +15 -0
  29. package/hosts/cloudflare/package.json +11 -0
  30. package/hosts/cloudflare/small-logo.svg +1 -0
  31. package/hosts/netlify/assets/vite-plugins/netlify.ts +3 -0
  32. package/{add-ons → hosts}/netlify/info.json +8 -1
  33. package/hosts/netlify/package.json +5 -0
  34. package/hosts/nitro/assets/vite-plugins/nitro.ts +3 -0
  35. package/hosts/nitro/info.json +16 -0
  36. package/hosts/nitro/package.json +5 -0
  37. package/hosts/nitro/small-logo.svg +42 -0
  38. package/package.json +3 -3
  39. package/project/base/package.json +3 -3
  40. package/project/base/src/routes/__root.tsx.ejs +3 -3
  41. package/project/base/vite.config.ts.ejs +4 -3
  42. package/src/index.ts +1 -0
  43. package/tests/snapshots/react-cra/cr-js-form-npm.json +3 -3
  44. package/tests/snapshots/react-cra/cr-js-npm.json +3 -3
  45. package/tests/snapshots/react-cra/cr-ts-npm.json +3 -3
  46. package/tests/snapshots/react-cra/cr-ts-start-npm.json +2 -2
  47. package/tests/snapshots/react-cra/cr-ts-start-tanstack-query-npm.json +2 -2
  48. package/tests/snapshots/react-cra/fr-ts-biome-npm.json +3 -3
  49. package/tests/snapshots/react-cra/fr-ts-npm.json +3 -3
  50. package/tests/snapshots/react-cra/fr-ts-tw-npm.json +3 -3
  51. package/toolchains/biome/package.json +1 -1
  52. package/add-ons/netlify/README.md +0 -24
  53. /package/{add-ons → hosts}/netlify/assets/netlify.toml +0 -0
  54. /package/{add-ons → hosts}/netlify/small-logo.svg +0 -0
@@ -136,6 +136,32 @@ Configuration in `info.json`:
136
136
  ]
137
137
  ```
138
138
 
139
+ ## vite-plugin
140
+
141
+ The code is integrated into `src/vite.config.ts`
142
+
143
+ ### Examples
144
+
145
+ Code in `assets/vite-plugins/netlify.ts`:
146
+
147
+ ```ts
148
+ import netlify from '@netlify/vite-plugin-tanstack-start'
149
+
150
+ export default netlify()
151
+ ```
152
+
153
+ Configuration in `info.json`:
154
+
155
+ ```json
156
+ "integrations": [
157
+ {
158
+ "type": "vite-plugin",
159
+ "jsName": "netlify",
160
+ "path": "vite-plugins/netlify.ts"
161
+ },
162
+ ]
163
+ ```
164
+
139
165
  # Routes
140
166
 
141
167
  If your add-on creates routes you need to specify those in the `info.json` file.
@@ -0,0 +1,36 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `api` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import type {
12
+ ApiFromModules,
13
+ FilterApi,
14
+ FunctionReference,
15
+ } from "convex/server";
16
+ import type * as todos from "../todos.js";
17
+
18
+ /**
19
+ * A utility for referencing Convex functions in your app's API.
20
+ *
21
+ * Usage:
22
+ * ```js
23
+ * const myFunctionReference = api.myModule.myFunction;
24
+ * ```
25
+ */
26
+ declare const fullApi: ApiFromModules<{
27
+ todos: typeof todos;
28
+ }>;
29
+ export declare const api: FilterApi<
30
+ typeof fullApi,
31
+ FunctionReference<any, "public">
32
+ >;
33
+ export declare const internal: FilterApi<
34
+ typeof fullApi,
35
+ FunctionReference<any, "internal">
36
+ >;
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `api` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import { anyApi } from "convex/server";
12
+
13
+ /**
14
+ * A utility for referencing Convex functions in your app's API.
15
+ *
16
+ * Usage:
17
+ * ```js
18
+ * const myFunctionReference = api.myModule.myFunction;
19
+ * ```
20
+ */
21
+ export const api = anyApi;
22
+ export const internal = anyApi;
@@ -0,0 +1,60 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated data model types.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import type {
12
+ DataModelFromSchemaDefinition,
13
+ DocumentByName,
14
+ TableNamesInDataModel,
15
+ SystemTableNames,
16
+ } from "convex/server";
17
+ import type { GenericId } from "convex/values";
18
+ import schema from "../schema.js";
19
+
20
+ /**
21
+ * The names of all of your Convex tables.
22
+ */
23
+ export type TableNames = TableNamesInDataModel<DataModel>;
24
+
25
+ /**
26
+ * The type of a document stored in Convex.
27
+ *
28
+ * @typeParam TableName - A string literal type of the table name (like "users").
29
+ */
30
+ export type Doc<TableName extends TableNames> = DocumentByName<
31
+ DataModel,
32
+ TableName
33
+ >;
34
+
35
+ /**
36
+ * An identifier for a document in Convex.
37
+ *
38
+ * Convex documents are uniquely identified by their `Id`, which is accessible
39
+ * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
40
+ *
41
+ * Documents can be loaded using `db.get(id)` in query and mutation functions.
42
+ *
43
+ * IDs are just strings at runtime, but this type can be used to distinguish them from other
44
+ * strings when type checking.
45
+ *
46
+ * @typeParam TableName - A string literal type of the table name (like "users").
47
+ */
48
+ export type Id<TableName extends TableNames | SystemTableNames> =
49
+ GenericId<TableName>;
50
+
51
+ /**
52
+ * A type describing your Convex data model.
53
+ *
54
+ * This type includes information about what tables you have, the type of
55
+ * documents stored in those tables, and the indexes defined on them.
56
+ *
57
+ * This type is used to parameterize methods like `queryGeneric` and
58
+ * `mutationGeneric` to make them type-safe.
59
+ */
60
+ export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
@@ -0,0 +1,142 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated utilities for implementing server-side Convex query and mutation functions.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import {
12
+ ActionBuilder,
13
+ HttpActionBuilder,
14
+ MutationBuilder,
15
+ QueryBuilder,
16
+ GenericActionCtx,
17
+ GenericMutationCtx,
18
+ GenericQueryCtx,
19
+ GenericDatabaseReader,
20
+ GenericDatabaseWriter,
21
+ } from "convex/server";
22
+ import type { DataModel } from "./dataModel.js";
23
+
24
+ /**
25
+ * Define a query in this Convex app's public API.
26
+ *
27
+ * This function will be allowed to read your Convex database and will be accessible from the client.
28
+ *
29
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
30
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
31
+ */
32
+ export declare const query: QueryBuilder<DataModel, "public">;
33
+
34
+ /**
35
+ * Define a query that is only accessible from other Convex functions (but not from the client).
36
+ *
37
+ * This function will be allowed to read from your Convex database. It will not be accessible from the client.
38
+ *
39
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
40
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
41
+ */
42
+ export declare const internalQuery: QueryBuilder<DataModel, "internal">;
43
+
44
+ /**
45
+ * Define a mutation in this Convex app's public API.
46
+ *
47
+ * This function will be allowed to modify your Convex database and will be accessible from the client.
48
+ *
49
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
50
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
51
+ */
52
+ export declare const mutation: MutationBuilder<DataModel, "public">;
53
+
54
+ /**
55
+ * Define a mutation that is only accessible from other Convex functions (but not from the client).
56
+ *
57
+ * This function will be allowed to modify your Convex database. It will not be accessible from the client.
58
+ *
59
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
60
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
61
+ */
62
+ export declare const internalMutation: MutationBuilder<DataModel, "internal">;
63
+
64
+ /**
65
+ * Define an action in this Convex app's public API.
66
+ *
67
+ * An action is a function which can execute any JavaScript code, including non-deterministic
68
+ * code and code with side-effects, like calling third-party services.
69
+ * They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
70
+ * They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
71
+ *
72
+ * @param func - The action. It receives an {@link ActionCtx} as its first argument.
73
+ * @returns The wrapped action. Include this as an `export` to name it and make it accessible.
74
+ */
75
+ export declare const action: ActionBuilder<DataModel, "public">;
76
+
77
+ /**
78
+ * Define an action that is only accessible from other Convex functions (but not from the client).
79
+ *
80
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument.
81
+ * @returns The wrapped function. Include this as an `export` to name it and make it accessible.
82
+ */
83
+ export declare const internalAction: ActionBuilder<DataModel, "internal">;
84
+
85
+ /**
86
+ * Define an HTTP action.
87
+ *
88
+ * This function will be used to respond to HTTP requests received by a Convex
89
+ * deployment if the requests matches the path and method where this action
90
+ * is routed. Be sure to route your action in `convex/http.js`.
91
+ *
92
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument.
93
+ * @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
94
+ */
95
+ export declare const httpAction: HttpActionBuilder;
96
+
97
+ /**
98
+ * A set of services for use within Convex query functions.
99
+ *
100
+ * The query context is passed as the first argument to any Convex query
101
+ * function run on the server.
102
+ *
103
+ * This differs from the {@link MutationCtx} because all of the services are
104
+ * read-only.
105
+ */
106
+ export type QueryCtx = GenericQueryCtx<DataModel>;
107
+
108
+ /**
109
+ * A set of services for use within Convex mutation functions.
110
+ *
111
+ * The mutation context is passed as the first argument to any Convex mutation
112
+ * function run on the server.
113
+ */
114
+ export type MutationCtx = GenericMutationCtx<DataModel>;
115
+
116
+ /**
117
+ * A set of services for use within Convex action functions.
118
+ *
119
+ * The action context is passed as the first argument to any Convex action
120
+ * function run on the server.
121
+ */
122
+ export type ActionCtx = GenericActionCtx<DataModel>;
123
+
124
+ /**
125
+ * An interface to read from the database within Convex query functions.
126
+ *
127
+ * The two entry points are {@link DatabaseReader.get}, which fetches a single
128
+ * document by its {@link Id}, or {@link DatabaseReader.query}, which starts
129
+ * building a query.
130
+ */
131
+ export type DatabaseReader = GenericDatabaseReader<DataModel>;
132
+
133
+ /**
134
+ * An interface to read from and write to the database within Convex mutation
135
+ * functions.
136
+ *
137
+ * Convex guarantees that all writes within a single mutation are
138
+ * executed atomically, so you never have to worry about partial writes leaving
139
+ * your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
140
+ * for the guarantees Convex provides your functions.
141
+ */
142
+ export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
@@ -0,0 +1,89 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated utilities for implementing server-side Convex query and mutation functions.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import {
12
+ actionGeneric,
13
+ httpActionGeneric,
14
+ queryGeneric,
15
+ mutationGeneric,
16
+ internalActionGeneric,
17
+ internalMutationGeneric,
18
+ internalQueryGeneric,
19
+ } from "convex/server";
20
+
21
+ /**
22
+ * Define a query in this Convex app's public API.
23
+ *
24
+ * This function will be allowed to read your Convex database and will be accessible from the client.
25
+ *
26
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
27
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
28
+ */
29
+ export const query = queryGeneric;
30
+
31
+ /**
32
+ * Define a query that is only accessible from other Convex functions (but not from the client).
33
+ *
34
+ * This function will be allowed to read from your Convex database. It will not be accessible from the client.
35
+ *
36
+ * @param func - The query function. It receives a {@link QueryCtx} as its first argument.
37
+ * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
38
+ */
39
+ export const internalQuery = internalQueryGeneric;
40
+
41
+ /**
42
+ * Define a mutation in this Convex app's public API.
43
+ *
44
+ * This function will be allowed to modify your Convex database and will be accessible from the client.
45
+ *
46
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
47
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
48
+ */
49
+ export const mutation = mutationGeneric;
50
+
51
+ /**
52
+ * Define a mutation that is only accessible from other Convex functions (but not from the client).
53
+ *
54
+ * This function will be allowed to modify your Convex database. It will not be accessible from the client.
55
+ *
56
+ * @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
57
+ * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
58
+ */
59
+ export const internalMutation = internalMutationGeneric;
60
+
61
+ /**
62
+ * Define an action in this Convex app's public API.
63
+ *
64
+ * An action is a function which can execute any JavaScript code, including non-deterministic
65
+ * code and code with side-effects, like calling third-party services.
66
+ * They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
67
+ * They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
68
+ *
69
+ * @param func - The action. It receives an {@link ActionCtx} as its first argument.
70
+ * @returns The wrapped action. Include this as an `export` to name it and make it accessible.
71
+ */
72
+ export const action = actionGeneric;
73
+
74
+ /**
75
+ * Define an action that is only accessible from other Convex functions (but not from the client).
76
+ *
77
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument.
78
+ * @returns The wrapped function. Include this as an `export` to name it and make it accessible.
79
+ */
80
+ export const internalAction = internalActionGeneric;
81
+
82
+ /**
83
+ * Define a Convex HTTP action.
84
+ *
85
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument, and a `Request` object
86
+ * as its second.
87
+ * @returns The wrapped endpoint function. Route a URL path to this function in `convex/http.js`.
88
+ */
89
+ export const httpAction = httpActionGeneric;
@@ -0,0 +1,25 @@
1
+ {
2
+ /* This TypeScript project config describes the environment that
3
+ * Convex functions run in and is used to typecheck them.
4
+ * You can modify it, but some settings are required to use Convex.
5
+ */
6
+ "compilerOptions": {
7
+ /* These settings are not required by Convex and can be modified. */
8
+ "allowJs": true,
9
+ "strict": true,
10
+ "moduleResolution": "Bundler",
11
+ "jsx": "react-jsx",
12
+ "skipLibCheck": true,
13
+ "allowSyntheticDefaultImports": true,
14
+
15
+ /* These compiler options are required by Convex */
16
+ "target": "ESNext",
17
+ "lib": ["ES2021", "dom"],
18
+ "forceConsistentCasingInFileNames": true,
19
+ "module": "ESNext",
20
+ "isolatedModules": true,
21
+ "noEmit": true
22
+ },
23
+ "include": ["./**/*"],
24
+ "exclude": ["./_generated"]
25
+ }
@@ -4,6 +4,7 @@ import { useQuery, useMutation } from 'convex/react'
4
4
  import { Trash2, Plus, Check, Circle } from 'lucide-react'
5
5
 
6
6
  import { api } from '../../convex/_generated/api'
7
+ import { Id } from '../../convex/_generated/dataModel'
7
8
 
8
9
  export const Route = createFileRoute('/demo/convex')({
9
10
  ssr: false,
@@ -26,14 +27,14 @@ function ConvexTodos() {
26
27
  }, [addTodo, newTodo])
27
28
 
28
29
  const handleToggleTodo = useCallback(
29
- async (id: string) => {
30
+ async (id: Id<'todos'>) => {
30
31
  await toggleTodo({ id })
31
32
  },
32
33
  [toggleTodo],
33
34
  )
34
35
 
35
36
  const handleRemoveTodo = useCallback(
36
- async (id: string) => {
37
+ async (id: Id<'todos'>) => {
37
38
  await removeTodo({ id })
38
39
  },
39
40
  [removeTodo],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "@convex-dev/react-query": "0.0.0-alpha.8",
3
+ "@convex-dev/react-query": "0.0.0-alpha.11",
4
4
  "convex": "^1.27.3",
5
5
  "lucide-react": "^0.544.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "@tanstack/db": "^0.1.1",
3
+ "@tanstack/db": "^0.4.3",
4
4
  "@tanstack/query-db-collection": "^0.2.0",
5
5
  "@tanstack/react-db": "^0.1.1",
6
6
  "zod": "^4.0.14"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@tanstack/react-form": "^1.0.0",
4
- "zod": "^3.24.2"
4
+ "zod": "^4.1.11"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@modelcontextprotocol/sdk": "^1.17.0",
4
- "zod": "3.25.76"
4
+ "zod": "4.1.11"
5
5
  }
6
6
  }
@@ -0,0 +1,10 @@
1
+ import postgresPlugin from '@neondatabase/vite-plugin-postgres'
2
+
3
+ export default postgresPlugin({
4
+ seed: {
5
+ type: 'sql-script',
6
+ path: 'db/init.sql',
7
+ },
8
+ referrer: 'create-tanstack',
9
+ dotEnvKey: 'VITE_DATABASE_URL',
10
+ })
@@ -13,5 +13,12 @@
13
13
  "jsName": "NeonDemo"
14
14
  }
15
15
  ],
16
+ "integrations": [
17
+ {
18
+ "type": "vite-plugin",
19
+ "jsName": "neon",
20
+ "path": "vite-plugins/neon.ts"
21
+ }
22
+ ],
16
23
  "dependsOn": ["start"]
17
24
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "@sentry/tanstackstart-react": "^9.12.0"
3
+ "@sentry/tanstackstart-react": "^10.17.0"
4
4
  }
5
5
  }
@@ -2,7 +2,7 @@
2
2
  "dependencies": {
3
3
  "class-variance-authority": "^0.7.1",
4
4
  "clsx": "^2.1.1",
5
- "lucide-react": "^0.476.0",
5
+ "lucide-react": "^0.544.0",
6
6
  "tailwind-merge": "^3.0.2",
7
7
  "tw-animate-css": "^1.3.6"
8
8
  }
@@ -5,29 +5,19 @@ import viteTsConfigPaths from 'vite-tsconfig-paths'<% if (tailwind) { %>
5
5
  import tailwindcss from "@tailwindcss/vite"
6
6
  <% } %><% if (addOnEnabled.sentry) { %>
7
7
  import { wrapVinxiConfigWithSentry } from "@sentry/tanstackstart-react";
8
- <% } %><% if (addOnEnabled.neon) { %>
9
- import postgresPlugin from "@neondatabase/vite-plugin-postgres";
8
+ <% } %><% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %>import <%= integration.jsName %> from "<%= relativePath(integration.path) %>";
10
9
  <% } %>
11
10
  const config = defineConfig({
12
- plugins: [
13
- <% if (addOnEnabled.neon) { %>
14
- postgresPlugin({
15
- seed: {
16
- type: "sql-script",
17
- path: "db/init.sql"
18
- },
19
- referrer: 'create-tanstack',
20
- dotEnvKey: 'VITE_DATABASE_URL',
21
- }),
22
- <% } %>
23
- // this is the plugin that enables path aliases
24
- viteTsConfigPaths({
25
- projects: ['./tsconfig.json'],
26
- }),
27
- <% if (tailwind) { %>tailwindcss(),<% } %>
28
- tanstackStart(),
29
- viteReact(),
30
- ],
11
+ plugins: [<% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %>
12
+ <%= integration.jsName %>,<% } %>
13
+ // this is the plugin that enables path aliases
14
+ viteTsConfigPaths({
15
+ projects: ['./tsconfig.json'],
16
+ }),
17
+ <% if (tailwind) { %>tailwindcss(),<% } %>
18
+ tanstackStart(),
19
+ viteReact(),
20
+ ],
31
21
  })
32
22
 
33
23
  <% if (addOnEnabled.sentry) { %>
@@ -5,7 +5,6 @@
5
5
  "link": "https://tanstack.com/start/latest",
6
6
  "modes": ["file-router"],
7
7
  "type": "add-on",
8
- "warning": "TanStack Start is not yet at 1.0 and may change significantly or not be compatible with other add-ons.\nMigrating to Start might require deleting node_modules and re-installing.",
9
8
  "routes": [
10
9
  {
11
10
  "url": "/demo/start/server-funcs",
@@ -20,10 +19,6 @@
20
19
  "jsName": "StartApiRequestDemo"
21
20
  }
22
21
  ],
23
- "deletedFiles": [
24
- "./index.html",
25
- "./src/main.tsx",
26
- "./src/App.css"
27
- ],
22
+ "deletedFiles": ["./index.html", "./src/main.tsx", "./src/App.css"],
28
23
  "addOnSpecialSteps": ["rimraf-node-modules"]
29
24
  }
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "scripts": {
3
3
  "dev": "vite dev --port 3000",
4
- "build": "vite build",
5
- "start": "node .output/server/index.mjs"
4
+ "build": "vite build"
6
5
  },
7
6
  "dependencies": {
8
7
  "@tanstack/react-router-ssr-query": "^1.131.7",
@@ -4,6 +4,6 @@
4
4
  "@tanstack/react-store": "^0.7.0"
5
5
  },
6
6
  "devDependencies": {
7
- "@tanstack/devtools-event-client": "^0.2.1"
7
+ "@tanstack/devtools-event-client": "^0.3.2"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "zod": "^3.24.2",
4
- "@t3-oss/env-core": "^0.12.0"
3
+ "zod": "^4.1.11",
4
+ "@t3-oss/env-core": "^0.13.8"
5
5
  }
6
- }
6
+ }
@@ -4,6 +4,6 @@
4
4
  "@trpc/server": "^11.4.3",
5
5
  "@trpc/tanstack-react-query": "^11.4.3",
6
6
  "superjson": "^2.2.2",
7
- "zod": "^3.24.2"
7
+ "zod": "^4.1.11"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "@faker-js/faker": "^9.6.0",
3
+ "@faker-js/faker": "^10.0.0",
4
4
  "@tanstack/match-sorter-utils": "^8.19.4",
5
5
  "@tanstack/react-table": "^8.21.2"
6
6
  }
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ export function createFrameworkDefinition() {
7
7
  join(baseDirectory, 'add-ons'),
8
8
  join(baseDirectory, 'toolchains'),
9
9
  join(baseDirectory, 'examples'),
10
+ join(baseDirectory, 'hosts'),
10
11
  ]);
11
12
  const { files, basePackageJSON, optionalPackages } = scanProjectDirectory(join(baseDirectory, 'project'), join(baseDirectory, 'project/base'));
12
13
  return {
@@ -5,12 +5,12 @@
5
5
  "@modelcontextprotocol/sdk": "^1.8.0",
6
6
  "ai": "^5.0.8",
7
7
  "highlight.js": "^11.11.1",
8
- "react-markdown": "^9.0.1",
8
+ "react-markdown": "^10.1.0",
9
9
  "rehype-highlight": "^7.0.0",
10
10
  "rehype-raw": "^7.0.0",
11
11
  "rehype-sanitize": "^6.0.0",
12
12
  "remark-gfm": "^4.0.1",
13
- "lucide-react": "^0.475.0",
14
- "zod": "^3.24.2"
13
+ "lucide-react": "^0.544.0",
14
+ "zod": "^4.1.11"
15
15
  }
16
16
  }
@@ -0,0 +1,3 @@
1
+ import { cloudflare } from '@cloudflare/vite-plugin'
2
+
3
+ export default cloudflare({ viteEnvironment: { name: 'ssr' } })
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "node_modules/wrangler/config-schema.json",
3
+ "name": "tanstack-start-app",
4
+ "compatibility_date": "2025-09-02",
5
+ "compatibility_flags": ["nodejs_compat"],
6
+ "main": "@tanstack/react-start/server-entry",
7
+ "vars": {
8
+ "MY_VAR": "Hello from Cloudflare"
9
+ }
10
+ }