drizzle-kit 0.31.4-3cbddb3 → 0.31.4-5f2d36c
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/api.js +26 -40
- package/api.mjs +26 -40
- package/bin.cjs +1 -1
- package/package.json +1 -1
package/api.js
CHANGED
@@ -22733,7 +22733,7 @@ var version;
|
|
22733
22733
|
var init_version = __esm({
|
22734
22734
|
"../drizzle-orm/dist/version.js"() {
|
22735
22735
|
"use strict";
|
22736
|
-
version = "0.44.
|
22736
|
+
version = "0.44.4";
|
22737
22737
|
}
|
22738
22738
|
});
|
22739
22739
|
|
@@ -23408,7 +23408,7 @@ var init_alias = __esm({
|
|
23408
23408
|
});
|
23409
23409
|
|
23410
23410
|
// ../drizzle-orm/dist/errors.js
|
23411
|
-
var _a31, _b13, DrizzleError, _a32, _b14, TransactionRollbackError;
|
23411
|
+
var _a31, _b13, DrizzleError, DrizzleQueryError, _a32, _b14, TransactionRollbackError;
|
23412
23412
|
var init_errors2 = __esm({
|
23413
23413
|
"../drizzle-orm/dist/errors.js"() {
|
23414
23414
|
"use strict";
|
@@ -23421,6 +23421,17 @@ var init_errors2 = __esm({
|
|
23421
23421
|
}
|
23422
23422
|
};
|
23423
23423
|
__publicField(DrizzleError, _a31, "DrizzleError");
|
23424
|
+
DrizzleQueryError = class _DrizzleQueryError extends Error {
|
23425
|
+
constructor(query, params, cause) {
|
23426
|
+
super(`Failed query: ${query}
|
23427
|
+
params: ${params}`);
|
23428
|
+
this.query = query;
|
23429
|
+
this.params = params;
|
23430
|
+
this.cause = cause;
|
23431
|
+
Error.captureStackTrace(this, _DrizzleQueryError);
|
23432
|
+
if (cause) this.cause = cause;
|
23433
|
+
}
|
23434
|
+
};
|
23424
23435
|
TransactionRollbackError = class extends (_b14 = DrizzleError, _a32 = entityKind, _b14) {
|
23425
23436
|
constructor() {
|
23426
23437
|
super({ message: "Rollback" });
|
@@ -23662,6 +23673,7 @@ function isConfig(data) {
|
|
23662
23673
|
if (Object.keys(data).length === 0) return true;
|
23663
23674
|
return false;
|
23664
23675
|
}
|
23676
|
+
var textDecoder;
|
23665
23677
|
var init_utils2 = __esm({
|
23666
23678
|
"../drizzle-orm/dist/utils.js"() {
|
23667
23679
|
"use strict";
|
@@ -23671,6 +23683,7 @@ var init_utils2 = __esm({
|
|
23671
23683
|
init_subquery();
|
23672
23684
|
init_table();
|
23673
23685
|
init_view_common();
|
23686
|
+
textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder();
|
23674
23687
|
}
|
23675
23688
|
});
|
23676
23689
|
|
@@ -26067,6 +26080,7 @@ __export(dist_exports, {
|
|
26067
26080
|
ConsoleLogWriter: () => ConsoleLogWriter,
|
26068
26081
|
DefaultLogger: () => DefaultLogger,
|
26069
26082
|
DrizzleError: () => DrizzleError,
|
26083
|
+
DrizzleQueryError: () => DrizzleQueryError,
|
26070
26084
|
ExtraConfigBuilder: () => ExtraConfigBuilder,
|
26071
26085
|
ExtraConfigColumns: () => ExtraConfigColumns,
|
26072
26086
|
FakePrimitiveParam: () => FakePrimitiveParam,
|
@@ -26174,7 +26188,8 @@ __export(dist_exports, {
|
|
26174
26188
|
relations: () => relations,
|
26175
26189
|
sql: () => sql,
|
26176
26190
|
sum: () => sum,
|
26177
|
-
sumDistinct: () => sumDistinct
|
26191
|
+
sumDistinct: () => sumDistinct,
|
26192
|
+
textDecoder: () => textDecoder
|
26178
26193
|
});
|
26179
26194
|
var init_dist = __esm({
|
26180
26195
|
"../drizzle-orm/dist/index.js"() {
|
@@ -30298,25 +30313,6 @@ var init_cache = __esm({
|
|
30298
30313
|
}
|
30299
30314
|
});
|
30300
30315
|
|
30301
|
-
// ../drizzle-orm/dist/errors/index.js
|
30302
|
-
var DrizzleQueryError;
|
30303
|
-
var init_errors3 = __esm({
|
30304
|
-
"../drizzle-orm/dist/errors/index.js"() {
|
30305
|
-
"use strict";
|
30306
|
-
DrizzleQueryError = class _DrizzleQueryError extends Error {
|
30307
|
-
constructor(query, params, cause) {
|
30308
|
-
super(`Failed query: ${query}
|
30309
|
-
params: ${params}`);
|
30310
|
-
this.query = query;
|
30311
|
-
this.params = params;
|
30312
|
-
this.cause = cause;
|
30313
|
-
Error.captureStackTrace(this, _DrizzleQueryError);
|
30314
|
-
if (cause) this.cause = cause;
|
30315
|
-
}
|
30316
|
-
};
|
30317
|
-
}
|
30318
|
-
});
|
30319
|
-
|
30320
30316
|
// ../drizzle-orm/dist/pg-core/session.js
|
30321
30317
|
var _a167, PgPreparedQuery, _a168, PgSession, _a169, _b120, PgTransaction;
|
30322
30318
|
var init_session = __esm({
|
@@ -30325,7 +30321,6 @@ var init_session = __esm({
|
|
30325
30321
|
init_cache();
|
30326
30322
|
init_entity();
|
30327
30323
|
init_errors2();
|
30328
|
-
init_errors3();
|
30329
30324
|
init_sql2();
|
30330
30325
|
init_tracing();
|
30331
30326
|
init_db();
|
@@ -32474,14 +32469,11 @@ var init_blob = __esm({
|
|
32474
32469
|
return "blob";
|
32475
32470
|
}
|
32476
32471
|
mapFromDriverValue(value) {
|
32477
|
-
if (Buffer.
|
32478
|
-
|
32472
|
+
if (typeof Buffer !== "undefined" && Buffer.from) {
|
32473
|
+
const buf = Buffer.isBuffer(value) ? value : value instanceof ArrayBuffer ? Buffer.from(value) : value.buffer ? Buffer.from(value.buffer, value.byteOffset, value.byteLength) : Buffer.from(value);
|
32474
|
+
return BigInt(buf.toString("utf8"));
|
32479
32475
|
}
|
32480
|
-
|
32481
|
-
const decoder = new TextDecoder();
|
32482
|
-
return BigInt(decoder.decode(value));
|
32483
|
-
}
|
32484
|
-
return BigInt(String.fromCodePoint(...value));
|
32476
|
+
return BigInt(textDecoder.decode(value));
|
32485
32477
|
}
|
32486
32478
|
mapToDriverValue(value) {
|
32487
32479
|
return Buffer.from(value.toString());
|
@@ -32506,14 +32498,11 @@ var init_blob = __esm({
|
|
32506
32498
|
return "blob";
|
32507
32499
|
}
|
32508
32500
|
mapFromDriverValue(value) {
|
32509
|
-
if (Buffer.
|
32510
|
-
|
32511
|
-
|
32512
|
-
if (value instanceof ArrayBuffer) {
|
32513
|
-
const decoder = new TextDecoder();
|
32514
|
-
return JSON.parse(decoder.decode(value));
|
32501
|
+
if (typeof Buffer !== "undefined" && Buffer.from) {
|
32502
|
+
const buf = Buffer.isBuffer(value) ? value : value instanceof ArrayBuffer ? Buffer.from(value) : value.buffer ? Buffer.from(value.buffer, value.byteOffset, value.byteLength) : Buffer.from(value);
|
32503
|
+
return JSON.parse(buf.toString("utf8"));
|
32515
32504
|
}
|
32516
|
-
return JSON.parse(
|
32505
|
+
return JSON.parse(textDecoder.decode(value));
|
32517
32506
|
}
|
32518
32507
|
mapToDriverValue(value) {
|
32519
32508
|
return Buffer.from(JSON.stringify(value));
|
@@ -35666,7 +35655,6 @@ var init_session2 = __esm({
|
|
35666
35655
|
init_cache();
|
35667
35656
|
init_entity();
|
35668
35657
|
init_errors2();
|
35669
|
-
init_errors3();
|
35670
35658
|
init_query_promise();
|
35671
35659
|
init_db2();
|
35672
35660
|
ExecuteResultSync = class extends (_b164 = QueryPromise, _a232 = entityKind, _b164) {
|
@@ -41306,7 +41294,6 @@ var init_session3 = __esm({
|
|
41306
41294
|
init_cache();
|
41307
41295
|
init_entity();
|
41308
41296
|
init_errors2();
|
41309
|
-
init_errors3();
|
41310
41297
|
init_sql();
|
41311
41298
|
init_db3();
|
41312
41299
|
_a341 = entityKind;
|
@@ -46528,7 +46515,6 @@ var init_session4 = __esm({
|
|
46528
46515
|
init_cache();
|
46529
46516
|
init_entity();
|
46530
46517
|
init_errors2();
|
46531
|
-
init_errors3();
|
46532
46518
|
init_sql();
|
46533
46519
|
init_db4();
|
46534
46520
|
_a434 = entityKind;
|
package/api.mjs
CHANGED
@@ -22738,7 +22738,7 @@ var version;
|
|
22738
22738
|
var init_version = __esm({
|
22739
22739
|
"../drizzle-orm/dist/version.js"() {
|
22740
22740
|
"use strict";
|
22741
|
-
version = "0.44.
|
22741
|
+
version = "0.44.4";
|
22742
22742
|
}
|
22743
22743
|
});
|
22744
22744
|
|
@@ -23413,7 +23413,7 @@ var init_alias = __esm({
|
|
23413
23413
|
});
|
23414
23414
|
|
23415
23415
|
// ../drizzle-orm/dist/errors.js
|
23416
|
-
var _a31, _b13, DrizzleError, _a32, _b14, TransactionRollbackError;
|
23416
|
+
var _a31, _b13, DrizzleError, DrizzleQueryError, _a32, _b14, TransactionRollbackError;
|
23417
23417
|
var init_errors2 = __esm({
|
23418
23418
|
"../drizzle-orm/dist/errors.js"() {
|
23419
23419
|
"use strict";
|
@@ -23426,6 +23426,17 @@ var init_errors2 = __esm({
|
|
23426
23426
|
}
|
23427
23427
|
};
|
23428
23428
|
__publicField(DrizzleError, _a31, "DrizzleError");
|
23429
|
+
DrizzleQueryError = class _DrizzleQueryError extends Error {
|
23430
|
+
constructor(query, params, cause) {
|
23431
|
+
super(`Failed query: ${query}
|
23432
|
+
params: ${params}`);
|
23433
|
+
this.query = query;
|
23434
|
+
this.params = params;
|
23435
|
+
this.cause = cause;
|
23436
|
+
Error.captureStackTrace(this, _DrizzleQueryError);
|
23437
|
+
if (cause) this.cause = cause;
|
23438
|
+
}
|
23439
|
+
};
|
23429
23440
|
TransactionRollbackError = class extends (_b14 = DrizzleError, _a32 = entityKind, _b14) {
|
23430
23441
|
constructor() {
|
23431
23442
|
super({ message: "Rollback" });
|
@@ -23667,6 +23678,7 @@ function isConfig(data) {
|
|
23667
23678
|
if (Object.keys(data).length === 0) return true;
|
23668
23679
|
return false;
|
23669
23680
|
}
|
23681
|
+
var textDecoder;
|
23670
23682
|
var init_utils2 = __esm({
|
23671
23683
|
"../drizzle-orm/dist/utils.js"() {
|
23672
23684
|
"use strict";
|
@@ -23676,6 +23688,7 @@ var init_utils2 = __esm({
|
|
23676
23688
|
init_subquery();
|
23677
23689
|
init_table();
|
23678
23690
|
init_view_common();
|
23691
|
+
textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder();
|
23679
23692
|
}
|
23680
23693
|
});
|
23681
23694
|
|
@@ -26072,6 +26085,7 @@ __export(dist_exports, {
|
|
26072
26085
|
ConsoleLogWriter: () => ConsoleLogWriter,
|
26073
26086
|
DefaultLogger: () => DefaultLogger,
|
26074
26087
|
DrizzleError: () => DrizzleError,
|
26088
|
+
DrizzleQueryError: () => DrizzleQueryError,
|
26075
26089
|
ExtraConfigBuilder: () => ExtraConfigBuilder,
|
26076
26090
|
ExtraConfigColumns: () => ExtraConfigColumns,
|
26077
26091
|
FakePrimitiveParam: () => FakePrimitiveParam,
|
@@ -26179,7 +26193,8 @@ __export(dist_exports, {
|
|
26179
26193
|
relations: () => relations,
|
26180
26194
|
sql: () => sql,
|
26181
26195
|
sum: () => sum,
|
26182
|
-
sumDistinct: () => sumDistinct
|
26196
|
+
sumDistinct: () => sumDistinct,
|
26197
|
+
textDecoder: () => textDecoder
|
26183
26198
|
});
|
26184
26199
|
var init_dist = __esm({
|
26185
26200
|
"../drizzle-orm/dist/index.js"() {
|
@@ -30303,25 +30318,6 @@ var init_cache = __esm({
|
|
30303
30318
|
}
|
30304
30319
|
});
|
30305
30320
|
|
30306
|
-
// ../drizzle-orm/dist/errors/index.js
|
30307
|
-
var DrizzleQueryError;
|
30308
|
-
var init_errors3 = __esm({
|
30309
|
-
"../drizzle-orm/dist/errors/index.js"() {
|
30310
|
-
"use strict";
|
30311
|
-
DrizzleQueryError = class _DrizzleQueryError extends Error {
|
30312
|
-
constructor(query, params, cause) {
|
30313
|
-
super(`Failed query: ${query}
|
30314
|
-
params: ${params}`);
|
30315
|
-
this.query = query;
|
30316
|
-
this.params = params;
|
30317
|
-
this.cause = cause;
|
30318
|
-
Error.captureStackTrace(this, _DrizzleQueryError);
|
30319
|
-
if (cause) this.cause = cause;
|
30320
|
-
}
|
30321
|
-
};
|
30322
|
-
}
|
30323
|
-
});
|
30324
|
-
|
30325
30321
|
// ../drizzle-orm/dist/pg-core/session.js
|
30326
30322
|
var _a167, PgPreparedQuery, _a168, PgSession, _a169, _b120, PgTransaction;
|
30327
30323
|
var init_session = __esm({
|
@@ -30330,7 +30326,6 @@ var init_session = __esm({
|
|
30330
30326
|
init_cache();
|
30331
30327
|
init_entity();
|
30332
30328
|
init_errors2();
|
30333
|
-
init_errors3();
|
30334
30329
|
init_sql2();
|
30335
30330
|
init_tracing();
|
30336
30331
|
init_db();
|
@@ -32479,14 +32474,11 @@ var init_blob = __esm({
|
|
32479
32474
|
return "blob";
|
32480
32475
|
}
|
32481
32476
|
mapFromDriverValue(value) {
|
32482
|
-
if (Buffer.
|
32483
|
-
|
32477
|
+
if (typeof Buffer !== "undefined" && Buffer.from) {
|
32478
|
+
const buf = Buffer.isBuffer(value) ? value : value instanceof ArrayBuffer ? Buffer.from(value) : value.buffer ? Buffer.from(value.buffer, value.byteOffset, value.byteLength) : Buffer.from(value);
|
32479
|
+
return BigInt(buf.toString("utf8"));
|
32484
32480
|
}
|
32485
|
-
|
32486
|
-
const decoder = new TextDecoder();
|
32487
|
-
return BigInt(decoder.decode(value));
|
32488
|
-
}
|
32489
|
-
return BigInt(String.fromCodePoint(...value));
|
32481
|
+
return BigInt(textDecoder.decode(value));
|
32490
32482
|
}
|
32491
32483
|
mapToDriverValue(value) {
|
32492
32484
|
return Buffer.from(value.toString());
|
@@ -32511,14 +32503,11 @@ var init_blob = __esm({
|
|
32511
32503
|
return "blob";
|
32512
32504
|
}
|
32513
32505
|
mapFromDriverValue(value) {
|
32514
|
-
if (Buffer.
|
32515
|
-
|
32516
|
-
|
32517
|
-
if (value instanceof ArrayBuffer) {
|
32518
|
-
const decoder = new TextDecoder();
|
32519
|
-
return JSON.parse(decoder.decode(value));
|
32506
|
+
if (typeof Buffer !== "undefined" && Buffer.from) {
|
32507
|
+
const buf = Buffer.isBuffer(value) ? value : value instanceof ArrayBuffer ? Buffer.from(value) : value.buffer ? Buffer.from(value.buffer, value.byteOffset, value.byteLength) : Buffer.from(value);
|
32508
|
+
return JSON.parse(buf.toString("utf8"));
|
32520
32509
|
}
|
32521
|
-
return JSON.parse(
|
32510
|
+
return JSON.parse(textDecoder.decode(value));
|
32522
32511
|
}
|
32523
32512
|
mapToDriverValue(value) {
|
32524
32513
|
return Buffer.from(JSON.stringify(value));
|
@@ -35671,7 +35660,6 @@ var init_session2 = __esm({
|
|
35671
35660
|
init_cache();
|
35672
35661
|
init_entity();
|
35673
35662
|
init_errors2();
|
35674
|
-
init_errors3();
|
35675
35663
|
init_query_promise();
|
35676
35664
|
init_db2();
|
35677
35665
|
ExecuteResultSync = class extends (_b164 = QueryPromise, _a232 = entityKind, _b164) {
|
@@ -41311,7 +41299,6 @@ var init_session3 = __esm({
|
|
41311
41299
|
init_cache();
|
41312
41300
|
init_entity();
|
41313
41301
|
init_errors2();
|
41314
|
-
init_errors3();
|
41315
41302
|
init_sql();
|
41316
41303
|
init_db3();
|
41317
41304
|
_a341 = entityKind;
|
@@ -46533,7 +46520,6 @@ var init_session4 = __esm({
|
|
46533
46520
|
init_cache();
|
46534
46521
|
init_entity();
|
46535
46522
|
init_errors2();
|
46536
|
-
init_errors3();
|
46537
46523
|
init_sql();
|
46538
46524
|
init_db4();
|
46539
46525
|
_a434 = entityKind;
|
package/bin.cjs
CHANGED
@@ -94273,7 +94273,7 @@ init_utils5();
|
|
94273
94273
|
var version2 = async () => {
|
94274
94274
|
const { npmVersion } = await ormCoreVersions();
|
94275
94275
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
94276
|
-
const envVersion = "0.31.4-
|
94276
|
+
const envVersion = "0.31.4-5f2d36c";
|
94277
94277
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
94278
94278
|
const versions = `drizzle-kit: ${kitVersion}
|
94279
94279
|
${ormVersion}`;
|