create-fate 1.7.7 → 1.8.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 (47) hide show
  1. package/bin/create-fate.mjs +40 -6
  2. package/package.json +1 -1
  3. package/templates/fate/_shared/vue-app/package.json +3 -2
  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 +2 -2
  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/pnpm-workspace.yaml +4 -4
  12. package/templates/fate/drizzle/server/package.json +1 -1
  13. package/templates/fate/graphql/AGENTS.md +1 -1
  14. package/templates/fate/graphql/_gitignore +1 -0
  15. package/templates/fate/graphql/client/package.json +2 -2
  16. package/templates/fate/graphql/client/pages/layout.tsx +2 -2
  17. package/templates/fate/graphql/client/src/App.css +1 -6
  18. package/templates/fate/graphql/pnpm-workspace.yaml +3 -3
  19. package/templates/fate/graphql-client/AGENTS.md +20 -0
  20. package/templates/fate/graphql-client/_gitignore +1 -0
  21. package/templates/fate/graphql-client/package.json +2 -2
  22. package/templates/fate/graphql-client/pnpm-workspace.yaml +3 -3
  23. package/templates/fate/graphql-client/src/App.css +1 -7
  24. package/templates/fate/graphql-client/vite.config.ts +1 -11
  25. package/templates/fate/http/AGENTS.md +1 -1
  26. package/templates/fate/http/_gitignore +1 -0
  27. package/templates/fate/http/client/package.json +2 -2
  28. package/templates/fate/http/client/pages/layout.tsx +2 -2
  29. package/templates/fate/http/client/src/App.css +1 -6
  30. package/templates/fate/http/pnpm-workspace.yaml +4 -4
  31. package/templates/fate/http/server/package.json +1 -1
  32. package/templates/fate/prisma/AGENTS.md +1 -1
  33. package/templates/fate/prisma/_gitignore +1 -0
  34. package/templates/fate/prisma/client/package.json +2 -2
  35. package/templates/fate/prisma/client/pages/layout.tsx +2 -2
  36. package/templates/fate/prisma/client/src/App.css +1 -6
  37. package/templates/fate/prisma/pnpm-workspace.yaml +3 -3
  38. package/templates/fate/void/AGENTS.md +23 -0
  39. package/templates/fate/void/_gitignore +1 -0
  40. package/templates/fate/void/db/migrations/20261015035853_better_auth_accounts.sql +3 -0
  41. package/templates/fate/void/db/migrations/meta/20261015035853_snapshot.json +918 -0
  42. package/templates/fate/void/db/migrations/meta/_journal.json +7 -0
  43. package/templates/fate/void/db/schema.ts +20 -3
  44. package/templates/fate/void/package.json +4 -4
  45. package/templates/fate/void/pnpm-workspace.yaml +5 -4
  46. package/templates/fate/void/src/App.css +1 -6
  47. 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;
@@ -29,11 +29,11 @@
29
29
  "@nkzw/fate": "latest",
30
30
  "@nkzw/stack": "^2.3.2",
31
31
  "@radix-ui/react-slot": "^1.3.3",
32
- "@void/react": "^0.24.0",
32
+ "@void/react": "^1.1.0",
33
33
  "better-auth": "^1.7.7",
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
38
  "lucide-react": "^1.34.0",
39
39
  "react": "^19.3.0",
@@ -41,12 +41,12 @@
41
41
  "react-error-boundary": "^6.1.3",
42
42
  "react-fate": "latest",
43
43
  "tailwind-merge": "^3.6.0",
44
- "void": "^0.24.0",
44
+ "void": "^1.1.0",
45
45
  "void-fate": "latest",
46
46
  "zod": "^4.4.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@cloudflare/workers-types": "4.20260702.1",
49
+ "@cloudflare/workers-types": "5.20261014.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",
@@ -2,15 +2,16 @@ packages:
2
2
  - .
3
3
 
4
4
  allowBuilds:
5
+ '@swc/core': true
5
6
  better-sqlite3: true
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.2.0
13
+ vite-plus: 1.2.0
14
+ vitest: 5.0.4
14
15
 
15
16
  minimumReleaseAgeExclude:
16
17
  - '@voidzero-dev/vite-plus-core'
@@ -26,7 +27,7 @@ onlyBuiltDependencies:
26
27
 
27
28
  overrides:
28
29
  better-auth: 1.7.7
29
- drizzle-orm: 0.45.3
30
+ drizzle-orm: 0.45.4
30
31
  kysely: 0.28.17
31
32
  vite: 'catalog:'
32
33
  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',