drizzle-kit 0.24.0-38d6dab → 0.24.0-5df8253
Sign up to get free protection for your applications and to get access to all the features.
- package/api.d.mts +10 -0
- package/api.d.ts +10 -0
- package/api.js +501 -1280
- package/api.mjs +501 -1280
- package/bin.cjs +756 -1832
- package/package.json +2 -1
- package/utils.js +2 -10
- package/utils.mjs +2 -9
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.24.0-
|
3
|
+
"version": "0.24.0-5df8253",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -98,6 +98,7 @@
|
|
98
98
|
"pluralize": "^8.0.0",
|
99
99
|
"postgres": "^3.4.4",
|
100
100
|
"prettier": "^2.8.1",
|
101
|
+
"pure-rand": "^6.1.0",
|
101
102
|
"semver": "^7.5.4",
|
102
103
|
"superjson": "^2.2.1",
|
103
104
|
"tsup": "^8.0.2",
|
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
|
normaliseSQLiteUrl: () => normaliseSQLiteUrl,
|
@@ -5265,7 +5264,8 @@ var kitInternals2 = objectType({
|
|
5265
5264
|
objectType({
|
5266
5265
|
isArray: booleanType().optional(),
|
5267
5266
|
dimensions: numberType().optional(),
|
5268
|
-
rawType: stringType().optional()
|
5267
|
+
rawType: stringType().optional(),
|
5268
|
+
isDefaultAnExpression: booleanType().optional()
|
5269
5269
|
}).optional()
|
5270
5270
|
)
|
5271
5271
|
}).optional()
|
@@ -5743,20 +5743,12 @@ var normaliseSQLiteUrl = (it, type) => {
|
|
5743
5743
|
function isPgArrayType(sqlType) {
|
5744
5744
|
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5745
5745
|
}
|
5746
|
-
function findAddedAndRemoved(columnNames1, columnNames2) {
|
5747
|
-
const set1 = new Set(columnNames1);
|
5748
|
-
const set2 = new Set(columnNames2);
|
5749
|
-
const addedColumns = columnNames2.filter((it) => !set1.has(it));
|
5750
|
-
const removedColumns = columnNames1.filter((it) => !set2.has(it));
|
5751
|
-
return { addedColumns, removedColumns };
|
5752
|
-
}
|
5753
5746
|
// Annotate the CommonJS export names for ESM import in node:
|
5754
5747
|
0 && (module.exports = {
|
5755
5748
|
assertV1OutFolder,
|
5756
5749
|
columnRenameKey,
|
5757
5750
|
copy,
|
5758
5751
|
dryJournal,
|
5759
|
-
findAddedAndRemoved,
|
5760
5752
|
isPgArrayType,
|
5761
5753
|
kloudMeta,
|
5762
5754
|
normaliseSQLiteUrl,
|
package/utils.mjs
CHANGED
@@ -5245,7 +5245,8 @@ var kitInternals2 = objectType({
|
|
5245
5245
|
objectType({
|
5246
5246
|
isArray: booleanType().optional(),
|
5247
5247
|
dimensions: numberType().optional(),
|
5248
|
-
rawType: stringType().optional()
|
5248
|
+
rawType: stringType().optional(),
|
5249
|
+
isDefaultAnExpression: booleanType().optional()
|
5249
5250
|
}).optional()
|
5250
5251
|
)
|
5251
5252
|
}).optional()
|
@@ -5723,19 +5724,11 @@ var normaliseSQLiteUrl = (it, type) => {
|
|
5723
5724
|
function isPgArrayType(sqlType) {
|
5724
5725
|
return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
|
5725
5726
|
}
|
5726
|
-
function findAddedAndRemoved(columnNames1, columnNames2) {
|
5727
|
-
const set1 = new Set(columnNames1);
|
5728
|
-
const set2 = new Set(columnNames2);
|
5729
|
-
const addedColumns = columnNames2.filter((it) => !set1.has(it));
|
5730
|
-
const removedColumns = columnNames1.filter((it) => !set2.has(it));
|
5731
|
-
return { addedColumns, removedColumns };
|
5732
|
-
}
|
5733
5727
|
export {
|
5734
5728
|
assertV1OutFolder,
|
5735
5729
|
columnRenameKey,
|
5736
5730
|
copy,
|
5737
5731
|
dryJournal,
|
5738
|
-
findAddedAndRemoved,
|
5739
5732
|
isPgArrayType,
|
5740
5733
|
kloudMeta,
|
5741
5734
|
normaliseSQLiteUrl,
|