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

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 (50) hide show
  1. package/dist/{chunk-EDPM4TAT.js → chunk-2ZPYYZJB.js} +5 -5
  2. package/dist/{chunk-6NGSWOJ2.js → chunk-4VX3SCSY.js} +7 -7
  3. package/dist/{chunk-TYHSGPVG.js → chunk-5ELQCMKU.js} +5 -5
  4. package/dist/{chunk-BKFFD3K3.js → chunk-63UICP6I.js} +5 -5
  5. package/dist/{chunk-HU4MELC4.js → chunk-67ZYNR2V.js} +5 -5
  6. package/dist/{chunk-CQPAFPZS.js → chunk-6K6EHLCH.js} +28 -28
  7. package/dist/{chunk-6MKM2Y64.js → chunk-6OPHYVCL.js} +5 -5
  8. package/dist/{chunk-V3C2TMWM.js → chunk-AMOV4PS4.js} +28 -28
  9. package/dist/{chunk-PTGGTC2X.js → chunk-E7CSPTYY.js} +5 -5
  10. package/dist/{chunk-RRUPCUEK.js → chunk-EL7UDAZP.js} +8 -8
  11. package/dist/{chunk-XXDGZSJ4.js → chunk-FNA4EAZ6.js} +136 -149
  12. package/dist/{chunk-7MS6PDSK.js → chunk-HI3MXINR.js} +5 -5
  13. package/dist/{chunk-DB2ZXQNZ.js → chunk-HL5VFJX4.js} +6 -6
  14. package/dist/{chunk-TXO7SYD5.js → chunk-LJAZFFBF.js} +4 -4
  15. package/dist/{chunk-KIKNJN6E.js → chunk-LMKDA2TU.js} +5 -5
  16. package/dist/{chunk-YIFSM2JM.js → chunk-MHWH2PHS.js} +8 -8
  17. package/dist/{chunk-ZBZ7CJXT.js → chunk-MRLXY5TT.js} +5 -5
  18. package/dist/{chunk-QODB7AUQ.js → chunk-NRKSZ6TI.js} +5 -5
  19. package/dist/{chunk-LOUKMUSU.js → chunk-QP2MIEEK.js} +8 -8
  20. package/dist/{chunk-QGCWSCAS.js → chunk-U76NRW2U.js} +8 -8
  21. package/dist/{chunk-6ZNAFJ6H.js → chunk-VCLRUTLD.js} +8 -8
  22. package/dist/{chunk-Z4NZOOL2.js → chunk-X2YZOSPP.js} +7 -7
  23. package/dist/{chunk-YPUOGZEE.js → chunk-YU6PNVRN.js} +8 -8
  24. package/dist/cli/checkUnsupportedDataProxy.js +15 -15
  25. package/dist/cli/getSchema.js +19 -19
  26. package/dist/cli/hashes.js +15 -15
  27. package/dist/cli/schemaContext.js +14 -14
  28. package/dist/engine-commands/errorHelpers.js +4 -4
  29. package/dist/engine-commands/formatSchema.js +14 -14
  30. package/dist/engine-commands/getConfig.js +10 -10
  31. package/dist/engine-commands/getDmmf.js +7 -7
  32. package/dist/engine-commands/index.js +23 -23
  33. package/dist/engine-commands/lintSchema.js +8 -8
  34. package/dist/engine-commands/mergeSchemas.js +7 -7
  35. package/dist/engine-commands/validate.js +7 -7
  36. package/dist/get-generators/generatorResolvers/generatorResolvers.js +14 -14
  37. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +14 -14
  38. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +15 -15
  39. package/dist/get-generators/getGenerators.js +17 -17
  40. package/dist/index.js +45 -45
  41. package/dist/sendPanic.js +14 -14
  42. package/dist/utils/getEnvPaths.js +14 -14
  43. package/dist/utils/getVersionFromPackageJson.js +3 -3
  44. package/dist/utils/handlePanic.js +14 -14
  45. package/dist/utils/link.js +2 -2
  46. package/dist/utils/loadEnvFile.js +14 -14
  47. package/dist/utils/missingDatasource.js +3 -3
  48. package/dist/utils/missingGeneratorMessage.js +5 -5
  49. package/dist/wasm.js +4 -4
  50. package/package.json +9 -9
@@ -16,12 +16,12 @@ 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_EDPM4TAT_exports = {};
20
- __export(chunk_EDPM4TAT_exports, {
19
+ var chunk_2ZPYYZJB_exports = {};
20
+ __export(chunk_2ZPYYZJB_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_EDPM4TAT_exports);
24
- var import_chunk_XXDGZSJ4 = require("./chunk-XXDGZSJ4.js");
23
+ module.exports = __toCommonJS(chunk_2ZPYYZJB_exports);
24
+ var import_chunk_FNA4EAZ6 = require("./chunk-FNA4EAZ6.js");
25
25
  var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
@@ -36,5 +36,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
36
36
  )}
37
37
 
38
38
  More information in our documentation:
39
- ${(0, import_chunk_XXDGZSJ4.link)("https://pris.ly/d/prisma-schema")}
39
+ ${(0, import_chunk_FNA4EAZ6.link)("https://pris.ly/d/prisma-schema")}
40
40
  `;
@@ -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_6NGSWOJ2_exports = {};
30
- __export(chunk_6NGSWOJ2_exports, {
29
+ var chunk_4VX3SCSY_exports = {};
30
+ __export(chunk_4VX3SCSY_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_6NGSWOJ2_exports);
34
+ module.exports = __toCommonJS(chunk_4VX3SCSY_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_HU4MELC4 = require("./chunk-HU4MELC4.js");
39
+ var import_chunk_HI3MXINR = require("./chunk-HI3MXINR.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
41
+ var import_chunk_NRKSZ6TI = require("./chunk-NRKSZ6TI.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_HU4MELC4.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_HI3MXINR.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_6MKM2Y64.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_NRKSZ6TI.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -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_TYHSGPVG_exports = {};
20
- __export(chunk_TYHSGPVG_exports, {
19
+ var chunk_5ELQCMKU_exports = {};
20
+ __export(chunk_5ELQCMKU_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_TYHSGPVG_exports);
27
+ module.exports = __toCommonJS(chunk_5ELQCMKU_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
29
+ var import_chunk_NRKSZ6TI = require("./chunk-NRKSZ6TI.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_6MKM2Y64.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_NRKSZ6TI.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -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_BKFFD3K3_exports = {};
20
- __export(chunk_BKFFD3K3_exports, {
19
+ var chunk_63UICP6I_exports = {};
20
+ __export(chunk_63UICP6I_exports, {
21
21
  version: () => version
22
22
  });
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)();
23
+ module.exports = __toCommonJS(chunk_63UICP6I_exports);
24
+ var import_chunk_E7CSPTYY = require("./chunk-E7CSPTYY.js");
25
+ var packageJson = (0, import_chunk_E7CSPTYY.require_package)();
26
26
  var version = packageJson.version;
@@ -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_HU4MELC4_exports = {};
20
- __export(chunk_HU4MELC4_exports, {
19
+ var chunk_67ZYNR2V_exports = {};
20
+ __export(chunk_67ZYNR2V_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_HU4MELC4_exports);
24
- var import_chunk_ZBZ7CJXT = require("./chunk-ZBZ7CJXT.js");
23
+ module.exports = __toCommonJS(chunk_67ZYNR2V_exports);
24
+ var import_chunk_63UICP6I = require("./chunk-63UICP6I.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_ZBZ7CJXT.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_63UICP6I.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_CQPAFPZS_exports = {};
30
- __export2(chunk_CQPAFPZS_exports, {
29
+ var chunk_6K6EHLCH_exports = {};
30
+ __export2(chunk_6K6EHLCH_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -55,7 +55,7 @@ __export2(chunk_CQPAFPZS_exports, {
55
55
  sendPanic: () => sendPanic,
56
56
  skipIndex: () => skipIndex
57
57
  });
58
- module.exports = __toCommonJS2(chunk_CQPAFPZS_exports);
58
+ module.exports = __toCommonJS2(chunk_6K6EHLCH_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");
@@ -72,20 +72,20 @@ var import_chunk_ZCVVZ6U6 = require("./chunk-ZCVVZ6U6.js");
72
72
  var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.js");
73
73
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
74
74
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
75
- var import_chunk_EDPM4TAT = require("./chunk-EDPM4TAT.js");
76
- var import_chunk_DB2ZXQNZ = require("./chunk-DB2ZXQNZ.js");
77
- var import_chunk_XXDGZSJ4 = require("./chunk-XXDGZSJ4.js");
75
+ var import_chunk_2ZPYYZJB = require("./chunk-2ZPYYZJB.js");
76
+ var import_chunk_HL5VFJX4 = require("./chunk-HL5VFJX4.js");
77
+ var import_chunk_FNA4EAZ6 = require("./chunk-FNA4EAZ6.js");
78
78
  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_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");
82
+ var import_chunk_LMKDA2TU = require("./chunk-LMKDA2TU.js");
83
+ var import_chunk_X2YZOSPP = require("./chunk-X2YZOSPP.js");
84
+ var import_chunk_MHWH2PHS = require("./chunk-MHWH2PHS.js");
85
+ var import_chunk_QP2MIEEK = require("./chunk-QP2MIEEK.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_QODB7AUQ = require("./chunk-QODB7AUQ.js");
88
+ var import_chunk_6OPHYVCL = require("./chunk-6OPHYVCL.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_YIFSM2JM.getConfig)({
14535
+ const config2 = await (0, import_chunk_MHWH2PHS.getConfig)({
14536
14536
  datamodel: files,
14537
14537
  ignoreEnvVarErrors: true
14538
14538
  });
@@ -14844,7 +14844,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (command) => `
14844
14844
  Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${command}`)} yet.
14845
14845
  Please use a direct connection to your database via the datasource \`directUrl\` setting.
14846
14846
 
14847
- More information about this limitation: ${(0, import_chunk_XXDGZSJ4.link)("https://pris.ly/d/accelerate-limitations")}
14847
+ More information about this limitation: ${(0, import_chunk_FNA4EAZ6.link)("https://pris.ly/d/accelerate-limitations")}
14848
14848
  `;
14849
14849
  async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromConfig, implicitSchema) {
14850
14850
  if (implicitSchema === true) {
@@ -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_YIFSM2JM.getConfig)({ datamodel, ignoreEnvVarErrors: true });
14862
- const url = (0, import_chunk_YIFSM2JM.resolveUrl)((0, import_chunk_YIFSM2JM.getEffectiveUrl)(config2.datasources[0]));
14861
+ const config2 = await (0, import_chunk_MHWH2PHS.getConfig)({ datamodel, ignoreEnvVarErrors: true });
14862
+ const url = (0, import_chunk_MHWH2PHS.resolveUrl)((0, import_chunk_MHWH2PHS.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_YIFSM2JM.getConfig)({ datamodel: schemaResult2.schemas });
14908
+ const configFromPsl = await (0, import_chunk_MHWH2PHS.getConfig)({ datamodel: schemaResult2.schemas });
14909
14909
  const primaryDatasource = configFromPsl.datasources.at(0);
14910
14910
  return {
14911
14911
  schemaFiles: schemaResult2.schemas,
@@ -15075,18 +15075,18 @@ async function getGenerators(options) {
15075
15075
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15076
15076
  }
15077
15077
  }
15078
- const config = await (0, import_chunk_YIFSM2JM.getConfig)({
15078
+ const config = await (0, import_chunk_MHWH2PHS.getConfig)({
15079
15079
  datamodel: schemas,
15080
15080
  datamodelPath: schemaPath,
15081
15081
  prismaPath,
15082
15082
  ignoreEnvVarErrors: true
15083
15083
  });
15084
15084
  if (config.datasources.length === 0) {
15085
- throw new Error(import_chunk_EDPM4TAT.missingDatasource);
15085
+ throw new Error(import_chunk_2ZPYYZJB.missingDatasource);
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_LOUKMUSU.getDMMF)({
15089
+ const dmmf = await (0, import_chunk_QP2MIEEK.getDMMF)({
15090
15090
  datamodel: schemas,
15091
15091
  datamodelPath: schemaPath,
15092
15092
  prismaPath,
@@ -15094,9 +15094,9 @@ async function getGenerators(options) {
15094
15094
  });
15095
15095
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
15096
15096
  if (config.datasources.some((d2) => d2.provider === "mongodb")) {
15097
- throw new Error(import_chunk_DB2ZXQNZ.missingModelMessageMongoDB);
15097
+ throw new Error(import_chunk_HL5VFJX4.missingModelMessageMongoDB);
15098
15098
  }
15099
- throw new Error(import_chunk_DB2ZXQNZ.missingModelMessage);
15099
+ throw new Error(import_chunk_HL5VFJX4.missingModelMessage);
15100
15100
  }
15101
15101
  (0, import_chunk_IPKE37QC.checkFeatureFlags)(config, options);
15102
15102
  const generatorConfigs = filterGenerators(overrideGenerators || config.generators, generatorNames);
@@ -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_Z4NZOOL2.mergeSchemas)({ schemas });
15150
+ const datamodel = (0, import_chunk_X2YZOSPP.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_LOUKMUSU.getDMMF)({
15233
+ const customDmmf = await (0, import_chunk_QP2MIEEK.getDMMF)({
15234
15234
  datamodel: schemas,
15235
15235
  datamodelPath: schemaPath,
15236
15236
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15480,7 +15480,7 @@ ${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
15480
15480
 
15481
15481
  ${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
15482
15482
  ${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
15483
- ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_XXDGZSJ4.link)("https://pris.ly/d/telemetry")}`)}
15483
+ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_FNA4EAZ6.link)("https://pris.ly/d/telemetry")}`)}
15484
15484
  `);
15485
15485
  const { value: shouldSubmitReport } = await (0, import_prompts.default)({
15486
15486
  type: "select",
@@ -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_QODB7AUQ.prismaSchemaWasm.debug_panic();
15531
+ import_chunk_6OPHYVCL.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_KIKNJN6E.lintSchema)({ schemas: formattedMultipleSchemas2 });
15551
+ const lintDiagnostics2 = (0, import_chunk_LMKDA2TU.lintSchema)({ schemas: formattedMultipleSchemas2 });
15552
15552
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15553
15553
  },
15554
15554
  { schemas: schemas2 }
15555
15555
  );
15556
- const lintWarnings = (0, import_chunk_KIKNJN6E.getLintWarningsAsText)(lintDiagnostics);
15556
+ const lintWarnings = (0, import_chunk_LMKDA2TU.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_QODB7AUQ.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15586
+ const formattedSchema = import_chunk_6OPHYVCL.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15587
15587
  return formattedSchema;
15588
15588
  }
15589
15589
  /*! Bundled license information:
@@ -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_6MKM2Y64_exports = {};
30
- __export(chunk_6MKM2Y64_exports, {
29
+ var chunk_6OPHYVCL_exports = {};
30
+ __export(chunk_6OPHYVCL_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_6MKM2Y64_exports);
36
- var import_chunk_PTGGTC2X = require("./chunk-PTGGTC2X.js");
35
+ module.exports = __toCommonJS(chunk_6OPHYVCL_exports);
36
+ var import_chunk_E7CSPTYY = require("./chunk-E7CSPTYY.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_PTGGTC2X.require_package)();
45
+ var { dependencies } = (0, import_chunk_E7CSPTYY.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
@@ -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_V3C2TMWM_exports = {};
30
- __export2(chunk_V3C2TMWM_exports, {
29
+ var chunk_AMOV4PS4_exports = {};
30
+ __export2(chunk_AMOV4PS4_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  debug: () => debug5,
@@ -55,7 +55,7 @@ __export2(chunk_V3C2TMWM_exports, {
55
55
  sendPanic: () => sendPanic,
56
56
  skipIndex: () => skipIndex
57
57
  });
58
- module.exports = __toCommonJS2(chunk_V3C2TMWM_exports);
58
+ module.exports = __toCommonJS2(chunk_AMOV4PS4_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");
@@ -72,20 +72,20 @@ var import_chunk_ZCVVZ6U6 = require("./chunk-ZCVVZ6U6.js");
72
72
  var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.js");
73
73
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
74
74
  var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
75
- var import_chunk_EDPM4TAT = require("./chunk-EDPM4TAT.js");
76
- var import_chunk_DB2ZXQNZ = require("./chunk-DB2ZXQNZ.js");
77
- var import_chunk_XXDGZSJ4 = require("./chunk-XXDGZSJ4.js");
75
+ var import_chunk_2ZPYYZJB = require("./chunk-2ZPYYZJB.js");
76
+ var import_chunk_HL5VFJX4 = require("./chunk-HL5VFJX4.js");
77
+ var import_chunk_FNA4EAZ6 = require("./chunk-FNA4EAZ6.js");
78
78
  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_TYHSGPVG = require("./chunk-TYHSGPVG.js");
83
- var import_chunk_6NGSWOJ2 = require("./chunk-6NGSWOJ2.js");
84
- var import_chunk_YPUOGZEE = require("./chunk-YPUOGZEE.js");
85
- var import_chunk_QGCWSCAS = require("./chunk-QGCWSCAS.js");
82
+ var import_chunk_5ELQCMKU = require("./chunk-5ELQCMKU.js");
83
+ var import_chunk_4VX3SCSY = require("./chunk-4VX3SCSY.js");
84
+ var import_chunk_YU6PNVRN = require("./chunk-YU6PNVRN.js");
85
+ var import_chunk_U76NRW2U = require("./chunk-U76NRW2U.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_6MKM2Y64 = require("./chunk-6MKM2Y64.js");
88
+ var import_chunk_NRKSZ6TI = require("./chunk-NRKSZ6TI.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_YPUOGZEE.getConfig)({
14535
+ const config2 = await (0, import_chunk_YU6PNVRN.getConfig)({
14536
14536
  datamodel: files,
14537
14537
  ignoreEnvVarErrors: true
14538
14538
  });
@@ -14844,7 +14844,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (command) => `
14844
14844
  Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${command}`)} yet.
14845
14845
  Please use a direct connection to your database via the datasource \`directUrl\` setting.
14846
14846
 
14847
- More information about this limitation: ${(0, import_chunk_XXDGZSJ4.link)("https://pris.ly/d/accelerate-limitations")}
14847
+ More information about this limitation: ${(0, import_chunk_FNA4EAZ6.link)("https://pris.ly/d/accelerate-limitations")}
14848
14848
  `;
14849
14849
  async function checkUnsupportedDataProxyMessage(command, args, schemaPathFromConfig, implicitSchema) {
14850
14850
  if (implicitSchema === true) {
@@ -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_YPUOGZEE.getConfig)({ datamodel, ignoreEnvVarErrors: true });
14862
- const url = (0, import_chunk_YPUOGZEE.resolveUrl)((0, import_chunk_YPUOGZEE.getEffectiveUrl)(config2.datasources[0]));
14861
+ const config2 = await (0, import_chunk_YU6PNVRN.getConfig)({ datamodel, ignoreEnvVarErrors: true });
14862
+ const url = (0, import_chunk_YU6PNVRN.resolveUrl)((0, import_chunk_YU6PNVRN.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_YPUOGZEE.getConfig)({ datamodel: schemaResult2.schemas });
14908
+ const configFromPsl = await (0, import_chunk_YU6PNVRN.getConfig)({ datamodel: schemaResult2.schemas });
14909
14909
  const primaryDatasource = configFromPsl.datasources.at(0);
14910
14910
  return {
14911
14911
  schemaFiles: schemaResult2.schemas,
@@ -15075,18 +15075,18 @@ async function getGenerators(options) {
15075
15075
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
15076
15076
  }
15077
15077
  }
15078
- const config = await (0, import_chunk_YPUOGZEE.getConfig)({
15078
+ const config = await (0, import_chunk_YU6PNVRN.getConfig)({
15079
15079
  datamodel: schemas,
15080
15080
  datamodelPath: schemaPath,
15081
15081
  prismaPath,
15082
15082
  ignoreEnvVarErrors: true
15083
15083
  });
15084
15084
  if (config.datasources.length === 0) {
15085
- throw new Error(import_chunk_EDPM4TAT.missingDatasource);
15085
+ throw new Error(import_chunk_2ZPYYZJB.missingDatasource);
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_QGCWSCAS.getDMMF)({
15089
+ const dmmf = await (0, import_chunk_U76NRW2U.getDMMF)({
15090
15090
  datamodel: schemas,
15091
15091
  datamodelPath: schemaPath,
15092
15092
  prismaPath,
@@ -15094,9 +15094,9 @@ async function getGenerators(options) {
15094
15094
  });
15095
15095
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
15096
15096
  if (config.datasources.some((d2) => d2.provider === "mongodb")) {
15097
- throw new Error(import_chunk_DB2ZXQNZ.missingModelMessageMongoDB);
15097
+ throw new Error(import_chunk_HL5VFJX4.missingModelMessageMongoDB);
15098
15098
  }
15099
- throw new Error(import_chunk_DB2ZXQNZ.missingModelMessage);
15099
+ throw new Error(import_chunk_HL5VFJX4.missingModelMessage);
15100
15100
  }
15101
15101
  (0, import_chunk_IPKE37QC.checkFeatureFlags)(config, options);
15102
15102
  const generatorConfigs = filterGenerators(overrideGenerators || config.generators, generatorNames);
@@ -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_6NGSWOJ2.mergeSchemas)({ schemas });
15150
+ const datamodel = (0, import_chunk_4VX3SCSY.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_QGCWSCAS.getDMMF)({
15233
+ const customDmmf = await (0, import_chunk_U76NRW2U.getDMMF)({
15234
15234
  datamodel: schemas,
15235
15235
  datamodelPath: schemaPath,
15236
15236
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -15480,7 +15480,7 @@ ${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
15480
15480
 
15481
15481
  ${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
15482
15482
  ${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
15483
- ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_XXDGZSJ4.link)("https://pris.ly/d/telemetry")}`)}
15483
+ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_FNA4EAZ6.link)("https://pris.ly/d/telemetry")}`)}
15484
15484
  `);
15485
15485
  const { value: shouldSubmitReport } = await (0, import_prompts.default)({
15486
15486
  type: "select",
@@ -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_6MKM2Y64.prismaSchemaWasm.debug_panic();
15531
+ import_chunk_NRKSZ6TI.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_TYHSGPVG.lintSchema)({ schemas: formattedMultipleSchemas2 });
15551
+ const lintDiagnostics2 = (0, import_chunk_5ELQCMKU.lintSchema)({ schemas: formattedMultipleSchemas2 });
15552
15552
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
15553
15553
  },
15554
15554
  { schemas: schemas2 }
15555
15555
  );
15556
- const lintWarnings = (0, import_chunk_TYHSGPVG.getLintWarningsAsText)(lintDiagnostics);
15556
+ const lintWarnings = (0, import_chunk_5ELQCMKU.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_6MKM2Y64.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15586
+ const formattedSchema = import_chunk_NRKSZ6TI.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
15587
15587
  return formattedSchema;
15588
15588
  }
15589
15589
  /*! Bundled license information:
@@ -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_PTGGTC2X_exports = {};
20
- __export(chunk_PTGGTC2X_exports, {
19
+ var chunk_E7CSPTYY_exports = {};
20
+ __export(chunk_E7CSPTYY_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_PTGGTC2X_exports);
23
+ module.exports = __toCommonJS(chunk_E7CSPTYY_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.29",
29
+ version: "6.6.0-dev.30",
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",
@@ -96,7 +96,7 @@ var require_package = (0, import_chunk_2ESYSVXG.__commonJS)({
96
96
  "strip-indent": "4.0.0",
97
97
  "temp-dir": "2.0.0",
98
98
  tempy: "1.0.1",
99
- "terminal-link": "2.1.1",
99
+ "terminal-link": "3.0.0",
100
100
  tmp: "0.2.3",
101
101
  "ts-node": "10.9.2",
102
102
  "ts-pattern": "5.6.2",
@@ -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_RRUPCUEK_exports = {};
30
- __export(chunk_RRUPCUEK_exports, {
29
+ var chunk_EL7UDAZP_exports = {};
30
+ __export(chunk_EL7UDAZP_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_RRUPCUEK_exports);
34
+ module.exports = __toCommonJS(chunk_EL7UDAZP_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_7MS6PDSK = require("./chunk-7MS6PDSK.js");
39
+ var import_chunk_67ZYNR2V = require("./chunk-67ZYNR2V.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
- var import_chunk_QODB7AUQ = require("./chunk-QODB7AUQ.js");
41
+ var import_chunk_6OPHYVCL = require("./chunk-6OPHYVCL.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_7MS6PDSK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_67ZYNR2V.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_QODB7AUQ.prismaSchemaWasm.debug_panic();
75
+ import_chunk_6OPHYVCL.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_QODB7AUQ.prismaSchemaWasm.validate(params);
81
+ import_chunk_6OPHYVCL.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",