@storyshelf/db-sqlite 0.7.0 → 0.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 (73) hide show
  1. package/dist/better-sqlite3.d.mts +0 -2
  2. package/dist/better-sqlite3.mjs +2 -3
  3. package/dist/bun-sqlite.d.mts +0 -2
  4. package/dist/bun-sqlite.mjs +2 -3
  5. package/dist/d1.d.mts +0 -2
  6. package/dist/d1.mjs +2 -3
  7. package/dist/ddl.d.mts +1 -3
  8. package/dist/ddl.mjs +21 -2
  9. package/dist/ddl.mjs.map +1 -1
  10. package/dist/drizzle-factory.d.mts +0 -2
  11. package/dist/drizzle-factory.mjs +6 -3
  12. package/dist/drizzle-factory.mjs.map +1 -1
  13. package/dist/ensure-db-dir.mjs +2 -4
  14. package/dist/ensure-db-dir.mjs.map +1 -1
  15. package/dist/index.d.mts +4 -3
  16. package/dist/index.mjs +3 -4
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/schema/baseline.d.mts +33 -16
  19. package/dist/schema/baseline.mjs +2 -2
  20. package/dist/schema/baseline.mjs.map +1 -1
  21. package/dist/schema/build-component.d.mts +9 -11
  22. package/dist/schema/build-component.mjs +1 -2
  23. package/dist/schema/build-review.d.mts +7 -9
  24. package/dist/schema/build-review.mjs +1 -2
  25. package/dist/schema/build.d.mts +43 -25
  26. package/dist/schema/build.mjs +2 -2
  27. package/dist/schema/build.mjs.map +1 -1
  28. package/dist/schema/capture-attempt.d.mts +25 -27
  29. package/dist/schema/capture-attempt.mjs +1 -2
  30. package/dist/schema/capture-job.d.mts +0 -2
  31. package/dist/schema/capture-job.mjs +1 -2
  32. package/dist/schema/capture-shard.d.mts +15 -17
  33. package/dist/schema/capture-shard.mjs +1 -2
  34. package/dist/schema/comment.d.mts +12 -14
  35. package/dist/schema/comment.mjs +1 -2
  36. package/dist/schema/connection.d.mts +10 -12
  37. package/dist/schema/connection.mjs +1 -2
  38. package/dist/schema/content-refs.d.mts +0 -2
  39. package/dist/schema/content-refs.mjs +1 -2
  40. package/dist/schema/design.d.mts +33 -35
  41. package/dist/schema/design.mjs +1 -2
  42. package/dist/schema/insight.d.mts +36 -38
  43. package/dist/schema/insight.mjs +1 -2
  44. package/dist/schema/label.d.mts +15 -17
  45. package/dist/schema/label.mjs +1 -2
  46. package/dist/schema/member.d.mts +7 -9
  47. package/dist/schema/member.mjs +1 -2
  48. package/dist/schema/notification.d.mts +20 -22
  49. package/dist/schema/notification.mjs +1 -2
  50. package/dist/schema/project-group-mapping.d.mts +6 -8
  51. package/dist/schema/project-group-mapping.mjs +1 -2
  52. package/dist/schema/project.d.mts +0 -2
  53. package/dist/schema/project.mjs +1 -2
  54. package/dist/schema/site-setting.d.mts +0 -2
  55. package/dist/schema/site-setting.mjs +1 -2
  56. package/dist/schema/snapshot.d.mts +91 -33
  57. package/dist/schema/snapshot.mjs +4 -2
  58. package/dist/schema/snapshot.mjs.map +1 -1
  59. package/dist/schema/token.d.mts +8 -10
  60. package/dist/schema/token.mjs +1 -2
  61. package/dist/schema/usage.d.mts +15 -17
  62. package/dist/schema/usage.mjs +1 -2
  63. package/dist/schema/user-invite.d.mts +7 -9
  64. package/dist/schema/user-invite.mjs +1 -2
  65. package/dist/schema/user.d.mts +0 -2
  66. package/dist/schema/user.mjs +1 -2
  67. package/dist/schema/webhook.d.mts +8 -10
  68. package/dist/schema/webhook.mjs +1 -2
  69. package/dist/schema.d.mts +0 -2
  70. package/dist/schema.mjs +1 -2
  71. package/dist/turso.d.mts +0 -2
  72. package/dist/turso.mjs +2 -3
  73. package/package.json +4 -4
@@ -4,7 +4,7 @@ import.meta.url;
4
4
  import { projects } from "./project.mjs";
5
5
  import { builds } from "./build.mjs";
6
6
  import { index, integer, real, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
7
- //#region src/schema/snapshot.ts
7
+ // src/schema/snapshot.ts
8
8
  /** Narrow `snapshots` table definition. */
9
9
  const snapshots = sqliteTable("snapshots", {
10
10
  id: text("id").primaryKey(),
@@ -31,6 +31,9 @@ const snapshots = sqliteTable("snapshots", {
31
31
  inherited: integer("inherited", { mode: "boolean" }).notNull().default(false),
32
32
  baselineId: text("baseline_id"),
33
33
  baselineVersion: text("baseline_version"),
34
+ sourceBuildId: text("source_build_id"),
35
+ comparisonImagePath: text("comparison_image_path"),
36
+ comparisonMetadata: text("comparison_metadata"),
34
37
  mode: text("mode"),
35
38
  browser: text("browser").notNull().default("chromium"),
36
39
  durationMs: integer("duration_ms"),
@@ -42,7 +45,6 @@ const snapshots = sqliteTable("snapshots", {
42
45
  index("snapshots_build_id_idx").on(t.buildId),
43
46
  index("snapshots_project_import_path_idx").on(t.projectId, t.storyImportPath)
44
47
  ]);
45
- //#endregion
46
48
  export { snapshots };
47
49
 
48
50
  //# sourceMappingURL=snapshot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot.mjs","names":[],"sources":["../../src/schema/snapshot.ts"],"sourcesContent":["import type { SnapshotStatus } from \"@storyshelf/core/types\";\nimport { index, integer, real, sqliteTable, text, uniqueIndex } from \"drizzle-orm/sqlite-core\";\nimport { builds } from \"./build.ts\";\nimport { projects } from \"./project.ts\";\n\n/** Narrow `snapshots` table definition. */\nexport const snapshots = sqliteTable(\n \"snapshots\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n buildId: text(\"build_id\")\n .notNull()\n .references(() => builds.id, { onDelete: \"cascade\" }),\n storyId: text(\"story_id\").notNull(),\n storyName: text(\"story_name\").notNull(),\n storyTitle: text(\"story_title\").notNull(),\n storyImportPath: text(\"story_import_path\"),\n designUrl: text(\"design_url\"),\n viewportName: text(\"viewport_name\").notNull().default(\"desktop\"),\n viewportWidth: integer(\"viewport_width\").notNull().default(1280),\n viewportHeight: integer(\"viewport_height\").notNull().default(720),\n screenshotPath: text(\"screenshot_path\").notNull(),\n diffPath: text(\"diff_path\"),\n diffPixels: integer(\"diff_pixels\"),\n diffRatio: real(\"diff_ratio\"),\n diffPassed: integer(\"diff_passed\", { mode: \"boolean\" }),\n status: text(\"status\").$type<SnapshotStatus>().notNull().default(\"pending\"),\n reviewedBy: text(\"reviewed_by\"),\n reviewedAt: text(\"reviewed_at\"),\n infraHash: text(\"infra_hash\"),\n envChange: text(\"env_change\"),\n inherited: integer(\"inherited\", { mode: \"boolean\" }).notNull().default(false),\n baselineId: text(\"baseline_id\"),\n baselineVersion: text(\"baseline_version\"),\n mode: text(\"mode\"),\n browser: text(\"browser\").notNull().default(\"chromium\"),\n durationMs: integer(\"duration_ms\"),\n a11yViolations: text(\"a11y_violations\"),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n uniqueIndex(\"snapshots_build_story_mode_browser_idx\").on(\n t.buildId,\n t.storyId,\n t.viewportName,\n t.browser,\n ),\n index(\"snapshots_build_id_idx\").on(t.buildId),\n index(\"snapshots_project_import_path_idx\").on(t.projectId, t.storyImportPath),\n ],\n);\n\n/** A snapshot row. */\nexport interface Snapshot {\n id: string;\n projectId: string;\n buildId: string;\n storyId: string;\n storyName: string;\n storyTitle: string;\n storyImportPath: string | null;\n designUrl: string | null;\n viewportName: string;\n viewportWidth: number;\n viewportHeight: number;\n screenshotPath: string;\n diffPath: string | null;\n diffPixels: number | null;\n diffRatio: number | null;\n diffPassed: boolean | null;\n status: SnapshotStatus;\n reviewedBy: string | null;\n reviewedAt: string | null;\n infraHash: string | null;\n envChange: string | null;\n inherited: boolean;\n baselineId: string | null;\n baselineVersion: string | null;\n mode: string | null;\n browser: string;\n durationMs: number | null;\n a11yViolations: string | null;\n createdAt: string;\n updatedAt: string;\n}\n"],"mappings":";;;;;;;;AAMA,MAAa,YAAY,YACvB,aACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,SAAS,KAAK,UAAU,CAAC,CACtB,QAAQ,CAAC,CACT,iBAAiB,OAAO,IAAI,EAAE,UAAU,UAAU,CAAC;CACtD,SAAS,KAAK,UAAU,CAAC,CAAC,QAAQ;CAClC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,YAAY,KAAK,aAAa,CAAC,CAAC,QAAQ;CACxC,iBAAiB,KAAK,mBAAmB;CACzC,WAAW,KAAK,YAAY;CAC5B,cAAc,KAAK,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CAC/D,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,IAAI;CAC/D,gBAAgB,QAAQ,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,GAAG;CAChE,gBAAgB,KAAK,iBAAiB,CAAC,CAAC,QAAQ;CAChD,UAAU,KAAK,WAAW;CAC1B,YAAY,QAAQ,aAAa;CACjC,WAAW,KAAK,YAAY;CAC5B,YAAY,QAAQ,eAAe,EAAE,MAAM,UAAU,CAAC;CACtD,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAsB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CAC1E,YAAY,KAAK,aAAa;CAC9B,YAAY,KAAK,aAAa;CAC9B,WAAW,KAAK,YAAY;CAC5B,WAAW,KAAK,YAAY;CAC5B,WAAW,QAAQ,aAAa,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,KAAK;CAC5E,YAAY,KAAK,aAAa;CAC9B,iBAAiB,KAAK,kBAAkB;CACxC,MAAM,KAAK,MAAM;CACjB,SAAS,KAAK,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,UAAU;CACrD,YAAY,QAAQ,aAAa;CACjC,gBAAgB,KAAK,iBAAiB;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM;CACL,YAAY,wCAAwC,CAAC,CAAC,GACpD,EAAE,SACF,EAAE,SACF,EAAE,cACF,EAAE,OACJ;CACA,MAAM,wBAAwB,CAAC,CAAC,GAAG,EAAE,OAAO;CAC5C,MAAM,mCAAmC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,eAAe;AAC9E,CACF"}
1
+ {"version":3,"file":"snapshot.mjs","names":[],"sources":["../../src/schema/snapshot.ts"],"sourcesContent":["import type { SnapshotStatus } from \"@storyshelf/core/types\";\nimport { index, integer, real, sqliteTable, text, uniqueIndex } from \"drizzle-orm/sqlite-core\";\nimport { builds } from \"./build.ts\";\nimport { projects } from \"./project.ts\";\n\n/** Narrow `snapshots` table definition. */\nexport const snapshots = sqliteTable(\n \"snapshots\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n buildId: text(\"build_id\")\n .notNull()\n .references(() => builds.id, { onDelete: \"cascade\" }),\n storyId: text(\"story_id\").notNull(),\n storyName: text(\"story_name\").notNull(),\n storyTitle: text(\"story_title\").notNull(),\n storyImportPath: text(\"story_import_path\"),\n designUrl: text(\"design_url\"),\n viewportName: text(\"viewport_name\").notNull().default(\"desktop\"),\n viewportWidth: integer(\"viewport_width\").notNull().default(1280),\n viewportHeight: integer(\"viewport_height\").notNull().default(720),\n screenshotPath: text(\"screenshot_path\").notNull(),\n diffPath: text(\"diff_path\"),\n diffPixels: integer(\"diff_pixels\"),\n diffRatio: real(\"diff_ratio\"),\n diffPassed: integer(\"diff_passed\", { mode: \"boolean\" }),\n status: text(\"status\").$type<SnapshotStatus>().notNull().default(\"pending\"),\n reviewedBy: text(\"reviewed_by\"),\n reviewedAt: text(\"reviewed_at\"),\n infraHash: text(\"infra_hash\"),\n envChange: text(\"env_change\"),\n inherited: integer(\"inherited\", { mode: \"boolean\" }).notNull().default(false),\n baselineId: text(\"baseline_id\"),\n baselineVersion: text(\"baseline_version\"),\n sourceBuildId: text(\"source_build_id\"),\n comparisonImagePath: text(\"comparison_image_path\"),\n comparisonMetadata: text(\"comparison_metadata\"),\n mode: text(\"mode\"),\n browser: text(\"browser\").notNull().default(\"chromium\"),\n durationMs: integer(\"duration_ms\"),\n a11yViolations: text(\"a11y_violations\"),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n uniqueIndex(\"snapshots_build_story_mode_browser_idx\").on(\n t.buildId,\n t.storyId,\n t.viewportName,\n t.browser,\n ),\n index(\"snapshots_build_id_idx\").on(t.buildId),\n index(\"snapshots_project_import_path_idx\").on(t.projectId, t.storyImportPath),\n ],\n);\n\n/** A snapshot row. */\nexport interface Snapshot {\n id: string;\n projectId: string;\n buildId: string;\n storyId: string;\n storyName: string;\n storyTitle: string;\n storyImportPath: string | null;\n designUrl: string | null;\n viewportName: string;\n viewportWidth: number;\n viewportHeight: number;\n screenshotPath: string;\n diffPath: string | null;\n diffPixels: number | null;\n diffRatio: number | null;\n diffPassed: boolean | null;\n status: SnapshotStatus;\n reviewedBy: string | null;\n reviewedAt: string | null;\n infraHash: string | null;\n envChange: string | null;\n inherited: boolean;\n baselineId: string | null;\n baselineVersion: string | null;\n sourceBuildId: string | null;\n comparisonImagePath: string | null;\n comparisonMetadata: string | null;\n mode: string | null;\n browser: string;\n durationMs: number | null;\n a11yViolations: string | null;\n createdAt: string;\n updatedAt: string;\n}\n"],"mappings":";;;;;;;;AAMA,MAAa,YAAY,YACvB,aACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,SAAS,KAAK,UAAU,CAAC,CACtB,QAAQ,CAAC,CACT,iBAAiB,OAAO,IAAI,EAAE,UAAU,UAAU,CAAC;CACtD,SAAS,KAAK,UAAU,CAAC,CAAC,QAAQ;CAClC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,YAAY,KAAK,aAAa,CAAC,CAAC,QAAQ;CACxC,iBAAiB,KAAK,mBAAmB;CACzC,WAAW,KAAK,YAAY;CAC5B,cAAc,KAAK,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CAC/D,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,IAAI;CAC/D,gBAAgB,QAAQ,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,GAAG;CAChE,gBAAgB,KAAK,iBAAiB,CAAC,CAAC,QAAQ;CAChD,UAAU,KAAK,WAAW;CAC1B,YAAY,QAAQ,aAAa;CACjC,WAAW,KAAK,YAAY;CAC5B,YAAY,QAAQ,eAAe,EAAE,MAAM,UAAU,CAAC;CACtD,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAsB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CAC1E,YAAY,KAAK,aAAa;CAC9B,YAAY,KAAK,aAAa;CAC9B,WAAW,KAAK,YAAY;CAC5B,WAAW,KAAK,YAAY;CAC5B,WAAW,QAAQ,aAAa,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,KAAK;CAC5E,YAAY,KAAK,aAAa;CAC9B,iBAAiB,KAAK,kBAAkB;CACxC,eAAe,KAAK,iBAAiB;CACrC,qBAAqB,KAAK,uBAAuB;CACjD,oBAAoB,KAAK,qBAAqB;CAC9C,MAAM,KAAK,MAAM;CACjB,SAAS,KAAK,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,UAAU;CACrD,YAAY,QAAQ,aAAa;CACjC,gBAAgB,KAAK,iBAAiB;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM;CACL,YAAY,wCAAwC,CAAC,CAAC,GACpD,EAAE,SACF,EAAE,SACF,EAAE,cACF,EAAE,OACJ;CACA,MAAM,wBAAwB,CAAC,CAAC,GAAG,EAAE,OAAO;CAC5C,MAAM,mCAAmC,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,eAAe;AAC9E,CACF"}
@@ -1,12 +1,11 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/schema/token.d.ts
4
3
  /** Narrow `tokens` table definition. */
5
- declare const tokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
4
+ declare const tokens: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
6
5
  name: "tokens";
7
6
  schema: undefined;
8
7
  columns: {
9
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
8
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
10
9
  name: "id";
11
10
  tableName: "tokens";
12
11
  dataType: "string";
@@ -25,7 +24,7 @@ declare const tokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
25
24
  }, {}, {
26
25
  length: number | undefined;
27
26
  }>;
28
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
27
+ projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
29
28
  name: "project_id";
30
29
  tableName: "tokens";
31
30
  dataType: "string";
@@ -44,7 +43,7 @@ declare const tokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
44
43
  }, {}, {
45
44
  length: number | undefined;
46
45
  }>;
47
- name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
46
+ name: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
48
47
  name: "name";
49
48
  tableName: "tokens";
50
49
  dataType: "string";
@@ -63,7 +62,7 @@ declare const tokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
63
62
  }, {}, {
64
63
  length: number | undefined;
65
64
  }>;
66
- hash: import("drizzle-orm/sqlite-core").SQLiteColumn<{
65
+ hash: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
67
66
  name: "hash";
68
67
  tableName: "tokens";
69
68
  dataType: "string";
@@ -82,7 +81,7 @@ declare const tokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
82
81
  }, {}, {
83
82
  length: number | undefined;
84
83
  }>;
85
- userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
84
+ userId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
86
85
  name: "user_id";
87
86
  tableName: "tokens";
88
87
  dataType: "string";
@@ -101,7 +100,7 @@ declare const tokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
101
100
  }, {}, {
102
101
  length: number | undefined;
103
102
  }>;
104
- lastUsedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
103
+ lastUsedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
105
104
  name: "last_used_at";
106
105
  tableName: "tokens";
107
106
  dataType: "string";
@@ -120,7 +119,7 @@ declare const tokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
120
119
  }, {}, {
121
120
  length: number | undefined;
122
121
  }>;
123
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
122
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
124
123
  name: "created_at";
125
124
  tableName: "tokens";
126
125
  dataType: "string";
@@ -152,6 +151,5 @@ interface Token {
152
151
  lastUsedAt: string | null;
153
152
  createdAt: string;
154
153
  }
155
- //#endregion
156
154
  export { Token, tokens };
157
155
  //# sourceMappingURL=token.d.mts.map
@@ -4,7 +4,7 @@ import.meta.url;
4
4
  import { projects } from "./project.mjs";
5
5
  import { users } from "./user.mjs";
6
6
  import { sqliteTable, text } from "drizzle-orm/sqlite-core";
7
- //#region src/schema/token.ts
7
+ // src/schema/token.ts
8
8
  /** Narrow `tokens` table definition. */
9
9
  const tokens = sqliteTable("tokens", {
10
10
  id: text("id").primaryKey(),
@@ -15,7 +15,6 @@ const tokens = sqliteTable("tokens", {
15
15
  lastUsedAt: text("last_used_at"),
16
16
  createdAt: text("created_at").notNull()
17
17
  });
18
- //#endregion
19
18
  export { tokens };
20
19
 
21
20
  //# sourceMappingURL=token.mjs.map
@@ -1,12 +1,11 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/schema/usage.d.ts
4
3
  /** Narrow `project_links` table definition. */
5
- declare const projectLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
4
+ declare const projectLinks: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
6
5
  name: "project_links";
7
6
  schema: undefined;
8
7
  columns: {
9
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
8
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
10
9
  name: "id";
11
10
  tableName: "project_links";
12
11
  dataType: "string";
@@ -25,7 +24,7 @@ declare const projectLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
25
24
  }, {}, {
26
25
  length: number | undefined;
27
26
  }>;
28
- downstreamId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
27
+ downstreamId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
29
28
  name: "downstream_id";
30
29
  tableName: "project_links";
31
30
  dataType: "string";
@@ -44,7 +43,7 @@ declare const projectLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
44
43
  }, {}, {
45
44
  length: number | undefined;
46
45
  }>;
47
- upstreamId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
46
+ upstreamId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
48
47
  name: "upstream_id";
49
48
  tableName: "project_links";
50
49
  dataType: "string";
@@ -63,7 +62,7 @@ declare const projectLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
63
62
  }, {}, {
64
63
  length: number | undefined;
65
64
  }>;
66
- packageName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
65
+ packageName: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
67
66
  name: "package_name";
68
67
  tableName: "project_links";
69
68
  dataType: "string";
@@ -82,7 +81,7 @@ declare const projectLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
82
81
  }, {}, {
83
82
  length: number | undefined;
84
83
  }>;
85
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
84
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
86
85
  name: "created_at";
87
86
  tableName: "project_links";
88
87
  dataType: "string";
@@ -105,11 +104,11 @@ declare const projectLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
105
104
  dialect: 'sqlite';
106
105
  }>;
107
106
  /** Narrow `build_package_usage` table definition. */
108
- declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
107
+ declare const buildPackageUsage: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
109
108
  name: "build_package_usage";
110
109
  schema: undefined;
111
110
  columns: {
112
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
111
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
113
112
  name: "id";
114
113
  tableName: "build_package_usage";
115
114
  dataType: "string";
@@ -128,7 +127,7 @@ declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWi
128
127
  }, {}, {
129
128
  length: number | undefined;
130
129
  }>;
131
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
130
+ projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
132
131
  name: "project_id";
133
132
  tableName: "build_package_usage";
134
133
  dataType: "string";
@@ -147,7 +146,7 @@ declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWi
147
146
  }, {}, {
148
147
  length: number | undefined;
149
148
  }>;
150
- buildId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
149
+ buildId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
151
150
  name: "build_id";
152
151
  tableName: "build_package_usage";
153
152
  dataType: "string";
@@ -166,7 +165,7 @@ declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWi
166
165
  }, {}, {
167
166
  length: number | undefined;
168
167
  }>;
169
- storyImportPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
168
+ storyImportPath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
170
169
  name: "story_import_path";
171
170
  tableName: "build_package_usage";
172
171
  dataType: "string";
@@ -185,7 +184,7 @@ declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWi
185
184
  }, {}, {
186
185
  length: number | undefined;
187
186
  }>;
188
- packageName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
187
+ packageName: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
189
188
  name: "package_name";
190
189
  tableName: "build_package_usage";
191
190
  dataType: "string";
@@ -204,7 +203,7 @@ declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWi
204
203
  }, {}, {
205
204
  length: number | undefined;
206
205
  }>;
207
- modulePath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
206
+ modulePath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
208
207
  name: "module_path";
209
208
  tableName: "build_package_usage";
210
209
  dataType: "string";
@@ -223,7 +222,7 @@ declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWi
223
222
  }, {}, {
224
223
  length: number | undefined;
225
224
  }>;
226
- version: import("drizzle-orm/sqlite-core").SQLiteColumn<{
225
+ version: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
227
226
  name: "version";
228
227
  tableName: "build_package_usage";
229
228
  dataType: "string";
@@ -242,7 +241,7 @@ declare const buildPackageUsage: import("drizzle-orm/sqlite-core").SQLiteTableWi
242
241
  }, {}, {
243
242
  length: number | undefined;
244
243
  }>;
245
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
244
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
246
245
  name: "created_at";
247
246
  tableName: "build_package_usage";
248
247
  dataType: "string";
@@ -288,6 +287,5 @@ interface BuildPackageUsage {
288
287
  version: string | null;
289
288
  createdAt: string;
290
289
  }
291
- //#endregion
292
290
  export { BuildPackageUsage, ProjectLink, buildPackageUsage, projectLinks };
293
291
  //# sourceMappingURL=usage.d.mts.map
@@ -4,7 +4,7 @@ import.meta.url;
4
4
  import { projects } from "./project.mjs";
5
5
  import { builds } from "./build.mjs";
6
6
  import { index, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
7
- //#region src/schema/usage.ts
7
+ // src/schema/usage.ts
8
8
  /** Narrow `project_links` table definition. */
9
9
  const projectLinks = sqliteTable("project_links", {
10
10
  id: text("id").primaryKey(),
@@ -24,7 +24,6 @@ const buildPackageUsage = sqliteTable("build_package_usage", {
24
24
  version: text("version"),
25
25
  createdAt: text("created_at").notNull()
26
26
  }, (t) => [index("build_package_usage_build_id_idx").on(t.buildId)]);
27
- //#endregion
28
27
  export { buildPackageUsage, projectLinks };
29
28
 
30
29
  //# sourceMappingURL=usage.mjs.map
@@ -1,12 +1,11 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/schema/user-invite.d.ts
4
3
  /** Invite token for local accounts (one-time, hashed at rest). */
5
- declare const userInviteTokens: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
4
+ declare const userInviteTokens: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
6
5
  name: "user_invite_tokens";
7
6
  schema: undefined;
8
7
  columns: {
9
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
8
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
10
9
  name: "id";
11
10
  tableName: "user_invite_tokens";
12
11
  dataType: "string";
@@ -25,7 +24,7 @@ declare const userInviteTokens: import("drizzle-orm/sqlite-core").SQLiteTableWit
25
24
  }, {}, {
26
25
  length: number | undefined;
27
26
  }>;
28
- userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
27
+ userId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
29
28
  name: "user_id";
30
29
  tableName: "user_invite_tokens";
31
30
  dataType: "string";
@@ -44,7 +43,7 @@ declare const userInviteTokens: import("drizzle-orm/sqlite-core").SQLiteTableWit
44
43
  }, {}, {
45
44
  length: number | undefined;
46
45
  }>;
47
- tokenHash: import("drizzle-orm/sqlite-core").SQLiteColumn<{
46
+ tokenHash: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
48
47
  name: "token_hash";
49
48
  tableName: "user_invite_tokens";
50
49
  dataType: "string";
@@ -63,7 +62,7 @@ declare const userInviteTokens: import("drizzle-orm/sqlite-core").SQLiteTableWit
63
62
  }, {}, {
64
63
  length: number | undefined;
65
64
  }>;
66
- expiresAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
65
+ expiresAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
67
66
  name: "expires_at";
68
67
  tableName: "user_invite_tokens";
69
68
  dataType: "string";
@@ -82,7 +81,7 @@ declare const userInviteTokens: import("drizzle-orm/sqlite-core").SQLiteTableWit
82
81
  }, {}, {
83
82
  length: number | undefined;
84
83
  }>;
85
- usedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
84
+ usedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
86
85
  name: "used_at";
87
86
  tableName: "user_invite_tokens";
88
87
  dataType: "string";
@@ -101,7 +100,7 @@ declare const userInviteTokens: import("drizzle-orm/sqlite-core").SQLiteTableWit
101
100
  }, {}, {
102
101
  length: number | undefined;
103
102
  }>;
104
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
103
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
105
104
  name: "created_at";
106
105
  tableName: "user_invite_tokens";
107
106
  dataType: "string";
@@ -132,6 +131,5 @@ interface UserInviteToken {
132
131
  usedAt: string | null;
133
132
  createdAt: string;
134
133
  }
135
- //#endregion
136
134
  export { UserInviteToken, userInviteTokens };
137
135
  //# sourceMappingURL=user-invite.d.mts.map
@@ -3,7 +3,7 @@ import "node:url";
3
3
  import.meta.url;
4
4
  import { users } from "./user.mjs";
5
5
  import { sqliteTable, text } from "drizzle-orm/sqlite-core";
6
- //#region src/schema/user-invite.ts
6
+ // src/schema/user-invite.ts
7
7
  /** Invite token for local accounts (one-time, hashed at rest). */
8
8
  const userInviteTokens = sqliteTable("user_invite_tokens", {
9
9
  id: text("id").primaryKey(),
@@ -13,7 +13,6 @@ const userInviteTokens = sqliteTable("user_invite_tokens", {
13
13
  usedAt: text("used_at"),
14
14
  createdAt: text("created_at").notNull()
15
15
  });
16
- //#endregion
17
16
  export { userInviteTokens };
18
17
 
19
18
  //# sourceMappingURL=user-invite.mjs.map
@@ -1,7 +1,6 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
3
  import { SiteRole } from "@storyshelf/core/types";
4
- //#region src/schema/user.d.ts
5
4
  /** Narrow `users` table definition. */
6
5
  declare const users: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
7
6
  name: "users";
@@ -233,6 +232,5 @@ interface User {
233
232
  authProvider: "local" | "oidc" | "shared";
234
233
  disabled: boolean;
235
234
  }
236
- //#endregion
237
235
  export { User, users };
238
236
  //# sourceMappingURL=user.d.mts.map
@@ -2,7 +2,7 @@ import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
4
  import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
5
- //#region src/schema/user.ts
5
+ // src/schema/user.ts
6
6
  /** Narrow `users` table definition. */
7
7
  const users = sqliteTable("users", {
8
8
  id: text("id").primaryKey(),
@@ -17,7 +17,6 @@ const users = sqliteTable("users", {
17
17
  authProvider: text("auth_provider").$type().notNull().default("oidc"),
18
18
  disabled: integer("disabled", { mode: "boolean" }).notNull().default(false)
19
19
  });
20
- //#endregion
21
20
  export { users };
22
21
 
23
22
  //# sourceMappingURL=user.mjs.map
@@ -1,12 +1,11 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/schema/webhook.d.ts
4
3
  /** Narrow `webhooks` table definition. */
5
- declare const webhooks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
4
+ declare const webhooks: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
6
5
  name: "webhooks";
7
6
  schema: undefined;
8
7
  columns: {
9
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
8
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
10
9
  name: "id";
11
10
  tableName: "webhooks";
12
11
  dataType: "string";
@@ -25,7 +24,7 @@ declare const webhooks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
25
24
  }, {}, {
26
25
  length: number | undefined;
27
26
  }>;
28
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
27
+ projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
29
28
  name: "project_id";
30
29
  tableName: "webhooks";
31
30
  dataType: "string";
@@ -44,7 +43,7 @@ declare const webhooks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
44
43
  }, {}, {
45
44
  length: number | undefined;
46
45
  }>;
47
- url: import("drizzle-orm/sqlite-core").SQLiteColumn<{
46
+ url: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
48
47
  name: "url";
49
48
  tableName: "webhooks";
50
49
  dataType: "string";
@@ -63,7 +62,7 @@ declare const webhooks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
63
62
  }, {}, {
64
63
  length: number | undefined;
65
64
  }>;
66
- secretEncrypted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
65
+ secretEncrypted: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
67
66
  name: "secret_encrypted";
68
67
  tableName: "webhooks";
69
68
  dataType: "string";
@@ -82,7 +81,7 @@ declare const webhooks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
82
81
  }, {}, {
83
82
  length: number | undefined;
84
83
  }>;
85
- events: import("drizzle-orm/sqlite-core").SQLiteColumn<{
84
+ events: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
86
85
  name: "events";
87
86
  tableName: "webhooks";
88
87
  dataType: "string";
@@ -101,7 +100,7 @@ declare const webhooks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
101
100
  }, {}, {
102
101
  length: number | undefined;
103
102
  }>;
104
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
103
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
105
104
  name: "created_at";
106
105
  tableName: "webhooks";
107
106
  dataType: "string";
@@ -120,7 +119,7 @@ declare const webhooks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
120
119
  }, {}, {
121
120
  length: number | undefined;
122
121
  }>;
123
- updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
122
+ updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
124
123
  name: "updated_at";
125
124
  tableName: "webhooks";
126
125
  dataType: "string";
@@ -152,6 +151,5 @@ interface Webhook {
152
151
  createdAt: string;
153
152
  updatedAt: string;
154
153
  }
155
- //#endregion
156
154
  export { Webhook, webhooks };
157
155
  //# sourceMappingURL=webhook.d.mts.map
@@ -3,7 +3,7 @@ import "node:url";
3
3
  import.meta.url;
4
4
  import { projects } from "./project.mjs";
5
5
  import { sqliteTable, text } from "drizzle-orm/sqlite-core";
6
- //#region src/schema/webhook.ts
6
+ // src/schema/webhook.ts
7
7
  /** Narrow `webhooks` table definition. */
8
8
  const webhooks = sqliteTable("webhooks", {
9
9
  id: text("id").primaryKey(),
@@ -14,7 +14,6 @@ const webhooks = sqliteTable("webhooks", {
14
14
  createdAt: text("created_at").notNull(),
15
15
  updatedAt: text("updated_at").notNull()
16
16
  });
17
- //#endregion
18
17
  export { webhooks };
19
18
 
20
19
  //# sourceMappingURL=webhook.mjs.map
package/dist/schema.d.mts CHANGED
@@ -25,7 +25,6 @@ import { UserInviteToken, userInviteTokens } from "./schema/user-invite.mjs";
25
25
  import { Webhook, webhooks } from "./schema/webhook.mjs";
26
26
  import { ContentRef, contentRefs } from "./schema/content-refs.mjs";
27
27
  import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
28
- //#region src/schema/index.d.ts
29
28
  /** Full Drizzle schema object passed to the database client. */
30
29
  declare const schema: {
31
30
  projects: AnySQLiteTable;
@@ -63,6 +62,5 @@ declare const schema: {
63
62
  };
64
63
  /** The full database schema type. */
65
64
  type Schema = typeof schema;
66
- //#endregion
67
65
  export { type AiBudgetAlert, type AiUsage, type Build, type BuildLabel, type BuildPackageUsage, type CaptureAttempt, type CaptureLog, type Comment, type ContentRef, type DesignCredential, type DesignLink, type DesignNode, type Insight, type LabelType, type NotificationChannel, type NotificationSubscription, type Project, type ProjectGroupMapping, type ProjectLink, type ProjectMember, Schema, type Snapshot, type StorybookMeta, type Token, type User, type UserConnection, type UserInviteToken, type Webhook, aiBudgetAlerts, aiUsage, baselines, buildComponents, buildLabels, buildPackageUsage, buildReviews, builds, captureAttempts, captureJobs, captureLogs, captureShards, comments, contentRefs, designCredentials, designLinks, designNodes, insights, labelTypes, notificationChannels, notificationSubscriptions, projectGroupMappings, projectLinks, projectMembers, projects, schema, siteSettings, snapshots, tokens, userConnections, userInviteTokens, users, webhooks };
68
66
  //# sourceMappingURL=schema.d.mts.map
package/dist/schema.mjs CHANGED
@@ -25,7 +25,7 @@ import { tokens } from "./schema/token.mjs";
25
25
  import { buildPackageUsage, projectLinks } from "./schema/usage.mjs";
26
26
  import { userInviteTokens } from "./schema/user-invite.mjs";
27
27
  import { webhooks } from "./schema/webhook.mjs";
28
- //#region src/schema/index.ts
28
+ // src/schema/index.ts
29
29
  /** Full Drizzle schema object passed to the database client. */
30
30
  const schema = {
31
31
  projects,
@@ -61,7 +61,6 @@ const schema = {
61
61
  projectGroupMappings,
62
62
  contentRefs
63
63
  };
64
- //#endregion
65
64
  export { aiBudgetAlerts, aiUsage, baselines, buildComponents, buildLabels, buildPackageUsage, buildReviews, builds, captureAttempts, captureJobs, captureLogs, captureShards, comments, contentRefs, designCredentials, designLinks, designNodes, insights, labelTypes, notificationChannels, notificationSubscriptions, projectGroupMappings, projectLinks, projectMembers, projects, schema, siteSettings, snapshots, tokens, userConnections, userInviteTokens, users, webhooks };
66
65
 
67
66
  //# sourceMappingURL=schema.mjs.map
package/dist/turso.d.mts CHANGED
@@ -2,7 +2,6 @@ import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
3
  import { DatabaseAdapter } from "@storyshelf/core/adapter/database";
4
4
  import { Client } from "@libsql/client";
5
- //#region src/turso.d.ts
6
5
  type LibsqlClient = Client;
7
6
  /**
8
7
  * Options for creating a Turso-backed DatabaseAdapter.
@@ -27,6 +26,5 @@ interface TursoDatabaseOptions {
27
26
  * @returns A DatabaseAdapter backed by the Turso database.
28
27
  */
29
28
  declare function createTursoDatabase(options: TursoDatabaseOptions): DatabaseAdapter;
30
- //#endregion
31
29
  export { TursoDatabaseOptions, createTursoDatabase };
32
30
  //# sourceMappingURL=turso.d.mts.map
package/dist/turso.mjs CHANGED
@@ -6,7 +6,7 @@ import { createDrizzleAdapter } from "./drizzle-factory.mjs";
6
6
  import { schema } from "./schema.mjs";
7
7
  import { createRequire } from "node:module";
8
8
  import * as drizzleLibsqlCore from "drizzle-orm/libsql/driver-core";
9
- //#region src/turso.ts
9
+ // src/turso.ts
10
10
  /**
11
11
  * Turso/libSQL preset for the SQLite database adapter.
12
12
  *
@@ -29,7 +29,7 @@ function createTursoDatabase(options) {
29
29
  return createDrizzleAdapter(db, {
30
30
  metadata: {
31
31
  name: "Turso",
32
- version: "0.7.0",
32
+ version: "0.8.0",
33
33
  description: "Turso/libSQL database adapter",
34
34
  kind: "turso",
35
35
  category: "database"
@@ -141,7 +141,6 @@ async function recreateCommentsTable(client) {
141
141
  await client.execute("CREATE INDEX IF NOT EXISTS comments_build_id_idx ON comments (build_id)");
142
142
  await client.execute("PRAGMA foreign_keys = ON");
143
143
  }
144
- //#endregion
145
144
  export { createTursoDatabase };
146
145
 
147
146
  //# sourceMappingURL=turso.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyshelf/db-sqlite",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "SQLite database adapter for StoryShelf (node:sqlite + Drizzle).",
5
5
  "keywords": [
6
6
  "database",
@@ -87,8 +87,8 @@
87
87
  "prepublishOnly": "nub run build"
88
88
  },
89
89
  "dependencies": {
90
- "@storyshelf/core": "0.7.0",
91
- "drizzle-orm": "^0.44.0"
90
+ "@storyshelf/core": "0.8.0",
91
+ "drizzle-orm": "^0.45.4"
92
92
  },
93
93
  "devDependencies": {
94
94
  "@libsql/client": "^0.18.0",
@@ -100,7 +100,7 @@
100
100
  "oxlint-tsgolint": "^7.0.2001",
101
101
  "tsdown": "^0.22.14",
102
102
  "typescript": "^7.0.2",
103
- "vitest": "^5.0.0"
103
+ "vitest": "^5.0.5"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "@libsql/client": "^0.18.0",