drizzle-kit 0.23.2-5be2712 → 0.23.2-6f27447

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. package/api.js +894 -511
  2. package/api.mjs +894 -511
  3. package/bin.cjs +4044 -49606
  4. package/package.json +2 -3
  5. package/utils.js +5 -0
  6. package/utils.mjs +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.23.2-5be2712",
3
+ "version": "0.23.2-6f27447",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",
@@ -18,7 +18,6 @@
18
18
  "migrations",
19
19
  "schema"
20
20
  ],
21
- "sideEffects": false,
22
21
  "publishConfig": {
23
22
  "provenance": true
24
23
  },
@@ -81,7 +80,7 @@
81
80
  "dockerode": "^3.3.4",
82
81
  "dotenv": "^16.0.3",
83
82
  "drizzle-kit": "0.21.2",
84
- "drizzle-orm": "0.32.1",
83
+ "drizzle-orm": "workspace:./drizzle-orm/dist",
85
84
  "env-paths": "^3.0.0",
86
85
  "esbuild-node-externals": "^1.9.0",
87
86
  "eslint": "^8.57.0",
package/utils.js CHANGED
@@ -568,6 +568,7 @@ __export(utils_exports, {
568
568
  columnRenameKey: () => columnRenameKey,
569
569
  copy: () => copy,
570
570
  dryJournal: () => dryJournal,
571
+ isPgArrayType: () => isPgArrayType,
571
572
  kloudMeta: () => kloudMeta,
572
573
  normaliseSQLiteUrl: () => normaliseSQLiteUrl,
573
574
  objectValues: () => objectValues,
@@ -5738,12 +5739,16 @@ var normaliseSQLiteUrl = (it, type) => {
5738
5739
  }
5739
5740
  assertUnreachable(type);
5740
5741
  };
5742
+ function isPgArrayType(sqlType) {
5743
+ return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
5744
+ }
5741
5745
  // Annotate the CommonJS export names for ESM import in node:
5742
5746
  0 && (module.exports = {
5743
5747
  assertV1OutFolder,
5744
5748
  columnRenameKey,
5745
5749
  copy,
5746
5750
  dryJournal,
5751
+ isPgArrayType,
5747
5752
  kloudMeta,
5748
5753
  normaliseSQLiteUrl,
5749
5754
  objectValues,
package/utils.mjs CHANGED
@@ -5720,11 +5720,15 @@ var normaliseSQLiteUrl = (it, type) => {
5720
5720
  }
5721
5721
  assertUnreachable(type);
5722
5722
  };
5723
+ function isPgArrayType(sqlType) {
5724
+ return sqlType.match(/.*\[\d*\].*|.*\[\].*/g) !== null;
5725
+ }
5723
5726
  export {
5724
5727
  assertV1OutFolder,
5725
5728
  columnRenameKey,
5726
5729
  copy,
5727
5730
  dryJournal,
5731
+ isPgArrayType,
5728
5732
  kloudMeta,
5729
5733
  normaliseSQLiteUrl,
5730
5734
  objectValues,