@prisma/internals 6.19.0-integration-feat-remove-library-engine.2 → 6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1

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 (108) hide show
  1. package/dist/{chunk-6QTN4DDB.js → chunk-46ABODUM.js} +21 -6
  2. package/dist/{chunk-5CBDEFHE.js → chunk-46MGVXWZ.js} +5 -5
  3. package/dist/{chunk-RXERQWBD.js → chunk-47SAWGTD.js} +8 -8
  4. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  5. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  6. package/dist/{chunk-N2IUVVYJ.js → chunk-4L35EYLD.js} +66 -38
  7. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  8. package/dist/{chunk-AOJ2N25Z.js → chunk-6MRKNTJD.js} +8 -8
  9. package/dist/chunk-6TTRTZXU.js +37 -0
  10. package/dist/{chunk-NNYJV66S.js → chunk-72WT7DK3.js} +5 -5
  11. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  12. package/dist/{chunk-H6PPJ5PX.js → chunk-7QC5VORA.js} +7 -7
  13. package/dist/{chunk-D7L3VT6R.js → chunk-AMETUICR.js} +8 -8
  14. package/dist/{chunk-33K2EQQZ.js → chunk-AX5N26KG.js} +10 -10
  15. package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
  16. package/dist/{chunk-EBJBIVXN.js → chunk-C4DCOB35.js} +5 -5
  17. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  18. package/dist/{chunk-NVSVTFPX.js → chunk-DRMVYKKF.js} +5 -5
  19. package/dist/chunk-DZYINYAA.js +68 -0
  20. package/dist/{chunk-UMB3Y33W.js → chunk-ECMR3OBL.js} +7 -7
  21. package/dist/chunk-ERSH2BQA.js +58 -0
  22. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  23. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  24. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  25. package/dist/{chunk-NPMHIQNM.js → chunk-FXUEE7XX.js} +8 -8
  26. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  27. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  28. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  29. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  30. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  31. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  32. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  33. package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  34. package/dist/{chunk-MUZJUPDX.js → chunk-L5ZWEYO7.js} +7 -7
  35. package/dist/{chunk-BZV6PVWV.js → chunk-MEMPRTWR.js} +8 -8
  36. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  37. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  38. package/dist/{chunk-NPSVUZBN.js → chunk-PPB7JLDO.js} +5 -5
  39. package/dist/{chunk-FURGECAD.js → chunk-PZMRR772.js} +6 -6
  40. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  41. package/dist/{chunk-PTRXLDT7.js → chunk-SVOYDVK6.js} +8 -8
  42. package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
  43. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  44. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  45. package/dist/{chunk-IU77SCOB.js → chunk-UQUWZJVN.js} +9 -9
  46. package/dist/{chunk-GDTMDZJA.js → chunk-VMKOB234.js} +8 -8
  47. package/dist/{chunk-OENCCIMK.js → chunk-W7LDAWJF.js} +7 -7
  48. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  49. package/dist/{chunk-7NFX7KFI.js → chunk-YQECHDTJ.js} +5 -5
  50. package/dist/{chunk-BUB5LU5N.js → chunk-ZBUC6PZX.js} +5 -5
  51. package/dist/{chunk-Z2IPE4NA.js → chunk-ZCMRWYQK.js} +66 -38
  52. package/dist/{chunk-ZVTQSH5K.js → chunk-ZY7BAIKC.js} +5 -5
  53. package/dist/cli/checkUnsupportedDataProxy.js +54 -52
  54. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +54 -52
  55. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  56. package/dist/cli/getSchema.d.ts +15 -1
  57. package/dist/cli/getSchema.js +5 -4
  58. package/dist/cli/hashes.js +4 -4
  59. package/dist/cli/schemaContext.js +54 -52
  60. package/dist/client/getClientEngineType.d.ts +7 -0
  61. package/dist/client/getClientEngineType.js +26 -0
  62. package/dist/engine-commands/errorHelpers.js +4 -4
  63. package/dist/engine-commands/formatSchema.js +53 -51
  64. package/dist/engine-commands/getConfig.js +10 -10
  65. package/dist/engine-commands/getDmmf.js +7 -7
  66. package/dist/engine-commands/getEngineVersion.js +9 -6
  67. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  68. package/dist/engine-commands/getEnginesInfo.js +9 -7
  69. package/dist/engine-commands/index.js +65 -63
  70. package/dist/engine-commands/lintSchema.js +8 -8
  71. package/dist/engine-commands/mergeSchemas.js +7 -7
  72. package/dist/engine-commands/validate.js +7 -7
  73. package/dist/errorReporting.js +6 -6
  74. package/dist/get-generators/getGenerators.d.ts +1 -0
  75. package/dist/get-generators/getGenerators.js +56 -54
  76. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  77. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  78. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  79. package/dist/getPackedPackage.js +3 -4
  80. package/dist/highlight/highlight.js +5 -5
  81. package/dist/index.d.ts +4 -1
  82. package/dist/index.js +109 -102
  83. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  84. package/dist/resolveBinary.js +7 -8
  85. package/dist/schemaEngineCommands.js +8 -9
  86. package/dist/sendPanic.js +4 -4
  87. package/dist/utils/canPrompt.js +3 -3
  88. package/dist/utils/cloudflareD1.js +3 -3
  89. package/dist/utils/drawBox.js +2 -2
  90. package/dist/utils/fs-functional.js +10 -10
  91. package/dist/utils/fs-utils.js +8 -8
  92. package/dist/utils/getEnvPaths.d.ts +1 -1
  93. package/dist/utils/getEnvPaths.js +3 -2
  94. package/dist/utils/getVersionFromPackageJson.js +3 -3
  95. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  96. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  97. package/dist/utils/handlePanic.js +8 -8
  98. package/dist/utils/link.js +2 -2
  99. package/dist/utils/load.d.ts +6 -0
  100. package/dist/utils/load.js +28 -0
  101. package/dist/utils/loadEnvFile.d.ts +1 -1
  102. package/dist/utils/loadEnvFile.js +4 -3
  103. package/dist/utils/missingDatasource.js +5 -5
  104. package/dist/utils/missingGeneratorMessage.js +7 -7
  105. package/dist/utils/serializeQueryEngineName.js +2 -2
  106. package/dist/wasm.js +5 -5
  107. package/package.json +15 -15
  108. package/dist/chunk-DYV47NUW.js +0 -796
@@ -16,20 +16,33 @@ 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_H5STSTVK_exports = {};
20
- __export(chunk_H5STSTVK_exports, {
19
+ var chunk_OAT7ZJED_exports = {};
20
+ __export(chunk_OAT7ZJED_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_H5STSTVK_exports);
24
+ module.exports = __toCommonJS(chunk_OAT7ZJED_exports);
25
+ var import_chunk_6TTRTZXU = require("./chunk-6TTRTZXU.js");
25
26
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
26
- var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
27
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
27
28
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
+ var import_engines = require("@prisma/engines");
28
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
+ var import_get_platform = require("@prisma/get-platform");
29
32
  async function getEngineVersion(enginePath, binaryName) {
30
- enginePath = await (0, import_chunk_HNRMSI3R.resolveBinary)(binaryName ?? import_fetch_engine.BinaryType.SchemaEngineBinary, enginePath);
31
- const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
32
- return stdout;
33
+ if (!binaryName) {
34
+ binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
35
+ }
36
+ enginePath = await (0, import_chunk_FYZCPL2Z.resolveBinary)(binaryName, enginePath);
37
+ const platformInfo = await (0, import_get_platform.getPlatformInfo)();
38
+ if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
39
+ (0, import_get_platform.assertNodeAPISupported)();
40
+ const QE = (0, import_chunk_6TTRTZXU.loadLibrary)(enginePath, platformInfo);
41
+ return `${import_fetch_engine.BinaryType.QueryEngineLibrary} ${QE.version().commit}`;
42
+ } else {
43
+ const { stdout } = await (0, import_chunk_JOIHHXR6.execa)(enginePath, ["--version"]);
44
+ return stdout;
45
+ }
33
46
  }
34
47
  function safeGetEngineVersion(enginePath, binaryName) {
35
48
  return (0, import_chunk_5DBOS77Y.tryCatch2)(
@@ -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_NPSVUZBN_exports = {};
20
- __export(chunk_NPSVUZBN_exports, {
19
+ var chunk_PPB7JLDO_exports = {};
20
+ __export(chunk_PPB7JLDO_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_NPSVUZBN_exports);
28
- var import_chunk_7NFX7KFI = require("./chunk-7NFX7KFI.js");
27
+ module.exports = __toCommonJS(chunk_PPB7JLDO_exports);
28
+ var import_chunk_ZY7BAIKC = require("./chunk-ZY7BAIKC.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_7NFX7KFI.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_ZY7BAIKC.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -16,14 +16,14 @@ 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_FURGECAD_exports = {};
20
- __export(chunk_FURGECAD_exports, {
19
+ var chunk_PZMRR772_exports = {};
20
+ __export(chunk_PZMRR772_exports, {
21
21
  loadEnvFile: () => loadEnvFile
22
22
  });
23
- module.exports = __toCommonJS(chunk_FURGECAD_exports);
24
- var import_chunk_6QTN4DDB = require("./chunk-6QTN4DDB.js");
23
+ module.exports = __toCommonJS(chunk_PZMRR772_exports);
24
+ var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
25
25
  var import_chunk_3FP46GUV = require("./chunk-3FP46GUV.js");
26
- function loadEnvFile({
26
+ async function loadEnvFile({
27
27
  schemaPath,
28
28
  config,
29
29
  printMessage = false
@@ -33,7 +33,7 @@ function loadEnvFile({
33
33
  `);
34
34
  return;
35
35
  }
36
- const envPaths = (0, import_chunk_6QTN4DDB.getEnvPaths)(schemaPath);
36
+ const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaPath);
37
37
  const envData = (0, import_chunk_3FP46GUV.tryLoadEnvs)(envPaths, { conflictCheck: "error" });
38
38
  if (printMessage && envData && envData.message) {
39
39
  process.stderr.write(envData.message + "\n");
@@ -16,15 +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_5I4ERIIY_exports = {};
20
- __export(chunk_5I4ERIIY_exports, {
19
+ var chunk_RS2R7COT_exports = {};
20
+ __export(chunk_RS2R7COT_exports, {
21
21
  binaryTypeToEngineType: () => binaryTypeToEngineType
22
22
  });
23
- module.exports = __toCommonJS(chunk_5I4ERIIY_exports);
23
+ module.exports = __toCommonJS(chunk_RS2R7COT_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) {
27
27
  return "schemaEngine";
28
28
  }
29
+ if (binaryType === import_fetch_engine.BinaryType.QueryEngineLibrary) {
30
+ return "libqueryEngine";
31
+ }
32
+ if (binaryType === import_fetch_engine.BinaryType.QueryEngineBinary) {
33
+ return "queryEngine";
34
+ }
29
35
  throw new Error(`Could not convert binary type ${binaryType}`);
30
36
  }
@@ -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_PTRXLDT7_exports = {};
30
- __export(chunk_PTRXLDT7_exports, {
29
+ var chunk_SVOYDVK6_exports = {};
30
+ __export(chunk_SVOYDVK6_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_PTRXLDT7_exports);
34
+ module.exports = __toCommonJS(chunk_SVOYDVK6_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_5CBDEFHE = require("./chunk-5CBDEFHE.js");
38
- var import_chunk_7NFX7KFI = require("./chunk-7NFX7KFI.js");
37
+ var import_chunk_C4DCOB35 = require("./chunk-C4DCOB35.js");
38
+ var import_chunk_ZY7BAIKC = require("./chunk-ZY7BAIKC.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_5CBDEFHE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
61
+ super((0, import_chunk_C4DCOB35.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_7NFX7KFI.prismaSchemaWasm.debug_panic();
73
+ import_chunk_ZY7BAIKC.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_7NFX7KFI.prismaSchemaWasm.get_dmmf(params);
79
+ const data = import_chunk_ZY7BAIKC.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_VNIE2AZB_exports = {};
20
- __export(chunk_VNIE2AZB_exports, {
19
+ var chunk_TQCLUNM2_exports = {};
20
+ __export(chunk_TQCLUNM2_exports, {
21
21
  highlightDatamodel: () => highlightDatamodel,
22
22
  highlightSql: () => highlightSql,
23
23
  highlightTS: () => highlightTS
24
24
  });
25
- module.exports = __toCommonJS(chunk_VNIE2AZB_exports);
26
- var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
25
+ module.exports = __toCommonJS(chunk_TQCLUNM2_exports);
27
26
  var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.js");
27
+ var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
28
28
  var import_chunk_HPVMQFIY = require("./chunk-HPVMQFIY.js");
29
29
  function highlightDatamodel(str) {
30
30
  return highlight(str, import_chunk_OIVPX3BR.dml);
@@ -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_MXAUURHG_exports = {};
30
- __export(chunk_MXAUURHG_exports, {
29
+ var chunk_TQFONRJP_exports = {};
30
+ __export(chunk_TQFONRJP_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists,
32
32
  fs_utils_exports: () => fs_utils_exports,
33
33
  getFilesInDir: () => getFilesInDir,
@@ -36,9 +36,9 @@ __export(chunk_MXAUURHG_exports, {
36
36
  removeEmptyDirs: () => removeEmptyDirs,
37
37
  writeFile: () => writeFile
38
38
  });
39
- module.exports = __toCommonJS(chunk_MXAUURHG_exports);
39
+ module.exports = __toCommonJS(chunk_TQFONRJP_exports);
40
40
  var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
41
- var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
41
+ var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
42
42
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
43
43
  var import_promises = __toESM(require("fs/promises"));
44
44
  var import_path = __toESM(require("path"));
@@ -51,7 +51,7 @@ var fs_utils_exports = {};
51
51
  removeEmptyDirs: () => removeEmptyDirs,
52
52
  writeFile: () => writeFile
53
53
  });
54
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_globby)());
54
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
55
55
  function createDirIfNotExists(dir) {
56
56
  return import_promises.default.mkdir(dir, { recursive: true });
57
57
  }
@@ -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_WJKBKH3Y_exports = {};
20
- __export(chunk_WJKBKH3Y_exports, {
19
+ var chunk_UHI6VYFX_exports = {};
20
+ __export(chunk_UHI6VYFX_exports, {
21
21
  SchemaEngineExitCode: () => SchemaEngineExitCode,
22
22
  canConnectToDatabase: () => canConnectToDatabase,
23
23
  createDatabase: () => createDatabase,
24
24
  dropDatabase: () => dropDatabase,
25
25
  execaCommand: () => execaCommand
26
26
  });
27
- module.exports = __toCommonJS(chunk_WJKBKH3Y_exports);
27
+ module.exports = __toCommonJS(chunk_UHI6VYFX_exports);
28
28
  var import_chunk_JOIHHXR6 = require("./chunk-JOIHHXR6.js");
29
- var import_chunk_HNRMSI3R = require("./chunk-HNRMSI3R.js");
29
+ var import_chunk_FYZCPL2Z = require("./chunk-FYZCPL2Z.js");
30
30
  var import_fetch_engine = require("@prisma/fetch-engine");
31
31
  var SchemaEngineExitCode = /* @__PURE__ */ ((SchemaEngineExitCode2) => {
32
32
  SchemaEngineExitCode2[SchemaEngineExitCode2["Success"] = 0] = "Success";
@@ -139,7 +139,7 @@ async function execaCommand({
139
139
  schemaEnginePath,
140
140
  engineCommandName
141
141
  }) {
142
- schemaEnginePath = schemaEnginePath || await (0, import_chunk_HNRMSI3R.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
142
+ schemaEnginePath = schemaEnginePath || await (0, import_chunk_FYZCPL2Z.resolveBinary)(import_fetch_engine.BinaryType.SchemaEngineBinary);
143
143
  try {
144
144
  return await (0, import_chunk_JOIHHXR6.execa)(schemaEnginePath, ["cli", "--datasource", connectionString, engineCommandName], {
145
145
  cwd,
@@ -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_IU77SCOB_exports = {};
30
- __export(chunk_IU77SCOB_exports, {
29
+ var chunk_UQUWZJVN_exports = {};
30
+ __export(chunk_UQUWZJVN_exports, {
31
31
  handlePanic: () => handlePanic
32
32
  });
33
- module.exports = __toCommonJS(chunk_IU77SCOB_exports);
34
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
33
+ module.exports = __toCommonJS(chunk_UQUWZJVN_exports);
34
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
35
35
  var import_chunk_7IKUTPWQ = require("./chunk-7IKUTPWQ.js");
36
- var import_chunk_R3J2O23S = require("./chunk-R3J2O23S.js");
37
- var import_chunk_BUQN4WLU = require("./chunk-BUQN4WLU.js");
36
+ var import_chunk_FCYHZHVW = require("./chunk-FCYHZHVW.js");
37
+ var import_chunk_HFFWZTVM = require("./chunk-HFFWZTVM.js");
38
38
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
39
39
  var import_prompts = __toESM(require("prompts"));
40
40
  async function handlePanic(args) {
41
- if (!(0, import_chunk_R3J2O23S.canPrompt)()) {
41
+ if (!(0, import_chunk_FCYHZHVW.canPrompt)()) {
42
42
  throw args.error;
43
43
  }
44
44
  await panicDialog(args);
@@ -56,7 +56,7 @@ ${(0, import_chunk_PG5FDKSF.red)(errorMessage)}
56
56
 
57
57
  ${(0, import_chunk_PG5FDKSF.bold)("Please help us improve Prisma by submitting an error report.")}
58
58
  ${(0, import_chunk_PG5FDKSF.bold)("Error reports never contain personal or other sensitive information.")}
59
- ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/telemetry")}`)}
59
+ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/telemetry")}`)}
60
60
  `);
61
61
  const { value: shouldSubmitReport } = await (0, import_prompts.default)({
62
62
  type: "select",
@@ -79,7 +79,7 @@ ${(0, import_chunk_PG5FDKSF.dim)(`Learn more: ${(0, import_chunk_3WXUQZS7.link)(
79
79
  if (shouldSubmitReport) {
80
80
  try {
81
81
  console.log("Submitting...");
82
- const reportId = await (0, import_chunk_BUQN4WLU.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
82
+ const reportId = await (0, import_chunk_HFFWZTVM.sendPanic)({ error, cliVersion, enginesVersion, getDatabaseVersionSafe });
83
83
  console.log(`
84
84
  ${(0, import_chunk_PG5FDKSF.bold)(`We successfully received the error report id: ${reportId}`)}`);
85
85
  console.log(`
@@ -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_GDTMDZJA_exports = {};
20
- __export(chunk_GDTMDZJA_exports, {
19
+ var chunk_VMKOB234_exports = {};
20
+ __export(chunk_VMKOB234_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_GDTMDZJA_exports);
23
+ module.exports = __toCommonJS(chunk_VMKOB234_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-feat-remove-library-engine.2",
29
+ version: "6.19.0-integration-engines-6-19-0-30-push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368.1",
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,7 +59,7 @@ 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": "~20.19.24",
62
+ "@types/node": "18.19.76",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
@@ -109,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
109
109
  "@prisma/generator": "workspace:*",
110
110
  "@prisma/generator-helper": "workspace:*",
111
111
  "@prisma/get-platform": "workspace:*",
112
- "@prisma/prisma-schema-wasm": "6.19.0-29.next-ac95b5893b3c05bf39a2431fc1a748dd46152ab4",
113
- "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-30.push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368",
113
+ "@prisma/schema-engine-wasm": "6.19.0-30.push-otuqumlrponx-17ff4a7bd0bffdf0b40b58a399869660f7f0e368",
114
114
  "@prisma/schema-files-loader": "workspace:*",
115
115
  arg: "5.0.2",
116
116
  prompts: "2.4.2"
117
117
  },
118
118
  peerDependencies: {
119
- typescript: ">=5.4.0"
119
+ typescript: ">=5.1.0"
120
120
  },
121
121
  peerDependenciesMeta: {
122
122
  typescript: {
@@ -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_OENCCIMK_exports = {};
30
- __export(chunk_OENCCIMK_exports, {
29
+ var chunk_W7LDAWJF_exports = {};
30
+ __export(chunk_W7LDAWJF_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_OENCCIMK_exports);
34
+ module.exports = __toCommonJS(chunk_W7LDAWJF_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_5CBDEFHE = require("./chunk-5CBDEFHE.js");
39
- var import_chunk_7NFX7KFI = require("./chunk-7NFX7KFI.js");
38
+ var import_chunk_46MGVXWZ = require("./chunk-46MGVXWZ.js");
39
+ var import_chunk_YQECHDTJ = require("./chunk-YQECHDTJ.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_5CBDEFHE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_46MGVXWZ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_7NFX7KFI.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_YQECHDTJ.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",
@@ -26,12 +26,13 @@ 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_ARC7TW3L_exports = {};
30
- __export(chunk_ARC7TW3L_exports, {
29
+ var chunk_WFNB7VRA_exports = {};
30
+ __export(chunk_WFNB7VRA_exports, {
31
31
  getGeneratorSuccessMessage: () => getGeneratorSuccessMessage
32
32
  });
33
- module.exports = __toCommonJS(chunk_ARC7TW3L_exports);
33
+ module.exports = __toCommonJS(chunk_WFNB7VRA_exports);
34
34
  var import_chunk_XYCIH36R = require("./chunk-XYCIH36R.js");
35
+ var import_chunk_ERSH2BQA = require("./chunk-ERSH2BQA.js");
35
36
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
37
38
  var import_path = __toESM(require("path"));
@@ -44,7 +45,16 @@ function getGeneratorSuccessMessage(generator, time) {
44
45
  function formatVersion(generator) {
45
46
  const version = generator.manifest?.version;
46
47
  if (generator.getProvider() === "prisma-client-js") {
47
- return `v${version ?? "?.?.?"}`;
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}`;
48
58
  }
49
59
  return version;
50
60
  }
@@ -26,15 +26,15 @@ 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_7NFX7KFI_exports = {};
30
- __export(chunk_7NFX7KFI_exports, {
29
+ var chunk_YQECHDTJ_exports = {};
30
+ __export(chunk_YQECHDTJ_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  schemaEngineWasmVersion: () => schemaEngineWasmVersion,
34
34
  wasm_exports: () => wasm_exports
35
35
  });
36
- module.exports = __toCommonJS(chunk_7NFX7KFI_exports);
37
- var import_chunk_GDTMDZJA = require("./chunk-GDTMDZJA.js");
36
+ module.exports = __toCommonJS(chunk_YQECHDTJ_exports);
37
+ var import_chunk_VMKOB234 = require("./chunk-VMKOB234.js");
38
38
  var import_chunk_WXRVYSYN = require("./chunk-WXRVYSYN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -46,6 +46,6 @@ var wasm_exports = {};
46
46
  });
47
47
  var globalWithPanicRegistry = globalThis;
48
48
  globalWithPanicRegistry.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_WXRVYSYN.WasmPanicRegistry();
49
- var { dependencies } = (0, import_chunk_GDTMDZJA.require_package)();
49
+ var { dependencies } = (0, import_chunk_VMKOB234.require_package)();
50
50
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
51
51
  var schemaEngineWasmVersion = dependencies["@prisma/schema-engine-wasm"];
@@ -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_BUB5LU5N_exports = {};
20
- __export(chunk_BUB5LU5N_exports, {
19
+ var chunk_ZBUC6PZX_exports = {};
20
+ __export(chunk_ZBUC6PZX_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_BUB5LU5N_exports);
24
- var import_chunk_GDTMDZJA = require("./chunk-GDTMDZJA.js");
25
- var packageJson = (0, import_chunk_GDTMDZJA.require_package)();
23
+ module.exports = __toCommonJS(chunk_ZBUC6PZX_exports);
24
+ var import_chunk_VMKOB234 = require("./chunk-VMKOB234.js");
25
+ var packageJson = (0, import_chunk_VMKOB234.require_package)();
26
26
  var version = packageJson.version;