drizzle-kit 0.24.2-5be80aa → 0.24.2-6fbcf46
Sign up to get free protection for your applications and to get access to all the features.
- package/api.js +651 -1229
- package/api.mjs +651 -1229
- package/bin.cjs +47555 -50804
- package/index.d.mts +4 -3
- package/index.d.ts +4 -3
- package/package.json +2 -2
- package/utils.js +0 -11
- package/utils.mjs +0 -10
package/index.d.mts
CHANGED
@@ -2,10 +2,10 @@ import { ConnectionOptions } from 'tls';
|
|
2
2
|
|
3
3
|
declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "none"];
|
4
4
|
type Prefix = (typeof prefixes)[number];
|
5
|
-
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite"];
|
5
|
+
declare const drivers: readonly ["turso", "d1-http", "expo", "aws-data-api", "pglite"];
|
6
6
|
type Driver = (typeof drivers)[number];
|
7
7
|
|
8
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite"
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite"];
|
9
9
|
type Dialect = (typeof dialects)[number];
|
10
10
|
|
11
11
|
type SslOptions = {
|
@@ -128,7 +128,8 @@ type Config = {
|
|
128
128
|
casing: 'camel' | 'preserve';
|
129
129
|
};
|
130
130
|
} & ({
|
131
|
-
dialect: Verify<Dialect, '
|
131
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
132
|
+
driver: Verify<Driver, 'turso'>;
|
132
133
|
dbCredentials: {
|
133
134
|
url: string;
|
134
135
|
authToken?: string;
|
package/index.d.ts
CHANGED
@@ -2,10 +2,10 @@ import { ConnectionOptions } from 'tls';
|
|
2
2
|
|
3
3
|
declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "none"];
|
4
4
|
type Prefix = (typeof prefixes)[number];
|
5
|
-
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite"];
|
5
|
+
declare const drivers: readonly ["turso", "d1-http", "expo", "aws-data-api", "pglite"];
|
6
6
|
type Driver = (typeof drivers)[number];
|
7
7
|
|
8
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite"
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite"];
|
9
9
|
type Dialect = (typeof dialects)[number];
|
10
10
|
|
11
11
|
type SslOptions = {
|
@@ -128,7 +128,8 @@ type Config = {
|
|
128
128
|
casing: 'camel' | 'preserve';
|
129
129
|
};
|
130
130
|
} & ({
|
131
|
-
dialect: Verify<Dialect, '
|
131
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
132
|
+
driver: Verify<Driver, 'turso'>;
|
132
133
|
dbCredentials: {
|
133
134
|
url: string;
|
134
135
|
authToken?: string;
|
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-6fbcf46",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -54,7 +54,7 @@
|
|
54
54
|
"@electric-sql/pglite": "^0.1.5",
|
55
55
|
"@hono/node-server": "^1.9.0",
|
56
56
|
"@hono/zod-validator": "^0.2.1",
|
57
|
-
"@libsql/client": "^0.
|
57
|
+
"@libsql/client": "^0.4.2",
|
58
58
|
"@neondatabase/serverless": "^0.9.1",
|
59
59
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
60
60
|
"@planetscale/database": "^1.16.0",
|
package/utils.js
CHANGED
@@ -568,7 +568,6 @@ __export(utils_exports, {
|
|
568
568
|
columnRenameKey: () => columnRenameKey,
|
569
569
|
copy: () => copy,
|
570
570
|
dryJournal: () => dryJournal,
|
571
|
-
findAddedAndRemoved: () => findAddedAndRemoved,
|
572
571
|
isPgArrayType: () => isPgArrayType,
|
573
572
|
kloudMeta: () => kloudMeta,
|
574
573
|
normalisePGliteUrl: () => normalisePGliteUrl,
|
@@ -5597,8 +5596,6 @@ var validatorForDialect = (dialect3) => {
|
|
5597
5596
|
return { validator: backwardCompatiblePgSchema, version: 7 };
|
5598
5597
|
case "sqlite":
|
5599
5598
|
return { validator: backwardCompatibleSqliteSchema, version: 6 };
|
5600
|
-
case "turso":
|
5601
|
-
return { validator: backwardCompatibleSqliteSchema, version: 6 };
|
5602
5599
|
case "mysql":
|
5603
5600
|
return { validator: backwardCompatibleMysqlSchema, version: 5 };
|
5604
5601
|
}
|
@@ -5753,20 +5750,12 @@ var normalisePGliteUrl = (it) => {
|
|
5753
5750
|
function isPgArrayType(sqlType) {
|
5754
5751
|
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5755
5752
|
}
|
5756
|
-
function findAddedAndRemoved(columnNames1, columnNames2) {
|
5757
|
-
const set1 = new Set(columnNames1);
|
5758
|
-
const set2 = new Set(columnNames2);
|
5759
|
-
const addedColumns = columnNames2.filter((it) => !set1.has(it));
|
5760
|
-
const removedColumns = columnNames1.filter((it) => !set2.has(it));
|
5761
|
-
return { addedColumns, removedColumns };
|
5762
|
-
}
|
5763
5753
|
// Annotate the CommonJS export names for ESM import in node:
|
5764
5754
|
0 && (module.exports = {
|
5765
5755
|
assertV1OutFolder,
|
5766
5756
|
columnRenameKey,
|
5767
5757
|
copy,
|
5768
5758
|
dryJournal,
|
5769
|
-
findAddedAndRemoved,
|
5770
5759
|
isPgArrayType,
|
5771
5760
|
kloudMeta,
|
5772
5761
|
normalisePGliteUrl,
|
package/utils.mjs
CHANGED
@@ -5576,8 +5576,6 @@ var validatorForDialect = (dialect3) => {
|
|
5576
5576
|
return { validator: backwardCompatiblePgSchema, version: 7 };
|
5577
5577
|
case "sqlite":
|
5578
5578
|
return { validator: backwardCompatibleSqliteSchema, version: 6 };
|
5579
|
-
case "turso":
|
5580
|
-
return { validator: backwardCompatibleSqliteSchema, version: 6 };
|
5581
5579
|
case "mysql":
|
5582
5580
|
return { validator: backwardCompatibleMysqlSchema, version: 5 };
|
5583
5581
|
}
|
@@ -5732,19 +5730,11 @@ var normalisePGliteUrl = (it) => {
|
|
5732
5730
|
function isPgArrayType(sqlType) {
|
5733
5731
|
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5734
5732
|
}
|
5735
|
-
function findAddedAndRemoved(columnNames1, columnNames2) {
|
5736
|
-
const set1 = new Set(columnNames1);
|
5737
|
-
const set2 = new Set(columnNames2);
|
5738
|
-
const addedColumns = columnNames2.filter((it) => !set1.has(it));
|
5739
|
-
const removedColumns = columnNames1.filter((it) => !set2.has(it));
|
5740
|
-
return { addedColumns, removedColumns };
|
5741
|
-
}
|
5742
5733
|
export {
|
5743
5734
|
assertV1OutFolder,
|
5744
5735
|
columnRenameKey,
|
5745
5736
|
copy,
|
5746
5737
|
dryJournal,
|
5747
|
-
findAddedAndRemoved,
|
5748
5738
|
isPgArrayType,
|
5749
5739
|
kloudMeta,
|
5750
5740
|
normalisePGliteUrl,
|