drizzle-kit 0.12.6 → 0.12.7

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -2
package/index.js CHANGED
@@ -18642,8 +18642,8 @@ function diffForRenamedColumn(t1, t2) {
18642
18642
  return alternationsInColumn(diffed);
18643
18643
  }
18644
18644
  function applyJsonDiff(json1, json2) {
18645
- json1 = structuredClone(json1);
18646
- json2 = structuredClone(json2);
18645
+ json1 = JSON.parse(JSON.stringify(json1));
18646
+ json2 = JSON.parse(JSON.stringify(json2));
18647
18647
  const rawDiff = (0, import_json_diff.diff)(json1, json2);
18648
18648
  const difference = rawDiff;
18649
18649
  if (!difference)
@@ -19996,7 +19996,7 @@ var prepareAndMigrate = async (config) => {
19996
19996
  const schemaPath = config.schema;
19997
19997
  try {
19998
19998
  const { prev, cur } = migrationPreparator_default(outFolder, schemaPath);
19999
- const toSave = structuredClone(cur);
19999
+ const toSave = JSON.parse(JSON.stringify(cur));
20000
20000
  const validatedPrev = commonSchema.parse(prev);
20001
20001
  const validatedCur = commonSchema.parse(cur);
20002
20002
  if (validatedPrev.version !== "3" || validatedCur.version !== "3") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "repository": "https://github.com/lambda-direct/drizzle-kit",
5
5
  "author": "Alex Blokh <aleksandrblokh@gmail.com>",
6
6
  "license": "MIT",
@@ -8,7 +8,6 @@
8
8
  "drizzle-kit": "./index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@ungap/structured-clone": "^1.0.1",
12
11
  "chalk": "^5.0.1",
13
12
  "commander": "^9.4.0",
14
13
  "hanji": "^0.0.3",