@storyshelf/db-mysql 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 (70) hide show
  1. package/dist/ddl.d.mts +1 -3
  2. package/dist/ddl.mjs +10 -3
  3. package/dist/ddl.mjs.map +1 -1
  4. package/dist/drizzle-factory-mysql.mjs +8 -7
  5. package/dist/drizzle-factory-mysql.mjs.map +1 -1
  6. package/dist/drizzle-factory.mjs +1 -2
  7. package/dist/foreign-keys.mjs +1 -2
  8. package/dist/index.d.mts +0 -2
  9. package/dist/index.mjs +2 -3
  10. package/dist/migrate.mjs +51 -3
  11. package/dist/migrate.mjs.map +1 -1
  12. package/dist/planetscale.d.mts +0 -2
  13. package/dist/planetscale.mjs +1 -2
  14. package/dist/schema/baseline.d.mts +32 -16
  15. package/dist/schema/baseline.mjs +2 -2
  16. package/dist/schema/baseline.mjs.map +1 -1
  17. package/dist/schema/build-component.d.mts +9 -11
  18. package/dist/schema/build-component.mjs +1 -2
  19. package/dist/schema/build-review.d.mts +7 -9
  20. package/dist/schema/build-review.mjs +1 -2
  21. package/dist/schema/build.d.mts +23 -25
  22. package/dist/schema/build.mjs +1 -2
  23. package/dist/schema/capture-attempt.d.mts +25 -27
  24. package/dist/schema/capture-attempt.mjs +1 -2
  25. package/dist/schema/capture-job.d.mts +19 -21
  26. package/dist/schema/capture-job.mjs +1 -2
  27. package/dist/schema/capture-shard.d.mts +15 -17
  28. package/dist/schema/capture-shard.mjs +1 -2
  29. package/dist/schema/comment.d.mts +12 -14
  30. package/dist/schema/comment.mjs +1 -2
  31. package/dist/schema/connection.d.mts +10 -12
  32. package/dist/schema/connection.mjs +1 -2
  33. package/dist/schema/content-refs.d.mts +5 -7
  34. package/dist/schema/content-refs.mjs +1 -2
  35. package/dist/schema/datetime.mjs +1 -2
  36. package/dist/schema/design.d.mts +33 -35
  37. package/dist/schema/design.mjs +1 -2
  38. package/dist/schema/insight.d.mts +36 -38
  39. package/dist/schema/insight.mjs +1 -2
  40. package/dist/schema/label.d.mts +15 -17
  41. package/dist/schema/label.mjs +1 -2
  42. package/dist/schema/member.d.mts +7 -9
  43. package/dist/schema/member.mjs +1 -2
  44. package/dist/schema/notification.d.mts +20 -22
  45. package/dist/schema/notification.mjs +1 -2
  46. package/dist/schema/project-group-mapping.d.mts +6 -8
  47. package/dist/schema/project-group-mapping.mjs +1 -2
  48. package/dist/schema/project.d.mts +25 -27
  49. package/dist/schema/project.mjs +1 -2
  50. package/dist/schema/site-setting.d.mts +6 -8
  51. package/dist/schema/site-setting.mjs +1 -2
  52. package/dist/schema/snapshot.d.mts +85 -33
  53. package/dist/schema/snapshot.mjs +4 -2
  54. package/dist/schema/snapshot.mjs.map +1 -1
  55. package/dist/schema/token.d.mts +8 -10
  56. package/dist/schema/token.mjs +1 -2
  57. package/dist/schema/usage.d.mts +15 -17
  58. package/dist/schema/usage.mjs +1 -2
  59. package/dist/schema/user-invite.d.mts +7 -9
  60. package/dist/schema/user-invite.mjs +1 -2
  61. package/dist/schema/user.d.mts +82 -10
  62. package/dist/schema/user.mjs +7 -4
  63. package/dist/schema/user.mjs.map +1 -1
  64. package/dist/schema/webhook.d.mts +8 -10
  65. package/dist/schema/webhook.mjs +1 -2
  66. package/dist/schema.d.mts +0 -2
  67. package/dist/schema.mjs +1 -2
  68. package/dist/tidb.d.mts +0 -2
  69. package/dist/tidb.mjs +1 -2
  70. package/package.json +4 -4
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/tidb.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 { MysqlDatabaseOptions } from "./index.mjs";
4
4
  import { DatabaseAdapter } from "@storyshelf/core/adapter/database";
5
- //#region src/tidb.d.ts
6
5
  /**
7
6
  * TiDB Serverless (MySQL wire, serverless) preset.
8
7
  * Alias over the mysql2 pool — TiDB's serverless driver
@@ -11,6 +10,5 @@ import { DatabaseAdapter } from "@storyshelf/core/adapter/database";
11
10
  */
12
11
  type TidbDatabaseOptions = MysqlDatabaseOptions;
13
12
  declare function createTidbDatabase(options: TidbDatabaseOptions): DatabaseAdapter;
14
- //#endregion
15
13
  export { TidbDatabaseOptions, createTidbDatabase };
16
14
  //# sourceMappingURL=tidb.d.mts.map
package/dist/tidb.mjs CHANGED
@@ -2,11 +2,10 @@ import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
4
  import { createMysqlDatabase } from "./index.mjs";
5
- //#region src/tidb.ts
5
+ // src/tidb.ts
6
6
  function createTidbDatabase(options) {
7
7
  return createMysqlDatabase(options);
8
8
  }
9
- //#endregion
10
9
  export { createTidbDatabase };
11
10
 
12
11
  //# sourceMappingURL=tidb.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyshelf/db-mysql",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "MySQL/MariaDB database adapter for StoryShelf (mysql2 + Drizzle, PlanetScale/TiDB compatible).",
5
5
  "keywords": [
6
6
  "database",
@@ -72,8 +72,8 @@
72
72
  "prepublishOnly": "nub run build"
73
73
  },
74
74
  "dependencies": {
75
- "@storyshelf/core": "0.7.0",
76
- "drizzle-orm": "^0.44.0",
75
+ "@storyshelf/core": "0.8.0",
76
+ "drizzle-orm": "^0.45.4",
77
77
  "mysql2": "^3.9.0"
78
78
  },
79
79
  "devDependencies": {
@@ -87,7 +87,7 @@
87
87
  "oxlint-tsgolint": "^7.0.2001",
88
88
  "tsdown": "^0.22.14",
89
89
  "typescript": "^7.0.2",
90
- "vitest": "^5.0.0"
90
+ "vitest": "^5.0.5"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "@planetscale/database": "^1.19.0",