create-fate 1.7.7 → 1.9.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 (70) hide show
  1. package/bin/create-fate.mjs +50 -8
  2. package/package.json +1 -1
  3. package/templates/fate/_shared/vue-app/package.json +12 -11
  4. package/templates/fate/_shared/vue-app/src/App.css +1 -6
  5. package/templates/fate/_shared/vue-app/vite.config.ts +12 -1
  6. package/templates/fate/drizzle/AGENTS.md +1 -1
  7. package/templates/fate/drizzle/_gitignore +1 -0
  8. package/templates/fate/drizzle/client/package.json +15 -15
  9. package/templates/fate/drizzle/client/pages/layout.tsx +2 -2
  10. package/templates/fate/drizzle/client/src/App.css +1 -6
  11. package/templates/fate/drizzle/package.json +6 -7
  12. package/templates/fate/drizzle/pnpm-workspace.yaml +6 -6
  13. package/templates/fate/drizzle/server/package.json +9 -9
  14. package/templates/fate/graphql/AGENTS.md +2 -2
  15. package/templates/fate/graphql/README.md +12 -0
  16. package/templates/fate/graphql/_gitignore +1 -0
  17. package/templates/fate/graphql/client/package.json +14 -14
  18. package/templates/fate/graphql/client/pages/index.tsx +1 -1
  19. package/templates/fate/graphql/client/pages/layout.tsx +2 -2
  20. package/templates/fate/graphql/client/pages/search.tsx +2 -2
  21. package/templates/fate/graphql/client/src/App.css +1 -6
  22. package/templates/fate/graphql/client/src/fate/graphql.ts +20 -0
  23. package/templates/fate/graphql/client/src/ui/CommentCard.tsx +1 -1
  24. package/templates/fate/graphql/client/src/ui/PostCard.tsx +1 -1
  25. package/templates/fate/graphql/client/src/ui/UserCard.tsx +1 -1
  26. package/templates/fate/graphql/client/vite.config.ts +1 -1
  27. package/templates/fate/graphql/package.json +6 -7
  28. package/templates/fate/graphql/pnpm-workspace.yaml +5 -5
  29. package/templates/fate/graphql/server/README.md +5 -4
  30. package/templates/fate/graphql/server/package.json +19 -19
  31. package/templates/fate/graphql/server/scripts/generate-graphql.tsx +7 -1
  32. package/templates/fate/graphql/server/src/graphql/fate.ts +0 -56
  33. package/templates/fate/graphql/server/src/graphql/schema.tsx +22 -3
  34. package/templates/fate/graphql/server/src/graphql/views.ts +0 -43
  35. package/templates/fate/graphql-client/AGENTS.md +20 -0
  36. package/templates/fate/graphql-client/README.md +16 -14
  37. package/templates/fate/graphql-client/_gitignore +1 -0
  38. package/templates/fate/graphql-client/package.json +14 -13
  39. package/templates/fate/graphql-client/pages/index.tsx +2 -2
  40. package/templates/fate/graphql-client/pnpm-workspace.yaml +5 -6
  41. package/templates/fate/graphql-client/src/App.css +1 -7
  42. package/templates/fate/graphql-client/src/fate/graphql.ts +7 -48
  43. package/templates/fate/graphql-client/src/fate/schema.graphql +48 -0
  44. package/templates/fate/graphql-client/vite.config.ts +1 -11
  45. package/templates/fate/http/AGENTS.md +1 -1
  46. package/templates/fate/http/_gitignore +1 -0
  47. package/templates/fate/http/client/package.json +13 -13
  48. package/templates/fate/http/client/pages/layout.tsx +2 -2
  49. package/templates/fate/http/client/src/App.css +1 -6
  50. package/templates/fate/http/package.json +6 -7
  51. package/templates/fate/http/pnpm-workspace.yaml +6 -6
  52. package/templates/fate/http/server/package.json +8 -8
  53. package/templates/fate/prisma/AGENTS.md +1 -1
  54. package/templates/fate/prisma/_gitignore +1 -0
  55. package/templates/fate/prisma/client/package.json +15 -15
  56. package/templates/fate/prisma/client/pages/layout.tsx +2 -2
  57. package/templates/fate/prisma/client/src/App.css +1 -6
  58. package/templates/fate/prisma/package.json +6 -7
  59. package/templates/fate/prisma/pnpm-workspace.yaml +5 -5
  60. package/templates/fate/prisma/server/package.json +8 -8
  61. package/templates/fate/void/AGENTS.md +23 -0
  62. package/templates/fate/void/_gitignore +1 -0
  63. package/templates/fate/void/db/migrations/20261015035853_better_auth_accounts.sql +3 -0
  64. package/templates/fate/void/db/migrations/meta/20261015035853_snapshot.json +918 -0
  65. package/templates/fate/void/db/migrations/meta/_journal.json +7 -0
  66. package/templates/fate/void/db/schema.ts +20 -3
  67. package/templates/fate/void/package.json +17 -17
  68. package/templates/fate/void/pnpm-workspace.yaml +7 -7
  69. package/templates/fate/void/src/App.css +1 -6
  70. package/templates/fate/void/vite.config.ts +0 -7
@@ -22,6 +22,13 @@
22
22
  "when": 1789707495097,
23
23
  "tag": "20260918045815_legal_dragon_lord",
24
24
  "breakpoints": true
25
+ },
26
+ {
27
+ "idx": 3,
28
+ "version": "6",
29
+ "when": 1792036733755,
30
+ "tag": "20261015035853_better_auth_accounts",
31
+ "breakpoints": true
25
32
  }
26
33
  ]
27
34
  }
@@ -47,6 +47,7 @@ export const session = sqliteTable(
47
47
  createdAt: timestampColumn(),
48
48
  expiresAt: integer({ mode: 'timestamp' }).notNull(),
49
49
  id: idColumn().primaryKey(),
50
+ impersonatedBy: text(),
50
51
  ipAddress: text(),
51
52
  token: text().notNull(),
52
53
  updatedAt: timestampColumn(),
@@ -55,7 +56,10 @@ export const session = sqliteTable(
55
56
  .notNull()
56
57
  .references(() => user.id, { onDelete: 'cascade' }),
57
58
  },
58
- (table) => [uniqueIndex('session_token_key').on(table.token)],
59
+ (table) => [
60
+ uniqueIndex('session_token_key').on(table.token),
61
+ index('session_userId_idx').on(table.userId),
62
+ ],
59
63
  );
60
64
 
61
65
  export const account = sqliteTable(
@@ -67,7 +71,6 @@ export const account = sqliteTable(
67
71
  createdAt: timestampColumn(),
68
72
  id: idColumn().primaryKey(),
69
73
  idToken: text(),
70
- issuer: text().notNull(),
71
74
  password: text(),
72
75
  providerId: text().notNull(),
73
76
  refreshToken: text(),
@@ -78,7 +81,20 @@ export const account = sqliteTable(
78
81
  .notNull()
79
82
  .references(() => user.id, { onDelete: 'cascade' }),
80
83
  },
81
- (table) => [uniqueIndex('account_issuer_accountId_key').on(table.issuer, table.accountId)],
84
+ (table) => [index('account_userId_idx').on(table.userId)],
85
+ );
86
+
87
+ export const verification = sqliteTable(
88
+ 'verification',
89
+ {
90
+ createdAt: timestampColumn(),
91
+ expiresAt: integer({ mode: 'timestamp' }).notNull(),
92
+ id: idColumn().primaryKey(),
93
+ identifier: text().notNull(),
94
+ updatedAt: timestampColumn(),
95
+ value: text().notNull(),
96
+ },
97
+ (table) => [index('verification_identifier_idx').on(table.identifier)],
82
98
  );
83
99
 
84
100
  export const category = sqliteTable(
@@ -319,6 +335,7 @@ const schema = {
319
335
  tagRelations,
320
336
  user,
321
337
  userRelations,
338
+ verification,
322
339
  } as const;
323
340
 
324
341
  export default schema;
@@ -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.3.3",
32
- "@void/react": "^0.24.0",
33
- "better-auth": "^1.7.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
- "drizzle-orm": "^0.45.3",
36
+ "drizzle-orm": "^0.45.4",
37
37
  "fbtee": "^5.0.0",
38
- "lucide-react": "^1.34.0",
39
- "react": "^19.3.0",
40
- "react-dom": "^19.3.0",
41
- "react-error-boundary": "^6.1.3",
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.6.0",
44
- "void": "^0.24.0",
43
+ "tailwind-merge": "^3.7.0",
44
+ "void": "^1.1.12",
45
45
  "void-fate": "latest",
46
- "zod": "^4.4.3"
46
+ "zod": "^4.6.7"
47
47
  },
48
48
  "devDependencies": {
49
- "@cloudflare/workers-types": "4.20260702.1",
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.0",
54
+ "@oxc-node/core": "^0.1.7",
55
55
  "@tailwindcss/vite": "^4.3.3",
56
- "@types/node": "^26.4.0",
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.0",
60
- "oxc-transform-react": "^0.147.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@11.0.6"
76
+ "packageManager": "pnpm@12.6.0"
77
77
  }
@@ -2,15 +2,16 @@ packages:
2
2
  - .
3
3
 
4
4
  allowBuilds:
5
- better-sqlite3: true
5
+ '@swc/core': true
6
+ better-sqlite3: false
6
7
  esbuild: true
7
8
  sharp: true
8
9
  workerd: true
9
10
 
10
11
  catalog:
11
- vite: npm:@voidzero-dev/vite-plus-core@1.0.0
12
- vite-plus: 1.0.0
13
- vitest: 5.0.2
12
+ vite: npm:@voidzero-dev/vite-plus-core@1.3.0
13
+ vite-plus: 1.3.0
14
+ vitest: 5.0.5
14
15
 
15
16
  minimumReleaseAgeExclude:
16
17
  - '@voidzero-dev/vite-plus-core'
@@ -18,15 +19,14 @@ minimumReleaseAgeExclude:
18
19
 
19
20
  onlyBuiltDependencies:
20
21
  - '@tailwindcss/oxide'
21
- - better-sqlite3
22
22
  - esbuild
23
23
  - msgpackr-extract
24
24
  - sharp
25
25
  - workerd
26
26
 
27
27
  overrides:
28
- better-auth: 1.7.7
29
- drizzle-orm: 0.45.3
28
+ better-auth: 1.7.11
29
+ drizzle-orm: 0.45.4
30
30
  kysely: 0.28.17
31
31
  vite: 'catalog:'
32
32
  vitest: 'catalog:'
@@ -2,12 +2,7 @@
2
2
 
3
3
  body {
4
4
  font-family:
5
- system-ui,
6
- -apple-system,
7
- BlinkMacSystemFont,
8
- 'Segoe UI',
9
- 'Open Sans',
10
- 'Helvetica Neue',
5
+ system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', 'Helvetica Neue',
11
6
  sans-serif;
12
7
 
13
8
  background-color: hsl(var(--background));
@@ -19,13 +19,6 @@ export default defineConfig({
19
19
  exclude: [
20
20
  '@nkzw/fate/client',
21
21
  '@nkzw/fate/server',
22
- '@nkzw/stack',
23
- '@radix-ui/react-slot',
24
- '@void/react',
25
- '@void/react/pages-server',
26
- 'lucide-react',
27
- 'react-error-boundary',
28
- 'react-fate',
29
22
  'react-fate/client',
30
23
  'void-fate/react',
31
24
  'void-fate/server',