@prisma/internals 6.6.0-dev.28 → 6.6.0-dev.29

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 (45) hide show
  1. package/dist/{chunk-IOF3PJAC.js → chunk-6MKM2Y64.js} +5 -5
  2. package/dist/{chunk-3EPHRVO3.js → chunk-6NGSWOJ2.js} +7 -7
  3. package/dist/{chunk-MXMNTCC5.js → chunk-6ZNAFJ6H.js} +8 -8
  4. package/dist/{chunk-EZQCZVUB.js → chunk-7MS6PDSK.js} +5 -5
  5. package/dist/{chunk-OCYZOJRG.js → chunk-BKFFD3K3.js} +5 -5
  6. package/dist/{chunk-FBHWUFLM.js → chunk-CQPAFPZS.js} +20 -20
  7. package/dist/{chunk-JTWCAWGS.js → chunk-HU4MELC4.js} +5 -5
  8. package/dist/{chunk-RZCTV2U3.js → chunk-KIKNJN6E.js} +5 -5
  9. package/dist/{chunk-PVHEBSDI.js → chunk-LOUKMUSU.js} +8 -8
  10. package/dist/{chunk-4QFYMU5Q.js → chunk-PTGGTC2X.js} +5 -5
  11. package/dist/{chunk-JPTRXV36.js → chunk-QGCWSCAS.js} +8 -8
  12. package/dist/{chunk-JRVJL4KD.js → chunk-QODB7AUQ.js} +5 -5
  13. package/dist/{chunk-NWX4DSMZ.js → chunk-RRUPCUEK.js} +8 -8
  14. package/dist/{chunk-6GYVGU5I.js → chunk-TXO7SYD5.js} +4 -4
  15. package/dist/{chunk-VJVTJYO6.js → chunk-TYHSGPVG.js} +5 -5
  16. package/dist/{chunk-IU6TJYZC.js → chunk-V3C2TMWM.js} +20 -20
  17. package/dist/{chunk-LMHOWT5I.js → chunk-YIFSM2JM.js} +8 -8
  18. package/dist/{chunk-4DBHGLDX.js → chunk-YPUOGZEE.js} +8 -8
  19. package/dist/{chunk-7W7UYM7C.js → chunk-Z4NZOOL2.js} +7 -7
  20. package/dist/{chunk-VZJZYI6E.js → chunk-ZBZ7CJXT.js} +5 -5
  21. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  22. package/dist/cli/getSchema.js +16 -16
  23. package/dist/cli/hashes.js +12 -12
  24. package/dist/cli/schemaContext.js +11 -11
  25. package/dist/engine-commands/errorHelpers.js +4 -4
  26. package/dist/engine-commands/formatSchema.js +11 -11
  27. package/dist/engine-commands/getConfig.js +10 -10
  28. package/dist/engine-commands/getDmmf.js +7 -7
  29. package/dist/engine-commands/index.js +20 -20
  30. package/dist/engine-commands/lintSchema.js +8 -8
  31. package/dist/engine-commands/mergeSchemas.js +7 -7
  32. package/dist/engine-commands/validate.js +7 -7
  33. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  34. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  35. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
  36. package/dist/get-generators/getGenerators.js +14 -14
  37. package/dist/index.js +40 -40
  38. package/dist/migrateTypes.d.ts +63 -0
  39. package/dist/sendPanic.js +11 -11
  40. package/dist/utils/getEnvPaths.js +11 -11
  41. package/dist/utils/getVersionFromPackageJson.js +3 -3
  42. package/dist/utils/handlePanic.js +11 -11
  43. package/dist/utils/loadEnvFile.js +11 -11
  44. package/dist/wasm.js +4 -4
  45. package/package.json +9 -9
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_IOF3PJAC_exports = {};
30
- __export(chunk_IOF3PJAC_exports, {
29
+ var chunk_6MKM2Y64_exports = {};
30
+ __export(chunk_6MKM2Y64_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_IOF3PJAC_exports);
36
- var import_chunk_4QFYMU5Q = require("./chunk-4QFYMU5Q.js");
35
+ module.exports = __toCommonJS(chunk_6MKM2Y64_exports);
36
+ var import_chunk_PTGGTC2X = require("./chunk-PTGGTC2X.js");
37
37
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
38
38
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_4QFYMU5Q.require_package)();
45
+ var { dependencies } = (0, import_chunk_PTGGTC2X.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_3EPHRVO3_exports = {};
30
- __export(chunk_3EPHRVO3_exports, {
29
+ var chunk_6NGSWOJ2_exports = {};
30
+ __export(chunk_6NGSWOJ2_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_3EPHRVO3_exports);
34
+ module.exports = __toCommonJS(chunk_6NGSWOJ2_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
38
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
- var import_chunk_EZQCZVUB = require("./chunk-EZQCZVUB.js");
39
+ var import_chunk_HU4MELC4 = require("./chunk-HU4MELC4.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_JRVJL4KD = require("./chunk-JRVJL4KD.js");
41
+ var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
42
42
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_EZQCZVUB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_HU4MELC4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_JRVJL4KD.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_6MKM2Y64.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_MXMNTCC5_exports = {};
30
- __export(chunk_MXMNTCC5_exports, {
29
+ var chunk_6ZNAFJ6H_exports = {};
30
+ __export(chunk_6ZNAFJ6H_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_MXMNTCC5_exports);
34
+ module.exports = __toCommonJS(chunk_6ZNAFJ6H_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
38
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
- var import_chunk_JTWCAWGS = require("./chunk-JTWCAWGS.js");
39
+ var import_chunk_HU4MELC4 = require("./chunk-HU4MELC4.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_IOF3PJAC = require("./chunk-IOF3PJAC.js");
41
+ var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
42
42
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_JTWCAWGS.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_HU4MELC4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_IOF3PJAC.prismaSchemaWasm.debug_panic();
75
+ import_chunk_6MKM2Y64.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_IOF3PJAC.prismaSchemaWasm.validate(params);
81
+ import_chunk_6MKM2Y64.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_EZQCZVUB_exports = {};
20
- __export(chunk_EZQCZVUB_exports, {
19
+ var chunk_7MS6PDSK_exports = {};
20
+ __export(chunk_7MS6PDSK_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_EZQCZVUB_exports);
24
- var import_chunk_VZJZYI6E = require("./chunk-VZJZYI6E.js");
23
+ module.exports = __toCommonJS(chunk_7MS6PDSK_exports);
24
+ var import_chunk_BKFFD3K3 = require("./chunk-BKFFD3K3.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_VZJZYI6E.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_BKFFD3K3.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_OCYZOJRG_exports = {};
20
- __export(chunk_OCYZOJRG_exports, {
19
+ var chunk_BKFFD3K3_exports = {};
20
+ __export(chunk_BKFFD3K3_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_OCYZOJRG_exports);
24
- var import_chunk_4QFYMU5Q = require("./chunk-4QFYMU5Q.js");
25
- var packageJson = (0, import_chunk_4QFYMU5Q.require_package)();
23
+ module.exports = __toCommonJS(chunk_BKFFD3K3_exports);
24
+ var import_chunk_TXO7SYD5 = require("./chunk-TXO7SYD5.js");
25
+ var packageJson = (0, import_chunk_TXO7SYD5.require_package)();
26
26
  var version = packageJson.version;
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_FBHWUFLM_exports = {};
30
- __export2(chunk_FBHWUFLM_exports, {
29
+ var chunk_CQPAFPZS_exports = {};
30
+ __export2(chunk_CQPAFPZS_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -55,7 +55,7 @@ __export2(chunk_FBHWUFLM_exports, {
55
55
  sendPanic: () => sendPanic,
56
56
  skipIndex: () => skipIndex
57
57
  });
58
- module.exports = __toCommonJS2(chunk_FBHWUFLM_exports);
58
+ module.exports = __toCommonJS2(chunk_CQPAFPZS_exports);
59
59
  var import_chunk_ETNCBIDF = require("./chunk-ETNCBIDF.js");
60
60
  var import_chunk_GHHABGYW = require("./chunk-GHHABGYW.js");
61
61
  var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
@@ -79,13 +79,13 @@ var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
79
79
  var import_chunk_2T4NJDHK = require("./chunk-2T4NJDHK.js");
80
80
  var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
81
81
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
82
- var import_chunk_RZCTV2U3 = require("./chunk-RZCTV2U3.js");
83
- var import_chunk_7W7UYM7C = require("./chunk-7W7UYM7C.js");
84
- var import_chunk_4DBHGLDX = require("./chunk-4DBHGLDX.js");
85
- var import_chunk_PVHEBSDI = require("./chunk-PVHEBSDI.js");
82
+ var import_chunk_KIKNJN6E = require("./chunk-KIKNJN6E.js");
83
+ var import_chunk_Z4NZOOL2 = require("./chunk-Z4NZOOL2.js");
84
+ var import_chunk_YIFSM2JM = require("./chunk-YIFSM2JM.js");
85
+ var import_chunk_LOUKMUSU = require("./chunk-LOUKMUSU.js");
86
86
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
87
87
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
88
- var import_chunk_IOF3PJAC = require("./chunk-IOF3PJAC.js");
88
+ var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
89
89
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
90
90
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
91
91
  var import_chunk_RAYPCPVU = require("./chunk-RAYPCPVU.js");
@@ -14532,7 +14532,7 @@ async function readSchemaFromDirectory(schemaPath2) {
14532
14532
  }
14533
14533
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
14534
14534
  debug2("Loading config");
14535
- const config2 = await (0, import_chunk_4DBHGLDX.getConfig)({
14535
+ const config2 = await (0, import_chunk_YIFSM2JM.getConfig)({
14536
14536
  datamodel: files,
14537
14537
  ignoreEnvVarErrors: true
14538
14538
  });
@@ -14858,8 +14858,8 @@ async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromCon
14858
14858
  if (argName.includes("schema")) {
14859
14859
  await loadEnvFile({ schemaPath: argValue, printMessage: false, config: (0, import_config.defaultTestConfig)() });
14860
14860
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
14861
- const config2 = await (0, import_chunk_4DBHGLDX.getConfig)({ datamodel, ignoreEnvVarErrors: true });
14862
- const url = (0, import_chunk_4DBHGLDX.resolveUrl)((0, import_chunk_4DBHGLDX.getEffectiveUrl)(config2.datasources[0]));
14861
+ const config2 = await (0, import_chunk_YIFSM2JM.getConfig)({ datamodel, ignoreEnvVarErrors: true });
14862
+ const url = (0, import_chunk_YIFSM2JM.resolveUrl)((0, import_chunk_YIFSM2JM.getEffectiveUrl)(config2.datasources[0]));
14863
14863
  if (url?.startsWith("prisma://")) {
14864
14864
  return forbiddenCmdWithDataProxyFlagMessage(command);
14865
14865
  }
@@ -14905,7 +14905,7 @@ async function processSchemaResult({
14905
14905
  if (printLoadMessage) {
14906
14906
  process.stdout.write((0, import_chunk_PG5FDKSF.dim)(`Prisma schema loaded from ${loadedFromPathForLogMessages}`) + "\n");
14907
14907
  }
14908
- const configFromPsl = await (0, import_chunk_4DBHGLDX.getConfig)({ datamodel: schemaResult2.schemas });
14908
+ const configFromPsl = await (0, import_chunk_YIFSM2JM.getConfig)({ datamodel: schemaResult2.schemas });
14909
14909
  const primaryDatasource = configFromPsl.datasources.at(0);
14910
14910
  return {
14911
14911
  schemaFiles: schemaResult2.schemas,
@@ -15075,7 +15075,7 @@ async function getGenerators(options) {
15075
15075
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15076
15076
  }
15077
15077
  }
15078
- const config = await (0, import_chunk_4DBHGLDX.getConfig)({
15078
+ const config = await (0, import_chunk_YIFSM2JM.getConfig)({
15079
15079
  datamodel: schemas,
15080
15080
  datamodelPath: schemaPath,
15081
15081
  prismaPath,
@@ -15086,7 +15086,7 @@ async function getGenerators(options) {
15086
15086
  }
15087
15087
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
15088
15088
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
15089
- const dmmf = await (0, import_chunk_PVHEBSDI.getDMMF)({
15089
+ const dmmf = await (0, import_chunk_LOUKMUSU.getDMMF)({
15090
15090
  datamodel: schemas,
15091
15091
  datamodelPath: schemaPath,
15092
15092
  prismaPath,
@@ -15147,7 +15147,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
15147
15147
  fromEnvVar: null
15148
15148
  };
15149
15149
  }
15150
- const datamodel = (0, import_chunk_7W7UYM7C.mergeSchemas)({ schemas });
15150
+ const datamodel = (0, import_chunk_Z4NZOOL2.mergeSchemas)({ schemas });
15151
15151
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
15152
15152
  const options2 = {
15153
15153
  datamodel,
@@ -15230,7 +15230,7 @@ generator gen {
15230
15230
  debug6({ generatorBinaryPaths });
15231
15231
  generator.setBinaryPaths(generatorBinaryPaths);
15232
15232
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
15233
- const customDmmf = await (0, import_chunk_PVHEBSDI.getDMMF)({
15233
+ const customDmmf = await (0, import_chunk_LOUKMUSU.getDMMF)({
15234
15234
  datamodel: schemas,
15235
15235
  datamodelPath: schemaPath,
15236
15236
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15528,7 +15528,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15528
15528
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
15529
15529
  handleFormatPanic(
15530
15530
  () => {
15531
- import_chunk_IOF3PJAC.prismaSchemaWasm.debug_panic();
15531
+ import_chunk_QODB7AUQ.prismaSchemaWasm.debug_panic();
15532
15532
  },
15533
15533
  { schemas: schemas2 }
15534
15534
  );
@@ -15548,12 +15548,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
15548
15548
  () => {
15549
15549
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
15550
15550
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
15551
- const lintDiagnostics2 = (0, import_chunk_RZCTV2U3.lintSchema)({ schemas: formattedMultipleSchemas2 });
15551
+ const lintDiagnostics2 = (0, import_chunk_KIKNJN6E.lintSchema)({ schemas: formattedMultipleSchemas2 });
15552
15552
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15553
15553
  },
15554
15554
  { schemas: schemas2 }
15555
15555
  );
15556
- const lintWarnings = (0, import_chunk_RZCTV2U3.getLintWarningsAsText)(lintDiagnostics);
15556
+ const lintWarnings = (0, import_chunk_KIKNJN6E.getLintWarningsAsText)(lintDiagnostics);
15557
15557
  if (lintWarnings && import_chunk_MBB2KJWX.logger_exports.should.warn()) {
15558
15558
  console.warn(lintWarnings);
15559
15559
  }
@@ -15583,7 +15583,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
15583
15583
  }
15584
15584
  }
15585
15585
  function formatWasm(schema, documentFormattingParams) {
15586
- const formattedSchema = import_chunk_IOF3PJAC.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15586
+ const formattedSchema = import_chunk_QODB7AUQ.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15587
15587
  return formattedSchema;
15588
15588
  }
15589
15589
  /*! Bundled license information:
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_JTWCAWGS_exports = {};
20
- __export(chunk_JTWCAWGS_exports, {
19
+ var chunk_HU4MELC4_exports = {};
20
+ __export(chunk_HU4MELC4_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_JTWCAWGS_exports);
24
- var import_chunk_OCYZOJRG = require("./chunk-OCYZOJRG.js");
23
+ module.exports = __toCommonJS(chunk_HU4MELC4_exports);
24
+ var import_chunk_ZBZ7CJXT = require("./chunk-ZBZ7CJXT.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_OCYZOJRG.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_ZBZ7CJXT.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_RZCTV2U3_exports = {};
20
- __export(chunk_RZCTV2U3_exports, {
19
+ var chunk_KIKNJN6E_exports = {};
20
+ __export(chunk_KIKNJN6E_exports, {
21
21
  getLintWarnings: () => getLintWarnings,
22
22
  getLintWarningsAsText: () => getLintWarningsAsText,
23
23
  handleLintPanic: () => handleLintPanic,
24
24
  lintSchema: () => lintSchema,
25
25
  warningToString: () => warningToString
26
26
  });
27
- module.exports = __toCommonJS(chunk_RZCTV2U3_exports);
27
+ module.exports = __toCommonJS(chunk_KIKNJN6E_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_IOF3PJAC = require("./chunk-IOF3PJAC.js");
29
+ var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
30
30
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_IOF3PJAC.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_QODB7AUQ.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_PVHEBSDI_exports = {};
30
- __export(chunk_PVHEBSDI_exports, {
29
+ var chunk_LOUKMUSU_exports = {};
30
+ __export(chunk_LOUKMUSU_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_PVHEBSDI_exports);
34
+ module.exports = __toCommonJS(chunk_LOUKMUSU_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
- var import_chunk_JTWCAWGS = require("./chunk-JTWCAWGS.js");
38
+ var import_chunk_7MS6PDSK = require("./chunk-7MS6PDSK.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_IOF3PJAC = require("./chunk-IOF3PJAC.js");
40
+ var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
41
41
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_JTWCAWGS.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_7MS6PDSK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -90,13 +90,13 @@ async function getDMMF(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_IOF3PJAC.prismaSchemaWasm.debug_panic();
93
+ import_chunk_QODB7AUQ.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: datamodel,
97
97
  noColor: Boolean(process.env.NO_COLOR)
98
98
  });
99
- const data = import_chunk_IOF3PJAC.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_QODB7AUQ.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_4QFYMU5Q_exports = {};
20
- __export(chunk_4QFYMU5Q_exports, {
19
+ var chunk_PTGGTC2X_exports = {};
20
+ __export(chunk_PTGGTC2X_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_4QFYMU5Q_exports);
23
+ module.exports = __toCommonJS(chunk_PTGGTC2X_exports);
24
24
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
25
25
  var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.6.0-dev.28",
29
+ version: "6.6.0-dev.29",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
111
111
  "@prisma/fetch-engine": "workspace:*",
112
112
  "@prisma/generator-helper": "workspace:*",
113
113
  "@prisma/get-platform": "workspace:*",
114
- "@prisma/prisma-schema-wasm": "6.6.0-20.9f8c15a33bec92b7c6d2a261f499c94ab1fa69bc",
114
+ "@prisma/prisma-schema-wasm": "6.6.0-21.d1dbe8880430b6f753dffc4264de1a7f39e4a15a",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_JPTRXV36_exports = {};
30
- __export(chunk_JPTRXV36_exports, {
29
+ var chunk_QGCWSCAS_exports = {};
30
+ __export(chunk_QGCWSCAS_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_JPTRXV36_exports);
34
+ module.exports = __toCommonJS(chunk_QGCWSCAS_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
- var import_chunk_EZQCZVUB = require("./chunk-EZQCZVUB.js");
38
+ var import_chunk_HU4MELC4 = require("./chunk-HU4MELC4.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_JRVJL4KD = require("./chunk-JRVJL4KD.js");
40
+ var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
41
41
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_EZQCZVUB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_HU4MELC4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -90,13 +90,13 @@ async function getDMMF(options) {
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_JRVJL4KD.prismaSchemaWasm.debug_panic();
93
+ import_chunk_6MKM2Y64.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: datamodel,
97
97
  noColor: Boolean(process.env.NO_COLOR)
98
98
  });
99
- const data = import_chunk_JRVJL4KD.prismaSchemaWasm.get_dmmf(params);
99
+ const data = import_chunk_6MKM2Y64.prismaSchemaWasm.get_dmmf(params);
100
100
  return data;
101
101
  },
102
102
  (e) => ({
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_JRVJL4KD_exports = {};
30
- __export(chunk_JRVJL4KD_exports, {
29
+ var chunk_QODB7AUQ_exports = {};
30
+ __export(chunk_QODB7AUQ_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_JRVJL4KD_exports);
36
- var import_chunk_6GYVGU5I = require("./chunk-6GYVGU5I.js");
35
+ module.exports = __toCommonJS(chunk_QODB7AUQ_exports);
36
+ var import_chunk_TXO7SYD5 = require("./chunk-TXO7SYD5.js");
37
37
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
38
38
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_6GYVGU5I.require_package)();
45
+ var { dependencies } = (0, import_chunk_TXO7SYD5.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_NWX4DSMZ_exports = {};
30
- __export(chunk_NWX4DSMZ_exports, {
29
+ var chunk_RRUPCUEK_exports = {};
30
+ __export(chunk_RRUPCUEK_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_NWX4DSMZ_exports);
34
+ module.exports = __toCommonJS(chunk_RRUPCUEK_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_PSYMCJ4B = require("./chunk-PSYMCJ4B.js");
37
37
  var import_chunk_ZGAIRZ32 = require("./chunk-ZGAIRZ32.js");
38
38
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
- var import_chunk_EZQCZVUB = require("./chunk-EZQCZVUB.js");
39
+ var import_chunk_7MS6PDSK = require("./chunk-7MS6PDSK.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_JRVJL4KD = require("./chunk-JRVJL4KD.js");
41
+ var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
42
42
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_EZQCZVUB.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_7MS6PDSK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_JRVJL4KD.prismaSchemaWasm.debug_panic();
75
+ import_chunk_QODB7AUQ.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_JRVJL4KD.prismaSchemaWasm.validate(params);
81
+ import_chunk_QODB7AUQ.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_6GYVGU5I_exports = {};
20
- __export(chunk_6GYVGU5I_exports, {
19
+ var chunk_TXO7SYD5_exports = {};
20
+ __export(chunk_TXO7SYD5_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_6GYVGU5I_exports);
23
+ module.exports = __toCommonJS(chunk_TXO7SYD5_exports);
24
24
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
25
25
  var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
26
26
  "package.json"(exports, module2) {
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
111
111
  "@prisma/fetch-engine": "workspace:*",
112
112
  "@prisma/generator-helper": "workspace:*",
113
113
  "@prisma/get-platform": "workspace:*",
114
- "@prisma/prisma-schema-wasm": "6.6.0-20.9f8c15a33bec92b7c6d2a261f499c94ab1fa69bc",
114
+ "@prisma/prisma-schema-wasm": "6.6.0-21.d1dbe8880430b6f753dffc4264de1a7f39e4a15a",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_VJVTJYO6_exports = {};
20
- __export(chunk_VJVTJYO6_exports, {
19
+ var chunk_TYHSGPVG_exports = {};
20
+ __export(chunk_TYHSGPVG_exports, {
21
21
  getLintWarnings: () => getLintWarnings,
22
22
  getLintWarningsAsText: () => getLintWarningsAsText,
23
23
  handleLintPanic: () => handleLintPanic,
24
24
  lintSchema: () => lintSchema,
25
25
  warningToString: () => warningToString
26
26
  });
27
- module.exports = __toCommonJS(chunk_VJVTJYO6_exports);
27
+ module.exports = __toCommonJS(chunk_TYHSGPVG_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_JRVJL4KD = require("./chunk-JRVJL4KD.js");
29
+ var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
30
30
  var import_chunk_CCQRDM7X = require("./chunk-CCQRDM7X.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_JRVJL4KD.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_6MKM2Y64.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }