@prisma/internals 6.19.0-integration-engines-6-19-0-31-next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23.1 → 6.19.0-integration-next.16

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 (85) hide show
  1. package/dist/{chunk-Q64XHKHF.js → chunk-25QIR2OA.js} +8 -8
  2. package/dist/{chunk-RNYJUEDU.js → chunk-2ONERNWE.js} +5 -5
  3. package/dist/{chunk-3NZLOTZP.js → chunk-3GU5WOTV.js} +7 -8
  4. package/dist/{chunk-OAT7ZJED.js → chunk-5FUXDJAN.js} +5 -9
  5. package/dist/{chunk-FYZCPL2Z.js → chunk-5NV3W7KM.js} +4 -4
  6. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  7. package/dist/{chunk-F2OZV76L.js → chunk-5XFNC2RY.js} +7 -7
  8. package/dist/{chunk-IE6Y4PMC.js → chunk-63H7LVQK.js} +5 -5
  9. package/dist/{chunk-APZUC47O.js → chunk-6GH4RAXF.js} +5 -5
  10. package/dist/{chunk-NGOAZIZY.js → chunk-6OLUZD6G.js} +9 -15
  11. package/dist/{chunk-C2HOY5Z2.js → chunk-A7LJSXBL.js} +31 -49
  12. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  13. package/dist/{chunk-RS2R7COT.js → chunk-B22EOFPW.js} +3 -6
  14. package/dist/{chunk-UQUWZJVN.js → chunk-BLBFB7XV.js} +7 -7
  15. package/dist/{chunk-NE544QTB.js → chunk-CAACRLTC.js} +8 -8
  16. package/dist/{chunk-FP7Y7C33.js → chunk-FMYHDVAC.js} +7 -7
  17. package/dist/{chunk-ERSH2BQA.js → chunk-FUYRCYVL.js} +3 -8
  18. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  19. package/dist/{chunk-HFFWZTVM.js → chunk-GSH4BXBI.js} +4 -6
  20. package/dist/{chunk-3D5WFBNU.js → chunk-HC7ALJJ2.js} +31 -49
  21. package/dist/{chunk-GMW36QQF.js → chunk-HL6M6I6N.js} +7 -7
  22. package/dist/{chunk-2QAF26LC.js → chunk-I6IIL2R7.js} +5 -5
  23. package/dist/{chunk-BZFXOLVC.js → chunk-INJO27TY.js} +9 -15
  24. package/dist/{chunk-OQH4MI73.js → chunk-MH5DW7MH.js} +7 -7
  25. package/dist/{chunk-VSGMGR6A.js → chunk-NDSHLEAN.js} +8 -8
  26. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  27. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  28. package/dist/{chunk-XZBDRJF3.js → chunk-R3RVIOOH.js} +5 -5
  29. package/dist/{chunk-VFCLWZ3O.js → chunk-RXUFT5US.js} +8 -8
  30. package/dist/{chunk-4YZH45V6.js → chunk-SIMRXUXR.js} +5 -5
  31. package/dist/{chunk-77HI77IU.js → chunk-SVPXYUIM.js} +6 -7
  32. package/dist/{chunk-UHI6VYFX.js → chunk-SYOFVVNN.js} +5 -5
  33. package/dist/{chunk-4CGPN5SR.js → chunk-VRGMXDRD.js} +3 -6
  34. package/dist/{chunk-TBA7BNPC.js → chunk-XCUYCN3Z.js} +5 -5
  35. package/dist/{chunk-5MVBCW2Z.js → chunk-XQFPAFQE.js} +5 -5
  36. package/dist/cli/checkUnsupportedDataProxy.js +41 -45
  37. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +41 -45
  38. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  39. package/dist/cli/getSchema.d.ts +1 -15
  40. package/dist/cli/getSchema.js +4 -5
  41. package/dist/cli/hashes.js +4 -4
  42. package/dist/cli/schemaContext.d.ts +1 -3
  43. package/dist/cli/schemaContext.js +41 -45
  44. package/dist/client/getClientEngineType.d.ts +0 -1
  45. package/dist/client/getClientEngineType.js +3 -3
  46. package/dist/engine-commands/errorHelpers.js +4 -4
  47. package/dist/engine-commands/formatSchema.js +40 -44
  48. package/dist/engine-commands/getConfig.d.ts +0 -1
  49. package/dist/engine-commands/getConfig.js +11 -11
  50. package/dist/engine-commands/getDmmf.js +8 -8
  51. package/dist/engine-commands/getEngineVersion.js +6 -6
  52. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  53. package/dist/engine-commands/getEnginesInfo.js +7 -7
  54. package/dist/engine-commands/index.js +52 -56
  55. package/dist/engine-commands/lintSchema.js +9 -9
  56. package/dist/engine-commands/mergeSchemas.js +8 -8
  57. package/dist/engine-commands/validate.js +8 -8
  58. package/dist/get-generators/getGenerators.d.ts +0 -1
  59. package/dist/get-generators/getGenerators.js +43 -47
  60. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  61. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  62. package/dist/get-generators/utils/getBinaryPathsByVersion.js +4 -4
  63. package/dist/index.d.ts +0 -4
  64. package/dist/index.js +82 -89
  65. package/dist/resolveBinary.js +7 -7
  66. package/dist/schemaEngineCommands.js +8 -8
  67. package/dist/sendPanic.js +2 -2
  68. package/dist/utils/canPrompt.js +3 -3
  69. package/dist/utils/getVersionFromPackageJson.js +3 -3
  70. package/dist/utils/handlePanic.js +6 -6
  71. package/dist/utils/serializeQueryEngineName.js +2 -2
  72. package/dist/wasm.js +5 -5
  73. package/package.json +14 -15
  74. package/dist/chunk-3FP46GUV.js +0 -471
  75. package/dist/chunk-46ABODUM.js +0 -186
  76. package/dist/chunk-PZMRR772.js +0 -41
  77. package/dist/chunk-T2PM5TKT.js +0 -55
  78. package/dist/dotenvExpand.d.ts +0 -35
  79. package/dist/dotenvExpand.js +0 -25
  80. package/dist/utils/getEnvPaths.d.ts +0 -14
  81. package/dist/utils/getEnvPaths.js +0 -29
  82. package/dist/utils/loadEnvFile.d.ts +0 -10
  83. package/dist/utils/loadEnvFile.js +0 -30
  84. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  85. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -26,16 +26,16 @@ 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_Q64XHKHF_exports = {};
30
- __export(chunk_Q64XHKHF_exports, {
29
+ var chunk_25QIR2OA_exports = {};
30
+ __export(chunk_25QIR2OA_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_Q64XHKHF_exports);
34
+ module.exports = __toCommonJS(chunk_25QIR2OA_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
37
- var import_chunk_RNYJUEDU = require("./chunk-RNYJUEDU.js");
38
- var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.js");
37
+ var import_chunk_2ONERNWE = require("./chunk-2ONERNWE.js");
38
+ var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.js");
39
39
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
40
40
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
41
41
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -58,7 +58,7 @@ ${detailsHeader} ${message}`;
58
58
  }).exhaustive();
59
59
  const errorMessageWithContext = `${constructedErrorMessage}
60
60
  [Context: getDmmf]`;
61
- super((0, import_chunk_RNYJUEDU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_2ONERNWE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
62
  this.name = "GetDmmfError";
63
63
  }
64
64
  };
@@ -70,13 +70,13 @@ async function getDMMF(options) {
70
70
  () => {
71
71
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
72
72
  debug("Triggering a Rust panic...");
73
- import_chunk_XZBDRJF3.prismaSchemaWasm.debug_panic();
73
+ import_chunk_R3RVIOOH.prismaSchemaWasm.debug_panic();
74
74
  }
75
75
  const params = JSON.stringify({
76
76
  prismaSchema: options.datamodel,
77
77
  noColor: Boolean(process.env.NO_COLOR)
78
78
  });
79
- const data = import_chunk_XZBDRJF3.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_R3RVIOOH.prismaSchemaWasm.get_dmmf(params);
80
80
  return data;
81
81
  },
82
82
  (e) => ({
@@ -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_RNYJUEDU_exports = {};
20
- __export(chunk_RNYJUEDU_exports, {
19
+ var chunk_2ONERNWE_exports = {};
20
+ __export(chunk_2ONERNWE_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_RNYJUEDU_exports);
24
- var import_chunk_5MVBCW2Z = require("./chunk-5MVBCW2Z.js");
23
+ module.exports = __toCommonJS(chunk_2ONERNWE_exports);
24
+ var import_chunk_XCUYCN3Z = require("./chunk-XCUYCN3Z.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_5MVBCW2Z.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_XCUYCN3Z.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_3NZLOTZP_exports = {};
20
- __export(chunk_3NZLOTZP_exports, {
19
+ var chunk_3GU5WOTV_exports = {};
20
+ __export(chunk_3GU5WOTV_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_3NZLOTZP_exports);
23
+ module.exports = __toCommonJS(chunk_3GU5WOTV_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.19.0-integration-engines-6-19-0-31-next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23.1",
29
+ version: "6.19.0-integration-next.16",
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",
@@ -59,12 +59,11 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "18.19.76",
62
+ "@types/node": "~20.19.0",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
66
66
  "cli-truncate": "4.0.0",
67
- dotenv: "16.5.0",
68
67
  empathic: "2.0.0",
69
68
  "escape-string-regexp": "5.0.0",
70
69
  execa: "8.0.1",
@@ -110,13 +109,13 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
110
109
  "@prisma/generator-helper": "workspace:*",
111
110
  "@prisma/get-platform": "workspace:*",
112
111
  "@prisma/prisma-schema-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
113
- "@prisma/schema-engine-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
112
+ "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
114
113
  "@prisma/schema-files-loader": "workspace:*",
115
114
  arg: "5.0.2",
116
115
  prompts: "2.4.2"
117
116
  },
118
117
  peerDependencies: {
119
- typescript: ">=5.1.0"
118
+ typescript: ">=5.4.0"
120
119
  },
121
120
  peerDependenciesMeta: {
122
121
  typescript: {
@@ -16,24 +16,20 @@ 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_OAT7ZJED_exports = {};
20
- __export(chunk_OAT7ZJED_exports, {
19
+ var chunk_5FUXDJAN_exports = {};
20
+ __export(chunk_5FUXDJAN_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_OAT7ZJED_exports);
24
+ module.exports = __toCommonJS(chunk_5FUXDJAN_exports);
25
25
  var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
26
26
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
27
- var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
27
+ var import_chunk_5NV3W7KM = require("./chunk-5NV3W7KM.js");
28
28
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
- var import_engines = require("@prisma/engines");
30
29
  var import_fetch_engine = require("@prisma/fetch-engine");
31
30
  var import_get_platform = require("@prisma/get-platform");
32
31
  async function getEngineVersion(enginePath, binaryName) {
33
- if (!binaryName) {
34
- binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
35
- }
36
- enginePath = await (0, import_chunk_FYZCPL2Z.resolveBinary)(binaryName, enginePath);
32
+ enginePath = await (0, import_chunk_5NV3W7KM.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.QueryEngineLibrary, enginePath);
37
33
  const platformInfo = await (0, import_get_platform.getPlatformInfo)();
38
34
  if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
39
35
  (0, import_get_platform.assertNodeAPISupported)();
@@ -26,17 +26,17 @@ 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_FYZCPL2Z_exports = {};
30
- __export(chunk_FYZCPL2Z_exports, {
29
+ var chunk_5NV3W7KM_exports = {};
30
+ __export(chunk_5NV3W7KM_exports, {
31
31
  BinaryType: () => import_fetch_engine.BinaryType,
32
32
  engineEnvVarMap: () => import_fetch_engine.engineEnvVarMap,
33
33
  maybeCopyToTmp: () => maybeCopyToTmp,
34
34
  resolveBinary: () => resolveBinary,
35
35
  safeResolveBinary: () => safeResolveBinary
36
36
  });
37
- module.exports = __toCommonJS(chunk_FYZCPL2Z_exports);
38
- var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
37
+ module.exports = __toCommonJS(chunk_5NV3W7KM_exports);
39
38
  var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
39
+ var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
40
40
  var import_chunk_TWSLDIFL = require("./chunk-TWSLDIFL.js");
41
41
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
42
42
  var import_chunk_5VQNKCKW = require("./chunk-5VQNKCKW.js");
@@ -16,15 +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_HO5HRHFZ_exports = {};
20
- __export(chunk_HO5HRHFZ_exports, {
19
+ var chunk_5W3BSMTH_exports = {};
20
+ __export(chunk_5W3BSMTH_exports, {
21
21
  serializeQueryEngineName: () => serializeQueryEngineName
22
22
  });
23
- module.exports = __toCommonJS(chunk_HO5HRHFZ_exports);
23
+ module.exports = __toCommonJS(chunk_5W3BSMTH_exports);
24
24
  function serializeQueryEngineName(message) {
25
25
  const normalizedName = "query-engine-NORMALIZED";
26
- if (process.env.PRISMA_CLI_QUERY_ENGINE_TYPE === "binary") {
27
- return message.replace(/query-engine binary/g, normalizedName);
28
- }
29
26
  return message.replace(/query-engine-node-api library/g, normalizedName);
30
27
  }
@@ -26,13 +26,13 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_F2OZV76L_exports = {};
30
- __export(chunk_F2OZV76L_exports, {
29
+ var chunk_5XFNC2RY_exports = {};
30
+ __export(chunk_5XFNC2RY_exports, {
31
31
  getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_F2OZV76L_exports);
34
- var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
35
- var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
33
+ module.exports = __toCommonJS(chunk_5XFNC2RY_exports);
34
+ var import_chunk_B22EOFPW = require("./chunk-B22EOFPW.js");
35
+ var import_chunk_VRGMXDRD = require("./chunk-VRGMXDRD.js");
36
36
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
37
  var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
38
  var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
@@ -91,7 +91,7 @@ async function getBinaryPathsByVersion({
91
91
  }
92
92
  const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
93
93
  if (!binaryPathsOverride?.[curr]) {
94
- acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
94
+ acc[(0, import_chunk_VRGMXDRD.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
95
95
  }
96
96
  return acc;
97
97
  }, /* @__PURE__ */ Object.create(null));
@@ -107,7 +107,7 @@ async function getBinaryPathsByVersion({
107
107
  skipDownload
108
108
  };
109
109
  const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
110
- const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
110
+ const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_B22EOFPW.binaryTypeToEngineType);
111
111
  binaryPathsByVersion[currentVersion] = binaryPaths;
112
112
  }
113
113
  if (binaryPathsOverride) {
@@ -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_IE6Y4PMC_exports = {};
20
- __export(chunk_IE6Y4PMC_exports, {
19
+ var chunk_63H7LVQK_exports = {};
20
+ __export(chunk_63H7LVQK_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_IE6Y4PMC_exports);
24
- var import_chunk_TBA7BNPC = require("./chunk-TBA7BNPC.js");
23
+ module.exports = __toCommonJS(chunk_63H7LVQK_exports);
24
+ var import_chunk_XQFPAFQE = require("./chunk-XQFPAFQE.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_TBA7BNPC.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_XQFPAFQE.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,20 +16,20 @@ 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_APZUC47O_exports = {};
20
- __export(chunk_APZUC47O_exports, {
19
+ var chunk_6GH4RAXF_exports = {};
20
+ __export(chunk_6GH4RAXF_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_APZUC47O_exports);
28
- var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.js");
27
+ module.exports = __toCommonJS(chunk_6GH4RAXF_exports);
28
+ var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.js");
29
29
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
30
30
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
31
31
  function lintSchema({ schemas }) {
32
- const lintResult = import_chunk_XZBDRJF3.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_R3RVIOOH.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -26,20 +26,20 @@ 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_NGOAZIZY_exports = {};
30
- __export(chunk_NGOAZIZY_exports, {
29
+ var chunk_6OLUZD6G_exports = {};
30
+ __export(chunk_6OLUZD6G_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_NGOAZIZY_exports);
37
+ module.exports = __toCommonJS(chunk_6OLUZD6G_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_RNYJUEDU = require("./chunk-RNYJUEDU.js");
42
- var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.js");
41
+ var import_chunk_2ONERNWE = require("./chunk-2ONERNWE.js");
42
+ var import_chunk_R3RVIOOH = require("./chunk-R3RVIOOH.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_RNYJUEDU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_2ONERNWE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,16 +89,10 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_XZBDRJF3.prismaSchemaWasm.debug_panic();
92
+ import_chunk_R3RVIOOH.prismaSchemaWasm.debug_panic();
93
93
  }
94
- const params = JSON.stringify({
95
- prismaSchema: options.datamodel,
96
- datasourceOverrides: {},
97
- ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
- env: process.env
99
- });
100
- const data = import_chunk_XZBDRJF3.prismaSchemaWasm.get_config(params);
101
- return data;
94
+ const params = JSON.stringify({ prismaSchema: options.datamodel });
95
+ return import_chunk_R3RVIOOH.prismaSchemaWasm.get_config(params);
102
96
  },
103
97
  (e) => ({
104
98
  type: "wasm-error",
@@ -26,8 +26,8 @@ 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_C2HOY5Z2_exports = {};
30
- __export(chunk_C2HOY5Z2_exports, {
29
+ var chunk_A7LJSXBL_exports = {};
30
+ __export(chunk_A7LJSXBL_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
33
  forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
@@ -42,33 +42,33 @@ __export(chunk_C2HOY5Z2_exports, {
42
42
  processSchemaResult: () => processSchemaResult,
43
43
  skipIndex: () => skipIndex
44
44
  });
45
- module.exports = __toCommonJS(chunk_C2HOY5Z2_exports);
45
+ module.exports = __toCommonJS(chunk_A7LJSXBL_exports);
46
+ var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
47
+ var import_chunk_5XFNC2RY = require("./chunk-5XFNC2RY.js");
48
+ var import_chunk_B22EOFPW = require("./chunk-B22EOFPW.js");
46
49
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
47
50
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
- var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
49
- var import_chunk_F2OZV76L = require("./chunk-F2OZV76L.js");
50
- var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
51
51
  var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
52
52
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
53
53
  var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
54
54
  var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
55
- var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
56
55
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
57
56
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
58
- var import_chunk_NGOAZIZY = require("./chunk-NGOAZIZY.js");
59
- var import_chunk_Q64XHKHF = require("./chunk-Q64XHKHF.js");
60
- var import_chunk_APZUC47O = require("./chunk-APZUC47O.js");
61
- var import_chunk_OQH4MI73 = require("./chunk-OQH4MI73.js");
62
- var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
63
- var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.js");
64
- var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
57
+ var import_chunk_INJO27TY = require("./chunk-INJO27TY.js");
58
+ var import_chunk_NDSHLEAN = require("./chunk-NDSHLEAN.js");
59
+ var import_chunk_SIMRXUXR = require("./chunk-SIMRXUXR.js");
60
+ var import_chunk_FMYHDVAC = require("./chunk-FMYHDVAC.js");
61
+ var import_chunk_I6IIL2R7 = require("./chunk-I6IIL2R7.js");
62
+ var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
65
63
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
64
+ var import_chunk_5NV3W7KM = require("./chunk-5NV3W7KM.js");
66
65
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
67
66
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
68
67
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
69
68
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
70
- var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
71
69
  var import_chunk_BVJP43JS = require("./chunk-BVJP43JS.js");
70
+ var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
71
+ var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
72
72
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
73
73
  var import_path = __toESM(require("path"));
74
74
  var import_debug = __toESM(require("@prisma/debug"));
@@ -102,7 +102,7 @@ var debug = (0, import_debug.default)("prisma:format");
102
102
  async function formatSchema({ schemas }, inputFormattingOptions) {
103
103
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
104
104
  handleFormatPanic(() => {
105
- import_chunk_XZBDRJF3.prismaSchemaWasm.debug_panic();
105
+ import_chunk_I6IIL2R7.prismaSchemaWasm.debug_panic();
106
106
  });
107
107
  }
108
108
  const defaultFormattingOptions = {
@@ -119,10 +119,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
119
119
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
120
120
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
121
121
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
122
- const lintDiagnostics2 = (0, import_chunk_APZUC47O.lintSchema)({ schemas: formattedMultipleSchemas2 });
122
+ const lintDiagnostics2 = (0, import_chunk_SIMRXUXR.lintSchema)({ schemas: formattedMultipleSchemas2 });
123
123
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
124
124
  });
125
- const lintWarnings = (0, import_chunk_APZUC47O.getLintWarningsAsText)(lintDiagnostics);
125
+ const lintWarnings = (0, import_chunk_SIMRXUXR.getLintWarningsAsText)(lintDiagnostics);
126
126
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
127
127
  console.warn(lintWarnings);
128
128
  }
@@ -149,7 +149,7 @@ function handleFormatPanic(tryCb) {
149
149
  }
150
150
  }
151
151
  function formatWasm(schema, documentFormattingParams) {
152
- const formattedSchema = import_chunk_XZBDRJF3.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
152
+ const formattedSchema = import_chunk_I6IIL2R7.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
153
153
  return formattedSchema;
154
154
  }
155
155
  async function loadSchemaContext({
@@ -157,39 +157,37 @@ async function loadSchemaContext({
157
157
  schemaPathFromConfig,
158
158
  schemaEngineConfig,
159
159
  printLoadMessage = true,
160
- ignoreEnvVarErrors = false,
161
160
  allowNull = false,
162
161
  schemaPathArgumentName = "--schema",
163
162
  cwd = process.cwd()
164
163
  } = {}) {
165
164
  let schemaResult = null;
166
165
  if (allowNull) {
167
- schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
166
+ schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
168
167
  argumentName: schemaPathArgumentName,
169
168
  cwd
170
169
  });
171
170
  if (!schemaResult) return null;
172
171
  } else {
173
- schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
172
+ schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
174
173
  argumentName: schemaPathArgumentName,
175
174
  cwd
176
175
  });
177
176
  }
178
- return processSchemaResult({ schemaResult, schemaEngineConfig, printLoadMessage, ignoreEnvVarErrors, cwd });
177
+ return processSchemaResult({ schemaResult, schemaEngineConfig, printLoadMessage, cwd });
179
178
  }
180
179
  async function processSchemaResult({
181
180
  schemaResult,
182
181
  schemaEngineConfig,
183
182
  printLoadMessage = true,
184
- ignoreEnvVarErrors = false,
185
183
  cwd = process.cwd()
186
184
  }) {
187
185
  const loadedFromPathForLogMessages = import_path.default.relative(cwd, schemaResult.schemaPath);
188
186
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
189
187
  if (printLoadMessage) {
190
- (0, import_chunk_EYVG6XQS.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
188
+ (0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
191
189
  }
192
- const configFromPsl = await (0, import_chunk_NGOAZIZY.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
190
+ const configFromPsl = await (0, import_chunk_INJO27TY.getConfig)({ datamodel: schemaResult.schemas });
193
191
  const datasourceFromPsl = configFromPsl.datasources.at(0);
194
192
  const primaryDatasource = (0, import_chunk_XKZ6CBLA.z)(schemaEngineConfig).with({ engine: "classic" }, ({ datasource }) => {
195
193
  const { url, directUrl, shadowDatabaseUrl } = datasource;
@@ -247,11 +245,10 @@ async function getGenerators(options) {
247
245
  binaryPathsOverride,
248
246
  generatorNames = [],
249
247
  postinstall,
250
- noEngine,
251
248
  allowNoModels = true,
252
249
  typedSql
253
250
  } = options;
254
- const schemaContext = !options.schemaContext && schemaPath ? await loadSchemaContext({ schemaPathFromArg: schemaPath, ignoreEnvVarErrors: true }) : options.schemaContext;
251
+ const schemaContext = !options.schemaContext && schemaPath ? await loadSchemaContext({ schemaPathFromArg: schemaPath }) : options.schemaContext;
255
252
  if (!schemaContext) {
256
253
  throw new Error(`no schema provided for getGenerators`);
257
254
  }
@@ -260,7 +257,7 @@ async function getGenerators(options) {
260
257
  }
261
258
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
262
259
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
263
- const dmmf = await (0, import_chunk_Q64XHKHF.getDMMF)({
260
+ const dmmf = await (0, import_chunk_NDSHLEAN.getDMMF)({
264
261
  datamodel: schemaContext.schemaFiles,
265
262
  previewFeatures
266
263
  });
@@ -311,8 +308,7 @@ You need to define \`output\` in the generator block in the schema file.`
311
308
  fromEnvVar: null
312
309
  };
313
310
  }
314
- const datamodel = (0, import_chunk_OQH4MI73.mergeSchemas)({ schemas: schemaContext.schemaFiles });
315
- const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
311
+ const datamodel = (0, import_chunk_FMYHDVAC.mergeSchemas)({ schemas: schemaContext.schemaFiles });
316
312
  const options2 = {
317
313
  datamodel,
318
314
  datasources: schemaContext.datasources,
@@ -324,9 +320,7 @@ You need to define \`output\` in the generator block in the schema file.`
324
320
  version: version2 || import_engines.enginesVersion,
325
321
  // this version makes no sense anymore and should be ignored
326
322
  postinstall,
327
- noEngine,
328
323
  allowNoModels,
329
- envPaths,
330
324
  typedSql
331
325
  };
332
326
  generatorInstance.setOptions(options2);
@@ -378,10 +372,9 @@ generator gen {
378
372
  }
379
373
  }
380
374
  }
381
- const queryEngineBinaryType = (0, import_engines.getCliQueryEngineBinaryType)();
382
- const queryEngineType = (0, import_chunk_RS2R7COT.binaryTypeToEngineType)(queryEngineBinaryType);
375
+ const queryEngineType = (0, import_chunk_B22EOFPW.binaryTypeToEngineType)(import_chunk_5NV3W7KM.BinaryType.QueryEngineLibrary);
383
376
  debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
384
- const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_F2OZV76L.getBinaryPathsByVersion)({
377
+ const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_5XFNC2RY.getBinaryPathsByVersion)({
385
378
  neededVersions,
386
379
  // We're lazily computing the binary target here, to avoid printing the
387
380
  // `Prisma failed to detect the libssl/openssl version to use` warning
@@ -403,7 +396,7 @@ generator gen {
403
396
  debug2({ generatorBinaryPaths });
404
397
  generator.setBinaryPaths(generatorBinaryPaths);
405
398
  if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
406
- const customDmmf = await (0, import_chunk_Q64XHKHF.getDMMF)({
399
+ const customDmmf = await (0, import_chunk_NDSHLEAN.getDMMF)({
407
400
  datamodel: schemaContext.schemaFiles,
408
401
  previewFeatures
409
402
  });
@@ -437,17 +430,6 @@ var oldToNewBinaryTargetsMapping = {
437
430
  async function validateGenerators(generators) {
438
431
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
439
432
  for (const generator of generators) {
440
- if (generator.config.platforms) {
441
- throw new Error(
442
- `The \`platforms\` field on the generator definition is deprecated. Please rename it to \`binaryTargets\`.`
443
- );
444
- }
445
- if (generator.config.pinnedBinaryTargets) {
446
- throw new Error(
447
- `The \`pinnedBinaryTargets\` field on the generator definition is deprecated.
448
- Please use the PRISMA_QUERY_ENGINE_BINARY env var instead to pin the binary target.`
449
- );
450
- }
451
433
  if (generator.binaryTargets) {
452
434
  const binaryTargets2 = generator.binaryTargets && generator.binaryTargets.length > 0 ? generator.binaryTargets : [{ fromEnvVar: null, value: "native" }];
453
435
  const resolvedBinaryTargets = binaryTargets2.flatMap((object) => (0, import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue)(object)).map((p) => p === "native" ? binaryTarget : p);
@@ -524,7 +506,7 @@ function checkUnsupportedDataProxy({
524
506
  }
525
507
  }
526
508
  if (!schemaContext?.primaryDatasource) return;
527
- const url = (0, import_chunk_NGOAZIZY.resolveUrl)((0, import_chunk_NGOAZIZY.getEffectiveUrl)(schemaContext.primaryDatasource));
509
+ const url = (0, import_chunk_INJO27TY.resolveUrl)((0, import_chunk_INJO27TY.getEffectiveUrl)(schemaContext.primaryDatasource));
528
510
  if (url?.startsWith("prisma://")) {
529
511
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
530
512
  }
@@ -26,13 +26,12 @@ 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_WFNB7VRA_exports = {};
30
- __export(chunk_WFNB7VRA_exports, {
29
+ var chunk_ARC7TW3L_exports = {};
30
+ __export(chunk_ARC7TW3L_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
33
+ module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
- var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
36
35
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
37
36
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
37
  var import_path = __toESM(require("path"));
@@ -45,16 +44,7 @@ function getGeneratorSuccessMessage(generator, time) {
45
44
  function formatVersion(generator) {
46
45
  const version = generator.manifest?.version;
47
46
  if (generator.getProvider() === "prisma-client-js") {
48
- const engineType = (0, import_chunk_ERSH2BQA.getClientEngineType)(generator.config);
49
- let engineHint = "";
50
- if (generator.options?.noEngine) {
51
- engineHint = ", engine=none";
52
- } else if (engineType === "binary") {
53
- engineHint = ", engine=binary";
54
- } else if (engineType === "library") {
55
- engineHint = "";
56
- }
57
- return `v${version ?? "?.?.?"}${engineHint}`;
47
+ return `v${version ?? "?.?.?"}`;
58
48
  }
59
49
  return version;
60
50
  }
@@ -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_RS2R7COT_exports = {};
20
- __export(chunk_RS2R7COT_exports, {
19
+ var chunk_B22EOFPW_exports = {};
20
+ __export(chunk_B22EOFPW_exports, {
21
21
  binaryTypeToEngineType: () => binaryTypeToEngineType
22
22
  });
23
- module.exports = __toCommonJS(chunk_RS2R7COT_exports);
23
+ module.exports = __toCommonJS(chunk_B22EOFPW_exports);
24
24
  var import_fetch_engine = require("@prisma/fetch-engine");
25
25
  function binaryTypeToEngineType(binaryType) {
26
26
  if (binaryType === import_fetch_engine.BinaryType.SchemaEngineBinary) {
@@ -29,8 +29,5 @@ function binaryTypeToEngineType(binaryType) {
29
29
  if (binaryType === import_fetch_engine.BinaryType.QueryEngineLibrary) {
30
30
  return "libqueryEngine";
31
31
  }
32
- if (binaryType === import_fetch_engine.BinaryType.QueryEngineBinary) {
33
- return "queryEngine";
34
- }
35
32
  throw new Error(`Could not convert binary type ${binaryType}`);
36
33
  }