drizzle-kit 0.30.6 → 0.31.0-08e3953
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.d.mts +92 -92
- package/api.d.ts +92 -92
- package/api.js +5252 -3838
- package/api.mjs +5252 -3838
- package/bin.cjs +3791 -4074
- package/package.json +8 -6
- package/utils.js +12 -24
- package/utils.mjs +13 -26
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.31.0-08e3953",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -45,9 +45,8 @@
|
|
45
45
|
"dependencies": {
|
46
46
|
"@drizzle-team/brocli": "^0.10.2",
|
47
47
|
"@esbuild-kit/esm-loader": "^2.5.5",
|
48
|
-
"esbuild": "^0.
|
49
|
-
"esbuild-register": "^3.5.0"
|
50
|
-
"gel": "^2.0.0"
|
48
|
+
"esbuild": "^0.25.2",
|
49
|
+
"esbuild-register": "^3.5.0"
|
51
50
|
},
|
52
51
|
"devDependencies": {
|
53
52
|
"@arethetypeswrong/cli": "^0.15.3",
|
@@ -60,12 +59,13 @@
|
|
60
59
|
"@neondatabase/serverless": "^0.9.1",
|
61
60
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
62
61
|
"@planetscale/database": "^1.16.0",
|
63
|
-
"@types/better-sqlite3": "^7.6.
|
62
|
+
"@types/better-sqlite3": "^7.6.13",
|
64
63
|
"@types/dockerode": "^3.3.28",
|
65
64
|
"@types/glob": "^8.1.0",
|
66
65
|
"@types/json-diff": "^1.0.3",
|
67
66
|
"@types/micromatch": "^4.0.9",
|
68
67
|
"@types/minimatch": "^5.1.2",
|
68
|
+
"@types/mssql": "^9.1.4",
|
69
69
|
"@types/node": "^18.11.15",
|
70
70
|
"@types/pg": "^8.10.7",
|
71
71
|
"@types/pluralize": "^0.0.33",
|
@@ -76,7 +76,7 @@
|
|
76
76
|
"@typescript-eslint/parser": "^7.2.0",
|
77
77
|
"@vercel/postgres": "^0.8.0",
|
78
78
|
"ava": "^5.1.0",
|
79
|
-
"better-sqlite3": "^9.
|
79
|
+
"better-sqlite3": "^11.9.1",
|
80
80
|
"bun-types": "^0.6.6",
|
81
81
|
"camelcase": "^7.0.1",
|
82
82
|
"chalk": "^5.2.0",
|
@@ -90,6 +90,7 @@
|
|
90
90
|
"eslint": "^8.57.0",
|
91
91
|
"eslint-config-prettier": "^9.1.0",
|
92
92
|
"eslint-plugin-prettier": "^5.1.3",
|
93
|
+
"gel": "^2.0.0",
|
93
94
|
"get-port": "^6.1.2",
|
94
95
|
"glob": "^8.1.0",
|
95
96
|
"hanji": "^0.0.5",
|
@@ -97,6 +98,7 @@
|
|
97
98
|
"json-diff": "1.0.6",
|
98
99
|
"micromatch": "^4.0.8",
|
99
100
|
"minimatch": "^7.4.3",
|
101
|
+
"mssql": "^10.0.1",
|
100
102
|
"mysql2": "3.3.3",
|
101
103
|
"node-fetch": "^3.3.2",
|
102
104
|
"ohm-js": "^17.1.0",
|
package/utils.js
CHANGED
@@ -65,20 +65,15 @@ var require_src = __commonJS({
|
|
65
65
|
var beep = "\x07";
|
66
66
|
var cursor = {
|
67
67
|
to(x, y) {
|
68
|
-
if (!y)
|
69
|
-
return `${CSI}${x + 1}G`;
|
68
|
+
if (!y) return `${CSI}${x + 1}G`;
|
70
69
|
return `${CSI}${y + 1};${x + 1}H`;
|
71
70
|
},
|
72
71
|
move(x, y) {
|
73
72
|
let ret = "";
|
74
|
-
if (x < 0)
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
if (y < 0)
|
79
|
-
ret += `${CSI}${-y}A`;
|
80
|
-
else if (y > 0)
|
81
|
-
ret += `${CSI}${y}B`;
|
73
|
+
if (x < 0) ret += `${CSI}${-x}D`;
|
74
|
+
else if (x > 0) ret += `${CSI}${x}C`;
|
75
|
+
if (y < 0) ret += `${CSI}${-y}A`;
|
76
|
+
else if (y > 0) ret += `${CSI}${y}B`;
|
82
77
|
return ret;
|
83
78
|
},
|
84
79
|
up: (count = 1) => `${CSI}${count}A`,
|
@@ -1542,19 +1537,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
1542
1537
|
var isValid = (x) => x.status === "valid";
|
1543
1538
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
1544
1539
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
1545
|
-
if (kind === "a" && !f)
|
1546
|
-
|
1547
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
1548
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
1540
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
1541
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
1549
1542
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
1550
1543
|
}
|
1551
1544
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
1552
|
-
if (kind === "m")
|
1553
|
-
|
1554
|
-
if (
|
1555
|
-
throw new TypeError("Private accessor was defined without a setter");
|
1556
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
1557
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
1545
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
1546
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
1547
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
1558
1548
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
1559
1549
|
}
|
1560
1550
|
var errorUtil;
|
@@ -3273,8 +3263,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
3273
3263
|
});
|
3274
3264
|
status.dirty();
|
3275
3265
|
}
|
3276
|
-
} else if (unknownKeys === "strip")
|
3277
|
-
;
|
3266
|
+
} else if (unknownKeys === "strip") ;
|
3278
3267
|
else {
|
3279
3268
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
3280
3269
|
}
|
@@ -6044,8 +6033,7 @@ var objectValues = (obj) => {
|
|
6044
6033
|
return Object.values(obj);
|
6045
6034
|
};
|
6046
6035
|
var assertV1OutFolder = (out) => {
|
6047
|
-
if (!(0, import_fs.existsSync)(out))
|
6048
|
-
return;
|
6036
|
+
if (!(0, import_fs.existsSync)(out)) return;
|
6049
6037
|
const oldMigrationFolders = (0, import_fs.readdirSync)(out).filter(
|
6050
6038
|
(it) => it.length === 14 && /^\d+$/.test(it)
|
6051
6039
|
);
|
package/utils.mjs
CHANGED
@@ -8,8 +8,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
9
9
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
10
10
|
}) : x)(function(x) {
|
11
|
-
if (typeof require !== "undefined")
|
12
|
-
return require.apply(this, arguments);
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
13
12
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
14
13
|
});
|
15
14
|
var __commonJS = (cb, mod) => function __require2() {
|
@@ -66,20 +65,15 @@ var require_src = __commonJS({
|
|
66
65
|
var beep = "\x07";
|
67
66
|
var cursor = {
|
68
67
|
to(x, y) {
|
69
|
-
if (!y)
|
70
|
-
return `${CSI}${x + 1}G`;
|
68
|
+
if (!y) return `${CSI}${x + 1}G`;
|
71
69
|
return `${CSI}${y + 1};${x + 1}H`;
|
72
70
|
},
|
73
71
|
move(x, y) {
|
74
72
|
let ret = "";
|
75
|
-
if (x < 0)
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
if (y < 0)
|
80
|
-
ret += `${CSI}${-y}A`;
|
81
|
-
else if (y > 0)
|
82
|
-
ret += `${CSI}${y}B`;
|
73
|
+
if (x < 0) ret += `${CSI}${-x}D`;
|
74
|
+
else if (x > 0) ret += `${CSI}${x}C`;
|
75
|
+
if (y < 0) ret += `${CSI}${-y}A`;
|
76
|
+
else if (y > 0) ret += `${CSI}${y}B`;
|
83
77
|
return ret;
|
84
78
|
},
|
85
79
|
up: (count = 1) => `${CSI}${count}A`,
|
@@ -1519,19 +1513,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
1519
1513
|
var isValid = (x) => x.status === "valid";
|
1520
1514
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
1521
1515
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
1522
|
-
if (kind === "a" && !f)
|
1523
|
-
|
1524
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
1525
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
1516
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
1517
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
1526
1518
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
1527
1519
|
}
|
1528
1520
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
1529
|
-
if (kind === "m")
|
1530
|
-
|
1531
|
-
if (
|
1532
|
-
throw new TypeError("Private accessor was defined without a setter");
|
1533
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
1534
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
1521
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
1522
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
1523
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
1535
1524
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
1536
1525
|
}
|
1537
1526
|
var errorUtil;
|
@@ -3250,8 +3239,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
3250
3239
|
});
|
3251
3240
|
status.dirty();
|
3252
3241
|
}
|
3253
|
-
} else if (unknownKeys === "strip")
|
3254
|
-
;
|
3242
|
+
} else if (unknownKeys === "strip") ;
|
3255
3243
|
else {
|
3256
3244
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
3257
3245
|
}
|
@@ -6021,8 +6009,7 @@ var objectValues = (obj) => {
|
|
6021
6009
|
return Object.values(obj);
|
6022
6010
|
};
|
6023
6011
|
var assertV1OutFolder = (out) => {
|
6024
|
-
if (!existsSync(out))
|
6025
|
-
return;
|
6012
|
+
if (!existsSync(out)) return;
|
6026
6013
|
const oldMigrationFolders = readdirSync(out).filter(
|
6027
6014
|
(it) => it.length === 14 && /^\d+$/.test(it)
|
6028
6015
|
);
|