drizzle-kit 0.21.2-7202142 → 0.21.2-ae19ee7

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/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import { SslOptions } from 'mysql2';
2
2
  import * as zod from 'zod';
3
3
  import { TypeOf } from 'zod';
4
4
 
5
- declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
5
+ declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"d1-http">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
6
6
  type Driver = TypeOf<typeof driver>;
7
7
 
8
8
  declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
@@ -169,6 +169,14 @@ type Config = {
169
169
  wranglerConfigPath: string;
170
170
  dbName: string;
171
171
  };
172
+ } | {
173
+ dialect: Verify<Dialect, "sqlite">;
174
+ driver: Verify<Driver, "d1-http">;
175
+ dbCredentials: {
176
+ accountId: string;
177
+ databaseId: string;
178
+ token: string;
179
+ };
172
180
  } | {
173
181
  dialect: Verify<Dialect, "sqlite">;
174
182
  driver: Verify<Driver, "expo">;
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { SslOptions } from 'mysql2';
2
2
  import * as zod from 'zod';
3
3
  import { TypeOf } from 'zod';
4
4
 
5
- declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
5
+ declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"d1-http">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
6
6
  type Driver = TypeOf<typeof driver>;
7
7
 
8
8
  declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
@@ -169,6 +169,14 @@ type Config = {
169
169
  wranglerConfigPath: string;
170
170
  dbName: string;
171
171
  };
172
+ } | {
173
+ dialect: Verify<Dialect, "sqlite">;
174
+ driver: Verify<Driver, "d1-http">;
175
+ dbCredentials: {
176
+ accountId: string;
177
+ databaseId: string;
178
+ token: string;
179
+ };
172
180
  } | {
173
181
  dialect: Verify<Dialect, "sqlite">;
174
182
  driver: Verify<Driver, "expo">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.21.2-7202142",
3
+ "version": "0.21.2-ae19ee7",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -60,8 +60,8 @@
60
60
  "chalk": "^5.2.0",
61
61
  "dockerode": "^3.3.4",
62
62
  "dotenv": "^16.0.3",
63
- "drizzle-kit": "0.21.2",
64
- "drizzle-orm": "0.30.9-fc4ded5",
63
+ "drizzle-kit": "0.20.18",
64
+ "drizzle-orm": "0.30.9-f9be0ab",
65
65
  "esbuild-node-externals": "^1.9.0",
66
66
  "eslint": "^8.57.0",
67
67
  "eslint-config-prettier": "^9.1.0",
@@ -70,6 +70,7 @@
70
70
  "hono": "^4.1.5",
71
71
  "minimatch": "^7.4.3",
72
72
  "mysql2": "2.3.3",
73
+ "node-fetch": "^3.3.2",
73
74
  "pg": "^8.11.3",
74
75
  "pluralize": "^8.0.0",
75
76
  "postgres": "^3.4.4",
package/payload.d.mts CHANGED
@@ -43,58 +43,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
43
43
  }>>;
44
44
  indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
45
45
  name: zod.ZodString;
46
- columns: zod.ZodArray<zod.ZodObject<{
47
- expression: zod.ZodString;
48
- isExpression: zod.ZodBoolean;
49
- asc: zod.ZodBoolean;
50
- nulls: zod.ZodOptional<zod.ZodString>;
51
- opclass: zod.ZodOptional<zod.ZodString>;
52
- }, "strip", zod.ZodTypeAny, {
53
- expression: string;
54
- isExpression: boolean;
55
- asc: boolean;
56
- nulls?: string | undefined;
57
- opclass?: string | undefined;
58
- }, {
59
- expression: string;
60
- isExpression: boolean;
61
- asc: boolean;
62
- nulls?: string | undefined;
63
- opclass?: string | undefined;
64
- }>, "many">;
46
+ columns: zod.ZodArray<zod.ZodString, "many">;
65
47
  isUnique: zod.ZodBoolean;
66
- with: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
67
- method: zod.ZodDefault<zod.ZodString>;
68
- where: zod.ZodOptional<zod.ZodString>;
69
- concurrently: zod.ZodDefault<zod.ZodBoolean>;
70
48
  }, "strict", zod.ZodTypeAny, {
71
49
  name: string;
72
- columns: {
73
- expression: string;
74
- isExpression: boolean;
75
- asc: boolean;
76
- nulls?: string | undefined;
77
- opclass?: string | undefined;
78
- }[];
50
+ columns: string[];
79
51
  isUnique: boolean;
80
- method: string;
81
- concurrently: boolean;
82
- with?: Record<string, any> | undefined;
83
- where?: string | undefined;
84
52
  }, {
85
53
  name: string;
86
- columns: {
87
- expression: string;
88
- isExpression: boolean;
89
- asc: boolean;
90
- nulls?: string | undefined;
91
- opclass?: string | undefined;
92
- }[];
54
+ columns: string[];
93
55
  isUnique: boolean;
94
- with?: Record<string, any> | undefined;
95
- method?: string | undefined;
96
- where?: string | undefined;
97
- concurrently?: boolean | undefined;
98
56
  }>>;
99
57
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
100
58
  name: zod.ZodString;
@@ -162,18 +120,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
162
120
  }>;
163
121
  indexes: Record<string, {
164
122
  name: string;
165
- columns: {
166
- expression: string;
167
- isExpression: boolean;
168
- asc: boolean;
169
- nulls?: string | undefined;
170
- opclass?: string | undefined;
171
- }[];
123
+ columns: string[];
172
124
  isUnique: boolean;
173
- method: string;
174
- concurrently: boolean;
175
- with?: Record<string, any> | undefined;
176
- where?: string | undefined;
177
125
  }>;
178
126
  foreignKeys: Record<string, {
179
127
  name: string;
@@ -210,18 +158,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
210
158
  }>;
211
159
  indexes: Record<string, {
212
160
  name: string;
213
- columns: {
214
- expression: string;
215
- isExpression: boolean;
216
- asc: boolean;
217
- nulls?: string | undefined;
218
- opclass?: string | undefined;
219
- }[];
161
+ columns: string[];
220
162
  isUnique: boolean;
221
- with?: Record<string, any> | undefined;
222
- method?: string | undefined;
223
- where?: string | undefined;
224
- concurrently?: boolean | undefined;
225
163
  }>;
226
164
  foreignKeys: Record<string, {
227
165
  name: string;
@@ -335,18 +273,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
335
273
  }>;
336
274
  indexes: Record<string, {
337
275
  name: string;
338
- columns: {
339
- expression: string;
340
- isExpression: boolean;
341
- asc: boolean;
342
- nulls?: string | undefined;
343
- opclass?: string | undefined;
344
- }[];
276
+ columns: string[];
345
277
  isUnique: boolean;
346
- method: string;
347
- concurrently: boolean;
348
- with?: Record<string, any> | undefined;
349
- where?: string | undefined;
350
278
  }>;
351
279
  foreignKeys: Record<string, {
352
280
  name: string;
@@ -409,18 +337,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
409
337
  }>;
410
338
  indexes: Record<string, {
411
339
  name: string;
412
- columns: {
413
- expression: string;
414
- isExpression: boolean;
415
- asc: boolean;
416
- nulls?: string | undefined;
417
- opclass?: string | undefined;
418
- }[];
340
+ columns: string[];
419
341
  isUnique: boolean;
420
- with?: Record<string, any> | undefined;
421
- method?: string | undefined;
422
- where?: string | undefined;
423
- concurrently?: boolean | undefined;
424
342
  }>;
425
343
  foreignKeys: Record<string, {
426
344
  name: string;
@@ -1099,18 +1017,8 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
1099
1017
  }>;
1100
1018
  indexes: Record<string, {
1101
1019
  name: string;
1102
- columns: {
1103
- expression: string;
1104
- isExpression: boolean;
1105
- asc: boolean;
1106
- nulls?: string | undefined;
1107
- opclass?: string | undefined;
1108
- }[];
1020
+ columns: string[];
1109
1021
  isUnique: boolean;
1110
- method: string;
1111
- concurrently: boolean;
1112
- with?: Record<string, any> | undefined;
1113
- where?: string | undefined;
1114
1022
  }>;
1115
1023
  foreignKeys: Record<string, {
1116
1024
  name: string;
package/payload.d.ts CHANGED
@@ -43,58 +43,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
43
43
  }>>;
44
44
  indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
45
45
  name: zod.ZodString;
46
- columns: zod.ZodArray<zod.ZodObject<{
47
- expression: zod.ZodString;
48
- isExpression: zod.ZodBoolean;
49
- asc: zod.ZodBoolean;
50
- nulls: zod.ZodOptional<zod.ZodString>;
51
- opclass: zod.ZodOptional<zod.ZodString>;
52
- }, "strip", zod.ZodTypeAny, {
53
- expression: string;
54
- isExpression: boolean;
55
- asc: boolean;
56
- nulls?: string | undefined;
57
- opclass?: string | undefined;
58
- }, {
59
- expression: string;
60
- isExpression: boolean;
61
- asc: boolean;
62
- nulls?: string | undefined;
63
- opclass?: string | undefined;
64
- }>, "many">;
46
+ columns: zod.ZodArray<zod.ZodString, "many">;
65
47
  isUnique: zod.ZodBoolean;
66
- with: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
67
- method: zod.ZodDefault<zod.ZodString>;
68
- where: zod.ZodOptional<zod.ZodString>;
69
- concurrently: zod.ZodDefault<zod.ZodBoolean>;
70
48
  }, "strict", zod.ZodTypeAny, {
71
49
  name: string;
72
- columns: {
73
- expression: string;
74
- isExpression: boolean;
75
- asc: boolean;
76
- nulls?: string | undefined;
77
- opclass?: string | undefined;
78
- }[];
50
+ columns: string[];
79
51
  isUnique: boolean;
80
- method: string;
81
- concurrently: boolean;
82
- with?: Record<string, any> | undefined;
83
- where?: string | undefined;
84
52
  }, {
85
53
  name: string;
86
- columns: {
87
- expression: string;
88
- isExpression: boolean;
89
- asc: boolean;
90
- nulls?: string | undefined;
91
- opclass?: string | undefined;
92
- }[];
54
+ columns: string[];
93
55
  isUnique: boolean;
94
- with?: Record<string, any> | undefined;
95
- method?: string | undefined;
96
- where?: string | undefined;
97
- concurrently?: boolean | undefined;
98
56
  }>>;
99
57
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
100
58
  name: zod.ZodString;
@@ -162,18 +120,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
162
120
  }>;
163
121
  indexes: Record<string, {
164
122
  name: string;
165
- columns: {
166
- expression: string;
167
- isExpression: boolean;
168
- asc: boolean;
169
- nulls?: string | undefined;
170
- opclass?: string | undefined;
171
- }[];
123
+ columns: string[];
172
124
  isUnique: boolean;
173
- method: string;
174
- concurrently: boolean;
175
- with?: Record<string, any> | undefined;
176
- where?: string | undefined;
177
125
  }>;
178
126
  foreignKeys: Record<string, {
179
127
  name: string;
@@ -210,18 +158,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
210
158
  }>;
211
159
  indexes: Record<string, {
212
160
  name: string;
213
- columns: {
214
- expression: string;
215
- isExpression: boolean;
216
- asc: boolean;
217
- nulls?: string | undefined;
218
- opclass?: string | undefined;
219
- }[];
161
+ columns: string[];
220
162
  isUnique: boolean;
221
- with?: Record<string, any> | undefined;
222
- method?: string | undefined;
223
- where?: string | undefined;
224
- concurrently?: boolean | undefined;
225
163
  }>;
226
164
  foreignKeys: Record<string, {
227
165
  name: string;
@@ -335,18 +273,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
335
273
  }>;
336
274
  indexes: Record<string, {
337
275
  name: string;
338
- columns: {
339
- expression: string;
340
- isExpression: boolean;
341
- asc: boolean;
342
- nulls?: string | undefined;
343
- opclass?: string | undefined;
344
- }[];
276
+ columns: string[];
345
277
  isUnique: boolean;
346
- method: string;
347
- concurrently: boolean;
348
- with?: Record<string, any> | undefined;
349
- where?: string | undefined;
350
278
  }>;
351
279
  foreignKeys: Record<string, {
352
280
  name: string;
@@ -409,18 +337,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
409
337
  }>;
410
338
  indexes: Record<string, {
411
339
  name: string;
412
- columns: {
413
- expression: string;
414
- isExpression: boolean;
415
- asc: boolean;
416
- nulls?: string | undefined;
417
- opclass?: string | undefined;
418
- }[];
340
+ columns: string[];
419
341
  isUnique: boolean;
420
- with?: Record<string, any> | undefined;
421
- method?: string | undefined;
422
- where?: string | undefined;
423
- concurrently?: boolean | undefined;
424
342
  }>;
425
343
  foreignKeys: Record<string, {
426
344
  name: string;
@@ -1099,18 +1017,8 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
1099
1017
  }>;
1100
1018
  indexes: Record<string, {
1101
1019
  name: string;
1102
- columns: {
1103
- expression: string;
1104
- isExpression: boolean;
1105
- asc: boolean;
1106
- nulls?: string | undefined;
1107
- opclass?: string | undefined;
1108
- }[];
1020
+ columns: string[];
1109
1021
  isUnique: boolean;
1110
- method: string;
1111
- concurrently: boolean;
1112
- with?: Record<string, any> | undefined;
1113
- where?: string | undefined;
1114
1022
  }>;
1115
1023
  foreignKeys: Record<string, {
1116
1024
  name: string;