@prisma/internals 6.6.0-integration-engines-6-6-0-17-refactor-migrate-to-new-interface-a65ab979bf81a122861f2a68231321419d7fb303.1 → 6.6.0-integration-refactor-schema-path-less-migrate-class.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 (78) hide show
  1. package/dist/{chunk-PCBIQV5K.js → chunk-2SU4K35O.js} +174 -143
  2. package/dist/{chunk-N4FY6SYP.js → chunk-46YCXISN.js} +38 -67
  3. package/dist/{chunk-KKVB4S3E.js → chunk-4AC2JUM4.js} +23 -23
  4. package/dist/{chunk-7MD6344A.js → chunk-5DBOS77Y.js} +3 -5
  5. package/dist/{chunk-RBPRJFZN.js → chunk-6IZLN4Z5.js} +174 -143
  6. package/dist/{chunk-XARAHSDW.js → chunk-6RMP4L37.js} +14 -14
  7. package/dist/{chunk-DODIJPCS.js → chunk-AOQIUJT4.js} +16 -9
  8. package/dist/{chunk-TSJICM5S.js → chunk-CRVLHWC5.js} +5 -5
  9. package/dist/{chunk-DL7YQI4D.js → chunk-DZXCMG6O.js} +15 -15
  10. package/dist/{chunk-ABGGXGOC.js → chunk-EOWYER24.js} +5 -5
  11. package/dist/{chunk-3ERIN7PH.js → chunk-HMRJXDNO.js} +5 -5
  12. package/dist/{chunk-SQM6DJFL.js → chunk-JJBDZ3V4.js} +14 -14
  13. package/dist/{chunk-KTBNIQ7N.js → chunk-JMIU2AUX.js} +5 -5
  14. package/dist/{chunk-KOMGNJLE.js → chunk-LG5IW4IV.js} +6 -6
  15. package/dist/{chunk-Q22BLLK3.js → chunk-MUPZUVSI.js} +18 -12
  16. package/dist/{chunk-HRNPS5ND.js → chunk-OCPELPFI.js} +5 -5
  17. package/dist/{chunk-BGFWFIPR.js → chunk-OEXSUUW2.js} +5 -5
  18. package/dist/{chunk-PJHAB6NL.js → chunk-OIEQY7MB.js} +5 -5
  19. package/dist/{chunk-PJTR7UPQ.js → chunk-OZJAY6HP.js} +15 -15
  20. package/dist/{chunk-ARTAC6EG.js → chunk-Q2GXXFZU.js} +5 -5
  21. package/dist/{chunk-BGYLXBAN.js → chunk-QY2YJCMB.js} +5 -5
  22. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  23. package/dist/{chunk-TYIHFBAY.js → chunk-SNY3IPJ5.js} +5 -5
  24. package/dist/{chunk-XLGODPZH.js → chunk-UCHI3M2O.js} +7 -7
  25. package/dist/{chunk-K463GPQP.js → chunk-UFYNZD7Y.js} +23 -23
  26. package/dist/{chunk-TQCLUNM2.js → chunk-VNIE2AZB.js} +4 -4
  27. package/dist/{chunk-TATYN3T2.js → chunk-VNXTMX7Q.js} +26 -26
  28. package/dist/{chunk-2MWIMEFK.js → chunk-WO5ENZU5.js} +7 -7
  29. package/dist/{chunk-FAILNIEQ.js → chunk-X5YSMVVH.js} +5 -5
  30. package/dist/{chunk-VLCHHD5W.js → chunk-XKNXU2N3.js} +7 -7
  31. package/dist/{chunk-6TXVGFQA.js → chunk-Y4PCD4YX.js} +9 -9
  32. package/dist/{chunk-WCEODSXD.js → chunk-YG7D272D.js} +5 -5
  33. package/dist/{chunk-U2VNMXTK.js → chunk-YK5AZ3CV.js} +38 -67
  34. package/dist/cli/checkUnsupportedDataProxy.js +33 -34
  35. package/dist/cli/getSchema.js +37 -38
  36. package/dist/cli/hashes.js +33 -34
  37. package/dist/cli/schemaContext.d.ts +57 -0
  38. package/dist/cli/schemaContext.js +135 -0
  39. package/dist/cli/utils.js +4 -4
  40. package/dist/engine-commands/errorHelpers.js +4 -4
  41. package/dist/engine-commands/formatSchema.js +32 -33
  42. package/dist/engine-commands/getConfig.d.ts +0 -4
  43. package/dist/engine-commands/getConfig.js +13 -13
  44. package/dist/engine-commands/getDmmf.d.ts +1 -5
  45. package/dist/engine-commands/getDmmf.js +10 -10
  46. package/dist/engine-commands/getEngineVersion.js +5 -5
  47. package/dist/engine-commands/getEnginesMetaInfo.js +7 -7
  48. package/dist/engine-commands/index.js +43 -44
  49. package/dist/engine-commands/lintSchema.js +8 -8
  50. package/dist/engine-commands/mergeSchemas.js +10 -10
  51. package/dist/engine-commands/queryEngineCommons.js +7 -7
  52. package/dist/engine-commands/validate.js +10 -10
  53. package/dist/get-generators/generatorResolvers/generatorResolvers.js +32 -33
  54. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +32 -33
  55. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +33 -34
  56. package/dist/get-generators/getGenerators.d.ts +7 -3
  57. package/dist/get-generators/getGenerators.js +35 -36
  58. package/dist/highlight/highlight.js +5 -5
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.js +81 -80
  61. package/dist/resolveBinary.js +7 -7
  62. package/dist/schemaEngineCommands.js +8 -8
  63. package/dist/sendPanic.js +32 -33
  64. package/dist/utils/binaryTargetRegex.js +2 -2
  65. package/dist/utils/canPrompt.js +3 -3
  66. package/dist/utils/extractPreviewFeatures.d.ts +2 -2
  67. package/dist/utils/extractPreviewFeatures.js +2 -2
  68. package/dist/utils/getEnvPaths.js +32 -33
  69. package/dist/utils/getVersionFromPackageJson.js +3 -3
  70. package/dist/utils/handlePanic.js +32 -33
  71. package/dist/utils/loadEnvFile.js +32 -33
  72. package/dist/utils/missingDatasource.js +4 -4
  73. package/dist/utils/missingGeneratorMessage.js +6 -6
  74. package/dist/wasm.js +4 -4
  75. package/package.json +11 -11
  76. package/dist/chunk-IPKE37QC.js +0 -25
  77. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
  78. package/dist/get-generators/utils/check-feature-flags/checkFeatureFlags.js +0 -25
@@ -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_BGYLXBAN_exports = {};
20
- __export(chunk_BGYLXBAN_exports, {
19
+ var chunk_QY2YJCMB_exports = {};
20
+ __export(chunk_QY2YJCMB_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_BGYLXBAN_exports);
27
+ module.exports = __toCommonJS(chunk_QY2YJCMB_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_ARTAC6EG = require("./chunk-ARTAC6EG.js");
29
+ var import_chunk_Q2GXXFZU = require("./chunk-Q2GXXFZU.js");
30
30
  var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_ARTAC6EG.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_Q2GXXFZU.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -26,13 +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_FCYHZHVW_exports = {};
30
- __export(chunk_FCYHZHVW_exports, {
29
+ var chunk_R3J2O23S_exports = {};
30
+ __export(chunk_R3J2O23S_exports, {
31
31
  canPrompt: () => canPrompt
32
32
  });
33
- module.exports = __toCommonJS(chunk_FCYHZHVW_exports);
34
- var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
33
+ module.exports = __toCommonJS(chunk_R3J2O23S_exports);
35
34
  var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
35
+ var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
36
36
  var import_prompts = __toESM(require("prompts"));
37
37
  var canPrompt = () => {
38
38
  const injectedCount = import_prompts.default._injected?.length;
@@ -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_TYIHFBAY_exports = {};
20
- __export(chunk_TYIHFBAY_exports, {
19
+ var chunk_SNY3IPJ5_exports = {};
20
+ __export(chunk_SNY3IPJ5_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_TYIHFBAY_exports);
24
- var import_chunk_PJHAB6NL = require("./chunk-PJHAB6NL.js");
23
+ module.exports = __toCommonJS(chunk_SNY3IPJ5_exports);
24
+ var import_chunk_X5YSMVVH = require("./chunk-X5YSMVVH.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_PJHAB6NL.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_X5YSMVVH.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,16 +16,16 @@ 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_XLGODPZH_exports = {};
20
- __export(chunk_XLGODPZH_exports, {
19
+ var chunk_UCHI3M2O_exports = {};
20
+ __export(chunk_UCHI3M2O_exports, {
21
21
  getEngineVersion: () => getEngineVersion,
22
22
  safeGetEngineVersion: () => safeGetEngineVersion
23
23
  });
24
- module.exports = __toCommonJS(chunk_XLGODPZH_exports);
24
+ module.exports = __toCommonJS(chunk_UCHI3M2O_exports);
25
25
  var import_chunk_I7IEEULS = require("./chunk-I7IEEULS.js");
26
26
  var import_chunk_7XNZDY2V = require("./chunk-7XNZDY2V.js");
27
- var import_chunk_3ERIN7PH = require("./chunk-3ERIN7PH.js");
28
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
27
+ var import_chunk_HMRJXDNO = require("./chunk-HMRJXDNO.js");
28
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
29
29
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
30
30
  var import_engines = require("@prisma/engines");
31
31
  var import_fetch_engine = require("@prisma/fetch-engine");
@@ -35,7 +35,7 @@ async function getEngineVersion(enginePath, binaryName) {
35
35
  if (!binaryName) {
36
36
  binaryName = (0, import_engines.getCliQueryEngineBinaryType)();
37
37
  }
38
- enginePath = await (0, import_chunk_3ERIN7PH.resolveBinary)(binaryName, enginePath);
38
+ enginePath = await (0, import_chunk_HMRJXDNO.resolveBinary)(binaryName, enginePath);
39
39
  const platformInfo = await (0, import_get_platform.getPlatformInfo)();
40
40
  if (binaryName === import_fetch_engine.BinaryType.QueryEngineLibrary) {
41
41
  (0, import_get_platform.assertNodeAPISupported)();
@@ -47,7 +47,7 @@ async function getEngineVersion(enginePath, binaryName) {
47
47
  }
48
48
  }
49
49
  function safeGetEngineVersion(enginePath, binaryName) {
50
- return (0, import_chunk_7MD6344A.tryCatch2)(
50
+ return (0, import_chunk_5DBOS77Y.tryCatch2)(
51
51
  () => getEngineVersion(enginePath, binaryName),
52
52
  (error) => error
53
53
  );
@@ -26,24 +26,24 @@ 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_K463GPQP_exports = {};
30
- __export(chunk_K463GPQP_exports, {
29
+ var chunk_UFYNZD7Y_exports = {};
30
+ __export(chunk_UFYNZD7Y_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_K463GPQP_exports);
37
+ module.exports = __toCommonJS(chunk_UFYNZD7Y_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
40
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_HRNPS5ND = require("./chunk-HRNPS5ND.js");
39
+ var import_chunk_Y4PCD4YX = require("./chunk-Y4PCD4YX.js");
42
40
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
41
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
42
+ var import_chunk_OCPELPFI = require("./chunk-OCPELPFI.js");
43
43
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
- var import_chunk_ARTAC6EG = require("./chunk-ARTAC6EG.js");
44
+ var import_chunk_Q2GXXFZU = require("./chunk-Q2GXXFZU.js");
45
45
  var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
46
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
46
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
48
48
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
49
49
  var import_debug = __toESM(require("@prisma/debug"));
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_HRNPS5ND.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_OCPELPFI.addVersionDetailsToErrorMessage)(errorMessageWithContext));
69
69
  this.name = "GetConfigError";
70
70
  }
71
71
  };
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
83
83
  return urlFromValue ?? urlEnvVarValue;
84
84
  }
85
85
  async function getConfig(options) {
86
- const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_Y4PCD4YX.createDebugErrorType)(debug, "getConfigWasm");
87
87
  debug(`Using getConfig Wasm`);
88
88
  const configEither = (0, import_function.pipe)(
89
- (0, import_chunk_7MD6344A.tryCatch)(
89
+ (0, import_chunk_5DBOS77Y.tryCatch)(
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_ARTAC6EG.prismaSchemaWasm.debug_panic();
93
+ import_chunk_Q2GXXFZU.prismaSchemaWasm.debug_panic();
94
94
  }
95
95
  const params = JSON.stringify({
96
96
  prismaSchema: options.datamodel,
@@ -98,7 +98,7 @@ async function getConfig(options) {
98
98
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
99
99
  env: process.env
100
100
  });
101
- const data = import_chunk_ARTAC6EG.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_Q2GXXFZU.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -107,11 +107,11 @@ async function getConfig(options) {
107
107
  error: e
108
108
  })
109
109
  ),
110
- (0, import_chunk_7MD6344A.map)((result) => ({ result })),
111
- (0, import_chunk_7MD6344A.chainW)(
110
+ (0, import_chunk_5DBOS77Y.map)((result) => ({ result })),
111
+ (0, import_chunk_5DBOS77Y.chainW)(
112
112
  ({ result }) => (
113
113
  // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings
114
- (0, import_chunk_7MD6344A.tryCatch)(
114
+ (0, import_chunk_5DBOS77Y.tryCatch)(
115
115
  () => JSON.parse(result),
116
116
  (e) => ({
117
117
  type: "parse-json",
@@ -121,18 +121,18 @@ async function getConfig(options) {
121
121
  )
122
122
  )
123
123
  ),
124
- (0, import_chunk_7MD6344A.chainW)((response) => {
124
+ (0, import_chunk_5DBOS77Y.chainW)((response) => {
125
125
  if (response.errors.length > 0) {
126
- return (0, import_chunk_7MD6344A.left)({
126
+ return (0, import_chunk_5DBOS77Y.left)({
127
127
  type: "validation-error",
128
128
  reason: "(get-config wasm)",
129
129
  error: response.errors
130
130
  });
131
131
  }
132
- return (0, import_chunk_7MD6344A.right)(response.config);
132
+ return (0, import_chunk_5DBOS77Y.right)(response.config);
133
133
  })
134
134
  );
135
- if ((0, import_chunk_7MD6344A.isRight)(configEither)) {
135
+ if ((0, import_chunk_5DBOS77Y.isRight)(configEither)) {
136
136
  debug("config data retrieved without errors in getConfig Wasm");
137
137
  const { right: data } = configEither;
138
138
  for (const generator of data.generators) {
@@ -153,19 +153,19 @@ async function getConfig(options) {
153
153
  "@prisma/prisma-schema-wasm get_config",
154
154
  "FMT_CLI",
155
155
  /* schemaPath */
156
- options.prismaPath,
156
+ void 0,
157
157
  /* schema */
158
158
  (0, import_chunk_YRBRUREX.toMultipleSchemas)(options.datamodel)
159
159
  );
160
160
  return panic;
161
161
  }
162
162
  const errorOutput = e.error.message;
163
- return new GetConfigError((0, import_chunk_6TXVGFQA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_Y4PCD4YX.parseQueryEngineError)({ errorOutput, reason: e.reason }));
164
164
  }).with({ type: "validation-error" }, (e) => {
165
165
  return new GetConfigError({
166
166
  _tag: "parsed",
167
167
  errorCode: SCHEMA_VALIDATION_ERROR_CODE,
168
- reason: (0, import_chunk_6TXVGFQA.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_Y4PCD4YX.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).otherwise((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_TQCLUNM2_exports = {};
20
- __export(chunk_TQCLUNM2_exports, {
19
+ var chunk_VNIE2AZB_exports = {};
20
+ __export(chunk_VNIE2AZB_exports, {
21
21
  highlightDatamodel: () => highlightDatamodel,
22
22
  highlightSql: () => highlightSql,
23
23
  highlightTS: () => highlightTS
24
24
  });
25
- module.exports = __toCommonJS(chunk_TQCLUNM2_exports);
26
- var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.js");
25
+ module.exports = __toCommonJS(chunk_VNIE2AZB_exports);
27
26
  var import_chunk_CYAS6B5N = require("./chunk-CYAS6B5N.js");
27
+ var import_chunk_OIVPX3BR = require("./chunk-OIVPX3BR.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,33 +26,33 @@ 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_TATYN3T2_exports = {};
30
- __export(chunk_TATYN3T2_exports, {
29
+ var chunk_VNXTMX7Q_exports = {};
30
+ __export(chunk_VNXTMX7Q_exports, {
31
31
  getEnginesInfo: () => getEnginesInfo,
32
32
  getEnginesMetaInfo: () => getEnginesMetaInfo,
33
33
  resolveEngine: () => resolveEngine
34
34
  });
35
- module.exports = __toCommonJS(chunk_TATYN3T2_exports);
35
+ module.exports = __toCommonJS(chunk_VNXTMX7Q_exports);
36
36
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
37
- var import_chunk_XLGODPZH = require("./chunk-XLGODPZH.js");
37
+ var import_chunk_UCHI3M2O = require("./chunk-UCHI3M2O.js");
38
38
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
39
- var import_chunk_3ERIN7PH = require("./chunk-3ERIN7PH.js");
40
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
39
+ var import_chunk_HMRJXDNO = require("./chunk-HMRJXDNO.js");
40
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
42
42
  var import_engines = require("@prisma/engines");
43
43
  var import_fetch_engine = require("@prisma/fetch-engine");
44
44
  var import_path = __toESM(require("path"));
45
45
  var import_function2 = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
46
- var none2 = import_chunk_7MD6344A.none;
47
- var some2 = import_chunk_7MD6344A.some;
46
+ var none2 = import_chunk_5DBOS77Y.none;
47
+ var some2 = import_chunk_5DBOS77Y.some;
48
48
  var getRight = function(ma) {
49
49
  return ma._tag === "Left" ? none2 : some2(ma.right);
50
50
  };
51
51
  var _map = function(fa, f) {
52
- return (0, import_chunk_7MD6344A.pipe)(fa, map(f));
52
+ return (0, import_chunk_5DBOS77Y.pipe)(fa, map(f));
53
53
  };
54
54
  var _ap = function(fab, fa) {
55
- return (0, import_chunk_7MD6344A.pipe)(fab, ap(fa));
55
+ return (0, import_chunk_5DBOS77Y.pipe)(fab, ap(fa));
56
56
  };
57
57
  var URI = "Option";
58
58
  var map = function(f) {
@@ -64,14 +64,14 @@ var Functor = {
64
64
  URI,
65
65
  map: _map
66
66
  };
67
- var as2 = (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.as)(Functor));
68
- var asUnit2 = (0, import_chunk_7MD6344A.asUnit)(Functor);
67
+ var as2 = (0, import_chunk_5DBOS77Y.dual)(2, (0, import_chunk_5DBOS77Y.as)(Functor));
68
+ var asUnit2 = (0, import_chunk_5DBOS77Y.asUnit)(Functor);
69
69
  var ap = function(fa) {
70
70
  return function(fab) {
71
71
  return isNone(fab) ? none2 : isNone(fa) ? none2 : some2(fab.value(fa.value));
72
72
  };
73
73
  };
74
- var flatMap = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, function(ma, f) {
74
+ var flatMap = /* @__PURE__ */ (0, import_chunk_5DBOS77Y.dual)(2, function(ma, f) {
75
75
  return isNone(ma) ? none2 : f(ma.value);
76
76
  });
77
77
  var Chain = {
@@ -80,7 +80,7 @@ var Chain = {
80
80
  ap: _ap,
81
81
  chain: flatMap
82
82
  };
83
- var orElse = (0, import_chunk_7MD6344A.dual)(2, function(self, that) {
83
+ var orElse = (0, import_chunk_5DBOS77Y.dual)(2, function(self, that) {
84
84
  return isNone(self) ? that() : self;
85
85
  });
86
86
  var fromEither2 = getRight;
@@ -88,7 +88,7 @@ var FromEither = {
88
88
  URI,
89
89
  fromEither: fromEither2
90
90
  };
91
- var isSome2 = import_chunk_7MD6344A.isSome;
91
+ var isSome2 = import_chunk_5DBOS77Y.isSome;
92
92
  var isNone = function(fa) {
93
93
  return fa._tag === "None";
94
94
  };
@@ -99,8 +99,8 @@ var matchW = function(onNone, onSome) {
99
99
  };
100
100
  var match = matchW;
101
101
  var fold = match;
102
- var tap2 = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.tap)(Chain));
103
- var tapEither2 = /* @__PURE__ */ (0, import_chunk_7MD6344A.dual)(2, (0, import_chunk_7MD6344A.tapEither)(FromEither, Chain));
102
+ var tap2 = /* @__PURE__ */ (0, import_chunk_5DBOS77Y.dual)(2, (0, import_chunk_5DBOS77Y.tap)(Chain));
103
+ var tapEither2 = /* @__PURE__ */ (0, import_chunk_5DBOS77Y.dual)(2, (0, import_chunk_5DBOS77Y.tapEither)(FromEither, Chain));
104
104
  var fromNullable = function(a) {
105
105
  return a == null ? none2 : some2(a);
106
106
  };
@@ -133,15 +133,15 @@ function getEnginesInfo(enginesInfo) {
133
133
  const resolved = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ fromEnvVar: import_chunk_XKZ6CBLA.N.when(isSome2) }, (_engineInfo) => {
134
134
  return `, resolved by ${_engineInfo.fromEnvVar.value}`;
135
135
  }).otherwise(() => "");
136
- const absolutePath = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
136
+ const absolutePath = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isRight) }, (_engineInfo) => {
137
137
  return _engineInfo.path.right;
138
- }).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
138
+ }).with({ path: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isLeft) }, (_engineInfo) => {
139
139
  errors.push(_engineInfo.path.left);
140
140
  return "E_CANNOT_RESOLVE_PATH";
141
141
  }).exhaustive();
142
- const version = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isRight) }, (_engineInfo) => {
142
+ const version = (0, import_chunk_XKZ6CBLA.z)(enginesInfo).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isRight) }, (_engineInfo) => {
143
143
  return _engineInfo.version.right;
144
- }).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_7MD6344A.isLeft) }, (_engineInfo) => {
144
+ }).with({ version: import_chunk_XKZ6CBLA.N.when(import_chunk_5DBOS77Y.isLeft) }, (_engineInfo) => {
145
145
  errors.push(_engineInfo.version.left);
146
146
  return "E_CANNOT_RESOLVE_VERSION";
147
147
  }).exhaustive();
@@ -157,15 +157,15 @@ async function resolveEngine(binaryName) {
157
157
  const enginePathEither = await (0, import_function2.pipe)(
158
158
  pathFromEnvOption,
159
159
  fold(
160
- () => (0, import_chunk_3ERIN7PH.safeResolveBinary)(binaryName),
161
- (pathFromEnv) => (0, import_chunk_7MD6344A.right2)(pathFromEnv.path)
160
+ () => (0, import_chunk_HMRJXDNO.safeResolveBinary)(binaryName),
161
+ (pathFromEnv) => (0, import_chunk_5DBOS77Y.right2)(pathFromEnv.path)
162
162
  )
163
163
  )();
164
164
  const versionEither = await (0, import_function2.pipe)(
165
165
  enginePathEither,
166
- import_chunk_7MD6344A.fromEither,
167
- (0, import_chunk_7MD6344A.chain)((enginePath) => {
168
- return (0, import_chunk_XLGODPZH.safeGetEngineVersion)(enginePath, binaryName);
166
+ import_chunk_5DBOS77Y.fromEither,
167
+ (0, import_chunk_5DBOS77Y.chain)((enginePath) => {
168
+ return (0, import_chunk_UCHI3M2O.safeGetEngineVersion)(enginePath, binaryName);
169
169
  })
170
170
  )();
171
171
  const engineInfo = {
@@ -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_2MWIMEFK_exports = {};
20
- __export(chunk_2MWIMEFK_exports, {
19
+ var chunk_WO5ENZU5_exports = {};
20
+ __export(chunk_WO5ENZU5_exports, {
21
21
  missingGeneratorMessage: () => missingGeneratorMessage,
22
22
  missingModelMessage: () => missingModelMessage,
23
23
  missingModelMessageMongoDB: () => missingModelMessageMongoDB
24
24
  });
25
- module.exports = __toCommonJS(chunk_2MWIMEFK_exports);
25
+ module.exports = __toCommonJS(chunk_WO5ENZU5_exports);
26
26
  var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
27
- var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
27
+ var import_chunk_VNIE2AZB = require("./chunk-VNIE2AZB.js");
28
28
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
29
29
  var missingGeneratorMessage = `
30
30
  ${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined in your ${(0, import_chunk_PG5FDKSF.bold)(
@@ -33,7 +33,7 @@ ${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined
33
33
  You can define them like this:
34
34
 
35
35
  ${(0, import_chunk_PG5FDKSF.bold)(
36
- (0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
36
+ (0, import_chunk_VNIE2AZB.highlightDatamodel)(`generator client {
37
37
  provider = "prisma-client-js"
38
38
  }`)
39
39
  )}`;
@@ -44,7 +44,7 @@ You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your
44
44
  You can define a model like this:
45
45
 
46
46
  ${(0, import_chunk_PG5FDKSF.bold)(
47
- (0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
47
+ (0, import_chunk_VNIE2AZB.highlightDatamodel)(`model User {
48
48
  id Int @id @default(autoincrement())
49
49
  email String @unique
50
50
  name String?
@@ -61,7 +61,7 @@ You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your
61
61
  You can define a model like this:
62
62
 
63
63
  ${(0, import_chunk_PG5FDKSF.bold)(
64
- (0, import_chunk_TQCLUNM2.highlightDatamodel)(`model User {
64
+ (0, import_chunk_VNIE2AZB.highlightDatamodel)(`model User {
65
65
  id String @id @default(auto()) @map("_id") @db.ObjectId
66
66
  email String @unique
67
67
  name String?
@@ -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_FAILNIEQ_exports = {};
20
- __export(chunk_FAILNIEQ_exports, {
19
+ var chunk_X5YSMVVH_exports = {};
20
+ __export(chunk_X5YSMVVH_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_FAILNIEQ_exports);
24
- var import_chunk_KOMGNJLE = require("./chunk-KOMGNJLE.js");
25
- var packageJson = (0, import_chunk_KOMGNJLE.require_package)();
23
+ module.exports = __toCommonJS(chunk_X5YSMVVH_exports);
24
+ var import_chunk_LG5IW4IV = require("./chunk-LG5IW4IV.js");
25
+ var packageJson = (0, import_chunk_LG5IW4IV.require_package)();
26
26
  var version = packageJson.version;
@@ -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_VLCHHD5W_exports = {};
20
- __export(chunk_VLCHHD5W_exports, {
19
+ var chunk_XKNXU2N3_exports = {};
20
+ __export(chunk_XKNXU2N3_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_VLCHHD5W_exports);
23
+ module.exports = __toCommonJS(chunk_XKNXU2N3_exports);
24
24
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
25
25
  var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.6.0-integration-engines-6-6-0-17-refactor-migrate-to-new-interface-a65ab979bf81a122861f2a68231321419d7fb303.1",
29
+ version: "6.6.0-integration-refactor-schema-path-less-migrate-class.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",
@@ -67,7 +67,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
67
67
  "cli-truncate": "4.0.0",
68
68
  dotenv: "16.4.7",
69
69
  esbuild: "0.24.2",
70
- "escape-string-regexp": "5.0.0",
70
+ "escape-string-regexp": "4.0.0",
71
71
  execa: "5.1.1",
72
72
  "fast-glob": "3.3.3",
73
73
  "find-up": "7.0.0",
@@ -93,7 +93,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
93
93
  resolve: "1.22.10",
94
94
  "string-width": "7.2.0",
95
95
  "strip-ansi": "6.0.1",
96
- "strip-indent": "4.0.0",
96
+ "strip-indent": "3.0.0",
97
97
  "temp-dir": "2.0.0",
98
98
  tempy: "1.0.1",
99
99
  "terminal-link": "2.1.1",
@@ -111,7 +111,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
111
111
  "@prisma/fetch-engine": "workspace:*",
112
112
  "@prisma/generator-helper": "workspace:*",
113
113
  "@prisma/get-platform": "workspace:*",
114
- "@prisma/prisma-schema-wasm": "6.6.0-17.refactor-migrate-to-new-interface-a65ab979bf81a122861f2a68231321419d7fb303",
114
+ "@prisma/prisma-schema-wasm": "6.6.0-1.1553356525b8e28a58f362554654043cba99af2f",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
@@ -26,24 +26,24 @@ 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_6TXVGFQA_exports = {};
30
- __export(chunk_6TXVGFQA_exports, {
29
+ var chunk_Y4PCD4YX_exports = {};
30
+ __export(chunk_Y4PCD4YX_exports, {
31
31
  createDebugErrorType: () => createDebugErrorType,
32
32
  createSchemaValidationError: () => createSchemaValidationError,
33
33
  parseQueryEngineError: () => parseQueryEngineError,
34
34
  unlinkTempDatamodelPath: () => unlinkTempDatamodelPath
35
35
  });
36
- module.exports = __toCommonJS(chunk_6TXVGFQA_exports);
37
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
36
+ module.exports = __toCommonJS(chunk_Y4PCD4YX_exports);
38
37
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
38
+ var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
39
39
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
40
- var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
40
+ var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
42
42
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
43
43
  var import_fs = __toESM(require("fs"));
44
44
  var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVWZX.require_function)());
45
45
  function unlinkTempDatamodelPath(options, tempDatamodelPath) {
46
- return (0, import_chunk_7MD6344A.tryCatch2)(
46
+ return (0, import_chunk_5DBOS77Y.tryCatch2)(
47
47
  () => {
48
48
  if (!options.datamodelPath && tempDatamodelPath) {
49
49
  return import_fs.default.promises.unlink(tempDatamodelPath);
@@ -66,11 +66,11 @@ function createSchemaValidationError(reason) {
66
66
  }
67
67
  function parseQueryEngineError({ errorOutput, reason }) {
68
68
  const actualError = (0, import_function.pipe)(
69
- (0, import_chunk_7MD6344A.tryCatch)(
69
+ (0, import_chunk_5DBOS77Y.tryCatch)(
70
70
  () => JSON.parse(errorOutput),
71
71
  () => ({ _tag: "unparsed", message: errorOutput, reason })
72
72
  ),
73
- (0, import_chunk_7MD6344A.map)((errorOutputAsJSON) => {
73
+ (0, import_chunk_5DBOS77Y.map)((errorOutputAsJSON) => {
74
74
  const defaultMessage = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)((0, import_chunk_C47SCASR.relativizePathInPSLError)(errorOutputAsJSON.message)));
75
75
  const getConfigErrorInit = (0, import_chunk_XKZ6CBLA.z)(errorOutputAsJSON).with({ error_code: "P1012" }, (eJSON) => {
76
76
  return {
@@ -89,7 +89,7 @@ function parseQueryEngineError({ errorOutput, reason }) {
89
89
  });
90
90
  return { _tag: "parsed", message: defaultMessage, ...getConfigErrorInit };
91
91
  }),
92
- (0, import_chunk_7MD6344A.getOrElseW)(import_function.identity)
92
+ (0, import_chunk_5DBOS77Y.getOrElseW)(import_function.identity)
93
93
  );
94
94
  return actualError;
95
95
  }
@@ -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_WCEODSXD_exports = {};
20
- __export(chunk_WCEODSXD_exports, {
19
+ var chunk_YG7D272D_exports = {};
20
+ __export(chunk_YG7D272D_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_WCEODSXD_exports);
27
+ module.exports = __toCommonJS(chunk_YG7D272D_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_ABGGXGOC = require("./chunk-ABGGXGOC.js");
29
+ var import_chunk_EOWYER24 = require("./chunk-EOWYER24.js");
30
30
  var import_chunk_ATFQZVBS = require("./chunk-ATFQZVBS.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_ABGGXGOC.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_EOWYER24.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }