create-fate 1.8.0 → 1.10.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.
- package/bin/create-fate.mjs +10 -2
- package/package.json +1 -1
- package/templates/fate/_shared/vue-app/package.json +11 -11
- package/templates/fate/drizzle/client/package.json +15 -15
- package/templates/fate/drizzle/client/src/ui/PostCard.tsx +6 -1
- package/templates/fate/drizzle/package.json +6 -7
- package/templates/fate/drizzle/pnpm-workspace.yaml +5 -5
- package/templates/fate/drizzle/server/package.json +8 -8
- package/templates/fate/graphql/AGENTS.md +1 -1
- package/templates/fate/graphql/README.md +12 -1
- package/templates/fate/graphql/client/package.json +14 -14
- package/templates/fate/graphql/client/pages/index.tsx +1 -1
- package/templates/fate/graphql/client/pages/search.tsx +2 -2
- package/templates/fate/graphql/client/src/fate/graphql.ts +20 -0
- package/templates/fate/graphql/client/src/ui/CommentCard.tsx +1 -1
- package/templates/fate/graphql/client/src/ui/PostCard.tsx +7 -2
- package/templates/fate/graphql/client/src/ui/UserCard.tsx +1 -1
- package/templates/fate/graphql/client/vite.config.ts +1 -1
- package/templates/fate/graphql/package.json +6 -7
- package/templates/fate/graphql/pnpm-workspace.yaml +5 -5
- package/templates/fate/graphql/server/README.md +3 -4
- package/templates/fate/graphql/server/package.json +19 -19
- package/templates/fate/graphql/server/scripts/generate-graphql.tsx +7 -1
- package/templates/fate/graphql/server/src/graphql/fate.ts +0 -56
- package/templates/fate/graphql/server/src/graphql/schema.tsx +22 -3
- package/templates/fate/graphql/server/src/graphql/views.ts +0 -43
- package/templates/fate/graphql-client/README.md +8 -14
- package/templates/fate/graphql-client/package.json +14 -13
- package/templates/fate/graphql-client/pages/index.tsx +2 -2
- package/templates/fate/graphql-client/pnpm-workspace.yaml +5 -6
- package/templates/fate/graphql-client/src/fate/graphql.ts +7 -48
- package/templates/fate/graphql-client/src/fate/schema.graphql +48 -0
- package/templates/fate/http/client/package.json +13 -13
- package/templates/fate/http/client/src/ui/PostCard.tsx +6 -1
- package/templates/fate/http/package.json +6 -7
- package/templates/fate/http/pnpm-workspace.yaml +5 -5
- package/templates/fate/http/server/package.json +7 -7
- package/templates/fate/prisma/client/package.json +15 -15
- package/templates/fate/prisma/client/src/ui/PostCard.tsx +6 -1
- package/templates/fate/prisma/package.json +6 -7
- package/templates/fate/prisma/pnpm-workspace.yaml +5 -5
- package/templates/fate/prisma/server/package.json +8 -8
- package/templates/fate/void/package.json +16 -16
- package/templates/fate/void/pnpm-workspace.yaml +5 -6
- package/templates/fate/void/src/ui/PostCard.tsx +6 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "dotenv -
|
|
13
|
+
"build": "dotenv run -f server/.env -- vp run --filter '@app/client' --filter '@app/server' build",
|
|
14
14
|
"dev": "npm-run-all --parallel dev:client dev:server",
|
|
15
15
|
"dev:client": "cd client && vp dev",
|
|
16
16
|
"dev:server": "cd server && vp run dev",
|
|
@@ -23,11 +23,10 @@
|
|
|
23
23
|
"@app/server": "workspace:*",
|
|
24
24
|
"@nkzw/eslint-plugin": "^2.0.0",
|
|
25
25
|
"@nkzw/oxlint-config": "^2.0.1",
|
|
26
|
-
"@oxc-node/core": "^0.1.
|
|
27
|
-
"@swc/core": "^1.16.
|
|
28
|
-
"@types/node": "^26.
|
|
29
|
-
"dotenv": "^
|
|
30
|
-
"dotenv-cli": "^11.0.0",
|
|
26
|
+
"@oxc-node/core": "^0.1.7",
|
|
27
|
+
"@swc/core": "^1.16.18",
|
|
28
|
+
"@types/node": "^26.6.5",
|
|
29
|
+
"dotenv": "^18.0.8",
|
|
31
30
|
"npm-run-all2": "^9.0.3",
|
|
32
31
|
"prisma": "^7.10.0",
|
|
33
32
|
"typescript": "^7.0.2",
|
|
@@ -39,5 +38,5 @@
|
|
|
39
38
|
"node": ">=24.0.0",
|
|
40
39
|
"pnpm": ">=11.0.0"
|
|
41
40
|
},
|
|
42
|
-
"packageManager": "pnpm@
|
|
41
|
+
"packageManager": "pnpm@12.6.0"
|
|
43
42
|
}
|
|
@@ -5,16 +5,16 @@ packages:
|
|
|
5
5
|
allowBuilds:
|
|
6
6
|
'@prisma/engines': true
|
|
7
7
|
'@swc/core': true
|
|
8
|
-
better-sqlite3:
|
|
8
|
+
better-sqlite3: false
|
|
9
9
|
esbuild: true
|
|
10
10
|
prisma: true
|
|
11
11
|
sharp: true
|
|
12
12
|
workerd: true
|
|
13
13
|
|
|
14
14
|
catalog:
|
|
15
|
-
vite: npm:@voidzero-dev/vite-plus-core@1.
|
|
16
|
-
vite-plus: 1.
|
|
17
|
-
vitest: 5.0.
|
|
15
|
+
vite: npm:@voidzero-dev/vite-plus-core@1.3.0
|
|
16
|
+
vite-plus: 1.3.0
|
|
17
|
+
vitest: 5.0.5
|
|
18
18
|
|
|
19
19
|
minimumReleaseAgeExclude:
|
|
20
20
|
- '@voidzero-dev/vite-plus-core'
|
|
@@ -31,7 +31,7 @@ onlyBuiltDependencies:
|
|
|
31
31
|
- unrs-resolver
|
|
32
32
|
|
|
33
33
|
overrides:
|
|
34
|
-
better-auth: 1.7.
|
|
34
|
+
better-auth: 1.7.11
|
|
35
35
|
kysely: 0.28.17
|
|
36
36
|
vite: 'catalog:'
|
|
37
37
|
vitest: 'catalog:'
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"prisma": "prisma"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@hono/node-server": "^2.1.
|
|
18
|
+
"@hono/node-server": "^2.1.5",
|
|
19
19
|
"@hono/trpc-server": "^0.4.2",
|
|
20
20
|
"@nkzw/core": "^1.3.1",
|
|
21
21
|
"@nkzw/define-env": "^1.1.0",
|
|
22
22
|
"@nkzw/fate": "latest",
|
|
23
|
-
"@prisma/adapter-pg": "^7.10.
|
|
24
|
-
"@prisma/client": "^7.10.
|
|
25
|
-
"@trpc/server": "^11.
|
|
26
|
-
"better-auth": "^1.7.
|
|
27
|
-
"hono": "^4.13.
|
|
28
|
-
"zod": "^4.
|
|
23
|
+
"@prisma/adapter-pg": "^7.10.1",
|
|
24
|
+
"@prisma/client": "^7.10.1",
|
|
25
|
+
"@trpc/server": "^11.19.0",
|
|
26
|
+
"better-auth": "^1.7.11",
|
|
27
|
+
"hono": "^4.13.13",
|
|
28
|
+
"zod": "^4.6.7"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^26.
|
|
31
|
+
"@types/node": "^26.6.5",
|
|
32
32
|
"nodemon": "^3.1.14",
|
|
33
33
|
"prisma": "^7.10.0",
|
|
34
34
|
"vite-plus": "catalog:"
|
|
@@ -28,36 +28,36 @@
|
|
|
28
28
|
"@nkzw/core": "^1.3.1",
|
|
29
29
|
"@nkzw/fate": "latest",
|
|
30
30
|
"@nkzw/stack": "^2.3.2",
|
|
31
|
-
"@radix-ui/react-slot": "^1.
|
|
32
|
-
"@void/react": "^1.1.
|
|
33
|
-
"better-auth": "^1.7.
|
|
31
|
+
"@radix-ui/react-slot": "^1.5.0",
|
|
32
|
+
"@void/react": "^1.1.12",
|
|
33
|
+
"better-auth": "^1.7.11",
|
|
34
34
|
"class-variance-authority": "^0.7.1",
|
|
35
35
|
"clsx": "^2.1.1",
|
|
36
36
|
"drizzle-orm": "^0.45.4",
|
|
37
37
|
"fbtee": "^5.0.0",
|
|
38
|
-
"lucide-react": "^1.
|
|
39
|
-
"react": "^19.3.
|
|
40
|
-
"react-dom": "^19.3.
|
|
41
|
-
"react-error-boundary": "^6.1.
|
|
38
|
+
"lucide-react": "^1.59.0",
|
|
39
|
+
"react": "^19.3.1",
|
|
40
|
+
"react-dom": "^19.3.1",
|
|
41
|
+
"react-error-boundary": "^6.1.6",
|
|
42
42
|
"react-fate": "latest",
|
|
43
|
-
"tailwind-merge": "^3.
|
|
44
|
-
"void": "^1.1.
|
|
43
|
+
"tailwind-merge": "^3.7.0",
|
|
44
|
+
"void": "^1.1.12",
|
|
45
45
|
"void-fate": "latest",
|
|
46
|
-
"zod": "^4.
|
|
46
|
+
"zod": "^4.6.7"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@cloudflare/workers-types": "5.
|
|
49
|
+
"@cloudflare/workers-types": "5.20261019.1",
|
|
50
50
|
"@nkzw/eslint-plugin": "^2.0.0",
|
|
51
51
|
"@nkzw/fbtee-compiler": "^5.0.0",
|
|
52
52
|
"@nkzw/oxlint-config": "^2.0.1",
|
|
53
53
|
"@nkzw/vite-plugin-fbtee": "^5.0.0",
|
|
54
|
-
"@oxc-node/core": "^0.1.
|
|
54
|
+
"@oxc-node/core": "^0.1.7",
|
|
55
55
|
"@tailwindcss/vite": "^4.3.3",
|
|
56
|
-
"@types/node": "^26.
|
|
56
|
+
"@types/node": "^26.6.5",
|
|
57
57
|
"@types/react": "^19.3.0",
|
|
58
58
|
"@types/react-dom": "^19.3.0",
|
|
59
|
-
"@vitejs/plugin-react": "^6.1.
|
|
60
|
-
"oxc-transform-react": "^0.
|
|
59
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
60
|
+
"oxc-transform-react": "^0.154.0",
|
|
61
61
|
"tailwindcss": "^4.3.3",
|
|
62
62
|
"typescript": "^7.0.2",
|
|
63
63
|
"vite": "catalog:",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"node": ">=24.0.0",
|
|
74
74
|
"pnpm": ">=11.0.0"
|
|
75
75
|
},
|
|
76
|
-
"packageManager": "pnpm@
|
|
76
|
+
"packageManager": "pnpm@12.6.0"
|
|
77
77
|
}
|
|
@@ -3,15 +3,15 @@ packages:
|
|
|
3
3
|
|
|
4
4
|
allowBuilds:
|
|
5
5
|
'@swc/core': true
|
|
6
|
-
better-sqlite3:
|
|
6
|
+
better-sqlite3: false
|
|
7
7
|
esbuild: true
|
|
8
8
|
sharp: true
|
|
9
9
|
workerd: true
|
|
10
10
|
|
|
11
11
|
catalog:
|
|
12
|
-
vite: npm:@voidzero-dev/vite-plus-core@1.
|
|
13
|
-
vite-plus: 1.
|
|
14
|
-
vitest: 5.0.
|
|
12
|
+
vite: npm:@voidzero-dev/vite-plus-core@1.3.0
|
|
13
|
+
vite-plus: 1.3.0
|
|
14
|
+
vitest: 5.0.5
|
|
15
15
|
|
|
16
16
|
minimumReleaseAgeExclude:
|
|
17
17
|
- '@voidzero-dev/vite-plus-core'
|
|
@@ -19,14 +19,13 @@ minimumReleaseAgeExclude:
|
|
|
19
19
|
|
|
20
20
|
onlyBuiltDependencies:
|
|
21
21
|
- '@tailwindcss/oxide'
|
|
22
|
-
- better-sqlite3
|
|
23
22
|
- esbuild
|
|
24
23
|
- msgpackr-extract
|
|
25
24
|
- sharp
|
|
26
25
|
- workerd
|
|
27
26
|
|
|
28
27
|
overrides:
|
|
29
|
-
better-auth: 1.7.
|
|
28
|
+
better-auth: 1.7.11
|
|
30
29
|
drizzle-orm: 0.45.4
|
|
31
30
|
kysely: 0.28.17
|
|
32
31
|
vite: 'catalog:'
|
|
@@ -92,7 +92,11 @@ const CommentInput = ({
|
|
|
92
92
|
post,
|
|
93
93
|
}: {
|
|
94
94
|
error?: unknown;
|
|
95
|
-
post: {
|
|
95
|
+
post: {
|
|
96
|
+
commentCount: number;
|
|
97
|
+
comments: Deferred<{ items: ReadonlyArray<{ node: ViewRef<'Comment'> }> }>;
|
|
98
|
+
id: string;
|
|
99
|
+
};
|
|
96
100
|
}) => {
|
|
97
101
|
const fate = useFateClient();
|
|
98
102
|
const { auth } = useShared<SharedData>();
|
|
@@ -108,6 +112,7 @@ const CommentInput = ({
|
|
|
108
112
|
|
|
109
113
|
const result = await fate.mutations.comment.add({
|
|
110
114
|
input: { content, postId: post.id },
|
|
115
|
+
insert: { into: post.comments, position: 'after' },
|
|
111
116
|
optimistic: {
|
|
112
117
|
author: user ? { id: user.id, name: user.name } : null,
|
|
113
118
|
content,
|