drizzle-kit 0.24.2-417b0fa → 0.24.2-766f76f
Sign up to get free protection for your applications and to get access to all the features.
- package/api.js +101027 -13056
- package/api.mjs +101026 -13056
- package/bin.cjs +19 -60
- package/package.json +2 -1
package/bin.cjs
CHANGED
@@ -67562,9 +67562,9 @@ var require_dist_cjs47 = __commonJS({
|
|
67562
67562
|
}
|
67563
67563
|
});
|
67564
67564
|
|
67565
|
-
// ../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.
|
67565
|
+
// ../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js
|
67566
67566
|
var require_dist_cjs48 = __commonJS({
|
67567
|
-
"../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.
|
67567
|
+
"../node_modules/.pnpm/@aws-sdk+token-providers@3.577.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2, module2) {
|
67568
67568
|
"use strict";
|
67569
67569
|
var __create3 = Object.create;
|
67570
67570
|
var __defProp3 = Object.defineProperty;
|
@@ -67742,9 +67742,9 @@ var require_dist_cjs48 = __commonJS({
|
|
67742
67742
|
}
|
67743
67743
|
});
|
67744
67744
|
|
67745
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.
|
67745
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
|
67746
67746
|
var require_dist_cjs49 = __commonJS({
|
67747
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.
|
67747
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.583.0_@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2, module2) {
|
67748
67748
|
"use strict";
|
67749
67749
|
var __defProp3 = Object.defineProperty;
|
67750
67750
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -70019,9 +70019,9 @@ var require_dist_cjs52 = __commonJS({
|
|
70019
70019
|
}
|
70020
70020
|
});
|
70021
70021
|
|
70022
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70022
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
|
70023
70023
|
var require_dist_cjs53 = __commonJS({
|
70024
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70024
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2, module2) {
|
70025
70025
|
"use strict";
|
70026
70026
|
var __create3 = Object.create;
|
70027
70027
|
var __defProp3 = Object.defineProperty;
|
@@ -70189,9 +70189,9 @@ var require_dist_cjs53 = __commonJS({
|
|
70189
70189
|
}
|
70190
70190
|
});
|
70191
70191
|
|
70192
|
-
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70192
|
+
// ../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
|
70193
70193
|
var require_dist_cjs54 = __commonJS({
|
70194
|
-
"../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-
|
70194
|
+
"../node_modules/.pnpm/@aws-sdk+credential-provider-node@3.583.0_@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2, module2) {
|
70195
70195
|
"use strict";
|
70196
70196
|
var __create3 = Object.create;
|
70197
70197
|
var __defProp3 = Object.defineProperty;
|
@@ -71837,7 +71837,7 @@ var init_connections = __esm({
|
|
71837
71837
|
}
|
71838
71838
|
if (driver2 === "pglite") {
|
71839
71839
|
assertPackages("@electric-sql/pglite");
|
71840
|
-
const { PGlite
|
71840
|
+
const { PGlite } = await import("@electric-sql/pglite");
|
71841
71841
|
const { drizzle } = await import("drizzle-orm/pglite");
|
71842
71842
|
const { migrate: migrate2 } = await import("drizzle-orm/pglite/migrator");
|
71843
71843
|
const pglite = new PGlite(normalisePGliteUrl(credentials2.url));
|
@@ -71846,30 +71846,19 @@ var init_connections = __esm({
|
|
71846
71846
|
const migrateFn = async (config) => {
|
71847
71847
|
return migrate2(drzl, config);
|
71848
71848
|
};
|
71849
|
-
const parsers = {
|
71850
|
-
[types3.TIMESTAMP]: (value) => value,
|
71851
|
-
[types3.TIMESTAMPTZ]: (value) => value,
|
71852
|
-
[types3.INTERVAL]: (value) => value,
|
71853
|
-
[types3.DATE]: (value) => value
|
71854
|
-
};
|
71855
71849
|
const query = async (sql, params = []) => {
|
71856
|
-
const result = await pglite.query(sql, params
|
71857
|
-
parsers
|
71858
|
-
});
|
71850
|
+
const result = await pglite.query(sql, params);
|
71859
71851
|
return result.rows;
|
71860
71852
|
};
|
71861
71853
|
const proxy = async (params) => {
|
71862
71854
|
const preparedParams = preparePGliteParams(params.params);
|
71863
71855
|
if (params.method === "values" || params.method === "get" || params.method === "all") {
|
71864
71856
|
const result2 = await pglite.query(params.sql, preparedParams, {
|
71865
|
-
rowMode: params.mode
|
71866
|
-
parsers
|
71857
|
+
rowMode: params.mode
|
71867
71858
|
});
|
71868
71859
|
return result2.rows;
|
71869
71860
|
}
|
71870
|
-
const result = await pglite.query(params.sql, preparedParams
|
71871
|
-
parsers
|
71872
|
-
});
|
71861
|
+
const result = await pglite.query(params.sql, preparedParams);
|
71873
71862
|
return result.rows;
|
71874
71863
|
};
|
71875
71864
|
return { query, proxy, migrate: migrateFn };
|
@@ -71878,15 +71867,11 @@ var init_connections = __esm({
|
|
71878
71867
|
}
|
71879
71868
|
if (await checkPackage("pg")) {
|
71880
71869
|
console.log(withStyle.info(`Using 'pg' driver for database querying`));
|
71881
|
-
const
|
71870
|
+
const pg = await import("pg");
|
71882
71871
|
const { drizzle } = await import("drizzle-orm/node-postgres");
|
71883
71872
|
const { migrate: migrate2 } = await import("drizzle-orm/node-postgres/migrator");
|
71884
71873
|
const ssl = "ssl" in credentials2 ? credentials2.ssl === "prefer" || credentials2.ssl === "require" || credentials2.ssl === "allow" ? { rejectUnauthorized: false } : credentials2.ssl === "verify-full" ? {} : credentials2.ssl : {};
|
71885
|
-
pg.
|
71886
|
-
pg.types.setTypeParser(pg.types.builtins.TIMESTAMP, (val2) => val2);
|
71887
|
-
pg.types.setTypeParser(pg.types.builtins.DATE, (val2) => val2);
|
71888
|
-
pg.types.setTypeParser(pg.types.builtins.INTERVAL, (val2) => val2);
|
71889
|
-
const client = "url" in credentials2 ? new pg.Pool({ connectionString: credentials2.url, max: 1 }) : new pg.Pool({ ...credentials2, ssl, max: 1 });
|
71874
|
+
const client = "url" in credentials2 ? new pg.default.Pool({ connectionString: credentials2.url, max: 1 }) : new pg.default.Pool({ ...credentials2, ssl, max: 1 });
|
71890
71875
|
const db = drizzle(client);
|
71891
71876
|
const migrateFn = async (config) => {
|
71892
71877
|
return migrate2(db, config);
|
@@ -71913,13 +71898,6 @@ var init_connections = __esm({
|
|
71913
71898
|
const { drizzle } = await import("drizzle-orm/postgres-js");
|
71914
71899
|
const { migrate: migrate2 } = await import("drizzle-orm/postgres-js/migrator");
|
71915
71900
|
const client = "url" in credentials2 ? postgres.default(credentials2.url, { max: 1 }) : postgres.default({ ...credentials2, max: 1 });
|
71916
|
-
const transparentParser = (val2) => val2;
|
71917
|
-
for (const type of ["1184", "1082", "1083", "1114"]) {
|
71918
|
-
client.options.parsers[type] = transparentParser;
|
71919
|
-
client.options.serializers[type] = transparentParser;
|
71920
|
-
}
|
71921
|
-
client.options.serializers["114"] = transparentParser;
|
71922
|
-
client.options.serializers["3802"] = transparentParser;
|
71923
71901
|
const db = drizzle(client);
|
71924
71902
|
const migrateFn = async (config) => {
|
71925
71903
|
return migrate2(db, config);
|
@@ -71945,14 +71923,10 @@ var init_connections = __esm({
|
|
71945
71923
|
"'@vercel/postgres' can only connect to remote Neon/Vercel Postgres/Supabase instances through a websocket"
|
71946
71924
|
)
|
71947
71925
|
);
|
71948
|
-
const { VercelPool
|
71926
|
+
const { VercelPool } = await import("@vercel/postgres");
|
71949
71927
|
const { drizzle } = await import("drizzle-orm/vercel-postgres");
|
71950
71928
|
const { migrate: migrate2 } = await import("drizzle-orm/vercel-postgres/migrator");
|
71951
71929
|
const ssl = "ssl" in credentials2 ? credentials2.ssl === "prefer" || credentials2.ssl === "require" || credentials2.ssl === "allow" ? { rejectUnauthorized: false } : credentials2.ssl === "verify-full" ? {} : credentials2.ssl : {};
|
71952
|
-
types3.setTypeParser(types3.builtins.TIMESTAMPTZ, (val2) => val2);
|
71953
|
-
types3.setTypeParser(types3.builtins.TIMESTAMP, (val2) => val2);
|
71954
|
-
types3.setTypeParser(types3.builtins.DATE, (val2) => val2);
|
71955
|
-
types3.setTypeParser(types3.builtins.INTERVAL, (val2) => val2);
|
71956
71930
|
const client = "url" in credentials2 ? new VercelPool({ connectionString: credentials2.url }) : new VercelPool({ ...credentials2, ssl });
|
71957
71931
|
await client.connect();
|
71958
71932
|
const db = drizzle(client);
|
@@ -71984,14 +71958,10 @@ var init_connections = __esm({
|
|
71984
71958
|
"'@neondatabase/serverless' can only connect to remote Neon/Vercel Postgres/Supabase instances through a websocket"
|
71985
71959
|
)
|
71986
71960
|
);
|
71987
|
-
const { Pool, neonConfig
|
71961
|
+
const { Pool, neonConfig } = await import("@neondatabase/serverless");
|
71988
71962
|
const { drizzle } = await import("drizzle-orm/neon-serverless");
|
71989
71963
|
const { migrate: migrate2 } = await import("drizzle-orm/neon-serverless/migrator");
|
71990
71964
|
const ssl = "ssl" in credentials2 ? credentials2.ssl === "prefer" || credentials2.ssl === "require" || credentials2.ssl === "allow" ? { rejectUnauthorized: false } : credentials2.ssl === "verify-full" ? {} : credentials2.ssl : {};
|
71991
|
-
types3.setTypeParser(types3.builtins.TIMESTAMPTZ, (val2) => val2);
|
71992
|
-
types3.setTypeParser(types3.builtins.TIMESTAMP, (val2) => val2);
|
71993
|
-
types3.setTypeParser(types3.builtins.DATE, (val2) => val2);
|
71994
|
-
types3.setTypeParser(types3.builtins.INTERVAL, (val2) => val2);
|
71995
71965
|
const client = "url" in credentials2 ? new Pool({ connectionString: credentials2.url, max: 1 }) : new Pool({ ...credentials2, max: 1, ssl });
|
71996
71966
|
neonConfig.webSocketConstructor = wrapper_default;
|
71997
71967
|
const db = drizzle(client);
|
@@ -72048,27 +72018,16 @@ var init_connections = __esm({
|
|
72048
72018
|
const migrateFn = async (config) => {
|
72049
72019
|
return migrate2(db, config);
|
72050
72020
|
};
|
72051
|
-
const typeCast = (field, next) => {
|
72052
|
-
if (field.type === "TIMESTAMP" || field.type === "DATETIME" || field.type === "DATE") {
|
72053
|
-
return field.string();
|
72054
|
-
}
|
72055
|
-
return next();
|
72056
|
-
};
|
72057
72021
|
await connection.connect();
|
72058
72022
|
const query = async (sql, params) => {
|
72059
|
-
const res = await connection.execute(
|
72060
|
-
sql,
|
72061
|
-
values: params,
|
72062
|
-
typeCast
|
72063
|
-
});
|
72023
|
+
const res = await connection.execute(sql, params);
|
72064
72024
|
return res[0];
|
72065
72025
|
};
|
72066
72026
|
const proxy = async (params) => {
|
72067
72027
|
const result2 = await connection.query({
|
72068
72028
|
sql: params.sql,
|
72069
72029
|
values: params.params,
|
72070
|
-
rowsAsArray: params.mode === "array"
|
72071
|
-
typeCast
|
72030
|
+
rowsAsArray: params.mode === "array"
|
72072
72031
|
});
|
72073
72032
|
return result2[0];
|
72074
72033
|
};
|
@@ -84069,7 +84028,7 @@ init_utils2();
|
|
84069
84028
|
var version2 = async () => {
|
84070
84029
|
const { npmVersion } = await ormCoreVersions();
|
84071
84030
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
84072
|
-
const envVersion = "0.24.2-
|
84031
|
+
const envVersion = "0.24.2-766f76f";
|
84073
84032
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
84074
84033
|
const versions = `drizzle-kit: ${kitVersion}
|
84075
84034
|
${ormVersion}`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.24.2-
|
3
|
+
"version": "0.24.2-766f76f",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -74,6 +74,7 @@
|
|
74
74
|
"@vercel/postgres": "^0.8.0",
|
75
75
|
"ava": "^5.1.0",
|
76
76
|
"better-sqlite3": "^9.4.3",
|
77
|
+
"bun-types": "^0.6.6",
|
77
78
|
"camelcase": "^7.0.1",
|
78
79
|
"chalk": "^5.2.0",
|
79
80
|
"commander": "^12.1.0",
|