drizzle-kit 0.24.0-f71baf7 → 0.24.1-781dea0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. package/api.d.mts +10 -0
  2. package/api.d.ts +10 -0
  3. package/api.js +842 -1353
  4. package/api.mjs +842 -1353
  5. package/bin.cjs +1732 -2167
  6. package/package.json +3 -3
  7. package/utils.js +2 -10
  8. 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-f71baf7",
3
+ "version": "0.24.1-781dea0",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",
@@ -42,7 +42,7 @@
42
42
  "publish": "npm publish package.tgz"
43
43
  },
44
44
  "dependencies": {
45
- "@drizzle-team/brocli": "^0.8.2",
45
+ "@drizzle-team/brocli": "^0.10.1",
46
46
  "@esbuild-kit/esm-loader": "^2.5.5",
47
47
  "esbuild": "^0.19.7",
48
48
  "esbuild-register": "^3.5.0"
@@ -92,7 +92,7 @@
92
92
  "hono": "^4.1.5",
93
93
  "json-diff": "1.0.6",
94
94
  "minimatch": "^7.4.3",
95
- "mysql2": "2.3.3",
95
+ "mysql2": "3.3.3",
96
96
  "node-fetch": "^3.3.2",
97
97
  "pg": "^8.11.5",
98
98
  "pluralize": "^8.0.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
  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,