@prisma/internals 5.23.0-dev.5 → 5.23.0-dev.6

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 (41) hide show
  1. package/dist/chunk-2DXAGCPS.js +177 -0
  2. package/dist/{chunk-NUCEB6SE.js → chunk-3PNMOVGU.js} +5 -5
  3. package/dist/chunk-5XRQ7ONW.js +122 -0
  4. package/dist/{chunk-LWYS7HS7.js → chunk-A2QLGXV6.js} +8 -8
  5. package/dist/{chunk-TPY55IXZ.js → chunk-AVP2SFRF.js} +7 -7
  6. package/dist/{chunk-MZEJTGQT.js → chunk-BA3BI3X7.js} +24 -795
  7. package/dist/{chunk-UKKLABQ6.js → chunk-CPTFHQZD.js} +19 -19
  8. package/dist/{chunk-VYAHUJ5O.js → chunk-FPGAIXW2.js} +5 -5
  9. package/dist/{chunk-UT4SBW3W.js → chunk-FWWQ3PEL.js} +8 -8
  10. package/dist/{chunk-6TPPOTY5.js → chunk-LAHPFY4Y.js} +5 -5
  11. package/dist/{chunk-P6FZAZ5F.js → chunk-NF6CBPGQ.js} +4 -4
  12. package/dist/{chunk-L2ODRMIC.js → chunk-PQ6YLJKK.js} +8 -8
  13. package/dist/chunk-QIVUAERL.js +2202 -0
  14. package/dist/chunk-QJZIYUVB.js +110 -0
  15. package/dist/chunk-TFSZCVKC.js +166 -0
  16. package/dist/{chunk-P4W6ATC2.js → chunk-UHGZ3JLA.js} +5 -5
  17. package/dist/chunk-V2VWODV3.js +54 -0
  18. package/dist/cli/checkUnsupportedDataProxy.js +12 -12
  19. package/dist/cli/getSchema.js +17 -17
  20. package/dist/cli/hashes.js +12 -12
  21. package/dist/engine-commands/errorHelpers.js +4 -4
  22. package/dist/engine-commands/formatSchema.js +11 -11
  23. package/dist/engine-commands/getConfig.js +10 -10
  24. package/dist/engine-commands/getDmmf.js +7 -7
  25. package/dist/engine-commands/index.js +20 -20
  26. package/dist/engine-commands/lintSchema.js +8 -8
  27. package/dist/engine-commands/mergeSchemas.js +7 -7
  28. package/dist/engine-commands/validate.js +7 -7
  29. package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
  30. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
  31. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +11 -11
  32. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
  33. package/dist/get-generators/getGenerators.js +14 -14
  34. package/dist/index.js +39 -39
  35. package/dist/sendPanic.js +11 -11
  36. package/dist/utils/getEnvPaths.js +11 -11
  37. package/dist/utils/getVersionFromPackageJson.js +3 -3
  38. package/dist/utils/handlePanic.js +11 -11
  39. package/dist/utils/loadEnvFile.js +11 -11
  40. package/dist/wasm.js +4 -4
  41. package/package.json +7 -7
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_UKKLABQ6_exports = {};
30
- __export2(chunk_UKKLABQ6_exports, {
29
+ var chunk_CPTFHQZD_exports = {};
30
+ __export2(chunk_CPTFHQZD_exports, {
31
31
  checkTypeScriptVersion: () => checkTypeScriptVersion,
32
32
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
33
33
  checkYarnVersion: () => checkYarnVersion,
@@ -56,7 +56,7 @@ __export2(chunk_UKKLABQ6_exports, {
56
56
  sendPanic: () => sendPanic,
57
57
  skipIndex: () => skipIndex
58
58
  });
59
- module.exports = __toCommonJS2(chunk_UKKLABQ6_exports);
59
+ module.exports = __toCommonJS2(chunk_CPTFHQZD_exports);
60
60
  var import_chunk_IABMG3F4 = require("./chunk-IABMG3F4.js");
61
61
  var import_chunk_3U2ANLD3 = require("./chunk-3U2ANLD3.js");
62
62
  var import_chunk_FTS2IEWX = require("./chunk-FTS2IEWX.js");
@@ -81,13 +81,13 @@ var import_chunk_XLYQ6PQW = require("./chunk-XLYQ6PQW.js");
81
81
  var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
82
82
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
83
83
  var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
84
- var import_chunk_SNDFU4LI = require("./chunk-SNDFU4LI.js");
85
- var import_chunk_27SEKEMX = require("./chunk-27SEKEMX.js");
86
- var import_chunk_JV7GEWND = require("./chunk-JV7GEWND.js");
87
- var import_chunk_KLJFAN5P = require("./chunk-KLJFAN5P.js");
84
+ var import_chunk_LAHPFY4Y = require("./chunk-LAHPFY4Y.js");
85
+ var import_chunk_AVP2SFRF = require("./chunk-AVP2SFRF.js");
86
+ var import_chunk_A2QLGXV6 = require("./chunk-A2QLGXV6.js");
87
+ var import_chunk_PQ6YLJKK = require("./chunk-PQ6YLJKK.js");
88
88
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
89
89
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
90
- var import_chunk_XYRPUR3O = require("./chunk-XYRPUR3O.js");
90
+ var import_chunk_UHGZ3JLA = require("./chunk-UHGZ3JLA.js");
91
91
  var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
92
92
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
93
93
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
@@ -15517,7 +15517,7 @@ async function readSchemaFromDirectory(schemaPath2) {
15517
15517
  }
15518
15518
  const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
15519
15519
  debug2("Loading config");
15520
- const config2 = await (0, import_chunk_JV7GEWND.getConfig)({
15520
+ const config2 = await (0, import_chunk_A2QLGXV6.getConfig)({
15521
15521
  datamodel: files,
15522
15522
  ignoreEnvVarErrors: true
15523
15523
  });
@@ -15909,8 +15909,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
15909
15909
  if (argName.includes("schema")) {
15910
15910
  await loadEnvFile({ schemaPath: argValue, printMessage: false });
15911
15911
  const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
15912
- const config2 = await (0, import_chunk_JV7GEWND.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
- const url = (0, import_chunk_JV7GEWND.resolveUrl)((0, import_chunk_JV7GEWND.getEffectiveUrl)(config2.datasources[0]));
15912
+ const config2 = await (0, import_chunk_A2QLGXV6.getConfig)({ datamodel, ignoreEnvVarErrors: true });
15913
+ const url = (0, import_chunk_A2QLGXV6.resolveUrl)((0, import_chunk_A2QLGXV6.getEffectiveUrl)(config2.datasources[0]));
15914
15914
  if (url?.startsWith("prisma://")) {
15915
15915
  return forbiddenCmdWithDataProxyFlagMessage(command);
15916
15916
  }
@@ -16114,7 +16114,7 @@ async function getGenerators(options) {
16114
16114
  prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
16115
16115
  }
16116
16116
  }
16117
- const config = await (0, import_chunk_JV7GEWND.getConfig)({
16117
+ const config = await (0, import_chunk_A2QLGXV6.getConfig)({
16118
16118
  datamodel: schemas,
16119
16119
  datamodelPath: schemaPath,
16120
16120
  prismaPath,
@@ -16125,7 +16125,7 @@ async function getGenerators(options) {
16125
16125
  }
16126
16126
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
16127
16127
  const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
16128
- const dmmf = await (0, import_chunk_KLJFAN5P.getDMMF)({
16128
+ const dmmf = await (0, import_chunk_PQ6YLJKK.getDMMF)({
16129
16129
  datamodel: schemas,
16130
16130
  datamodelPath: schemaPath,
16131
16131
  prismaPath,
@@ -16186,7 +16186,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
16186
16186
  fromEnvVar: "null"
16187
16187
  };
16188
16188
  }
16189
- const datamodel = (0, import_chunk_27SEKEMX.mergeSchemas)({ schemas });
16189
+ const datamodel = (0, import_chunk_AVP2SFRF.mergeSchemas)({ schemas });
16190
16190
  const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
16191
16191
  const options2 = {
16192
16192
  datamodel,
@@ -16269,7 +16269,7 @@ generator gen {
16269
16269
  debug6({ generatorBinaryPaths });
16270
16270
  generator.setBinaryPaths(generatorBinaryPaths);
16271
16271
  if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
16272
- const customDmmf = await (0, import_chunk_KLJFAN5P.getDMMF)({
16272
+ const customDmmf = await (0, import_chunk_PQ6YLJKK.getDMMF)({
16273
16273
  datamodel: schemas,
16274
16274
  datamodelPath: schemaPath,
16275
16275
  prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
@@ -16567,7 +16567,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16567
16567
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
16568
16568
  handleFormatPanic(
16569
16569
  () => {
16570
- import_chunk_XYRPUR3O.prismaSchemaWasm.debug_panic();
16570
+ import_chunk_UHGZ3JLA.prismaSchemaWasm.debug_panic();
16571
16571
  },
16572
16572
  { schemas: schemas2 }
16573
16573
  );
@@ -16587,12 +16587,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
16587
16587
  () => {
16588
16588
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
16589
16589
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
16590
- const lintDiagnostics2 = (0, import_chunk_SNDFU4LI.lintSchema)({ schemas: formattedMultipleSchemas2 });
16590
+ const lintDiagnostics2 = (0, import_chunk_LAHPFY4Y.lintSchema)({ schemas: formattedMultipleSchemas2 });
16591
16591
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
16592
16592
  },
16593
16593
  { schemas: schemas2 }
16594
16594
  );
16595
- const lintWarnings = (0, import_chunk_SNDFU4LI.getLintWarningsAsText)(lintDiagnostics);
16595
+ const lintWarnings = (0, import_chunk_LAHPFY4Y.getLintWarningsAsText)(lintDiagnostics);
16596
16596
  if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
16597
16597
  console.warn(lintWarnings);
16598
16598
  }
@@ -16622,7 +16622,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
16622
16622
  }
16623
16623
  }
16624
16624
  function formatWasm(schema, documentFormattingParams) {
16625
- const formattedSchema = import_chunk_XYRPUR3O.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16625
+ const formattedSchema = import_chunk_UHGZ3JLA.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
16626
16626
  return formattedSchema;
16627
16627
  }
16628
16628
  /*! Bundled license information:
@@ -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_VYAHUJ5O_exports = {};
20
- __export(chunk_VYAHUJ5O_exports, {
19
+ var chunk_FPGAIXW2_exports = {};
20
+ __export(chunk_FPGAIXW2_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_VYAHUJ5O_exports);
24
- var import_chunk_P6FZAZ5F = require("./chunk-P6FZAZ5F.js");
25
- var packageJson = (0, import_chunk_P6FZAZ5F.require_package)();
23
+ module.exports = __toCommonJS(chunk_FPGAIXW2_exports);
24
+ var import_chunk_NF6CBPGQ = require("./chunk-NF6CBPGQ.js");
25
+ var packageJson = (0, import_chunk_NF6CBPGQ.require_package)();
26
26
  var version = packageJson.version;
@@ -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_UT4SBW3W_exports = {};
30
- __export(chunk_UT4SBW3W_exports, {
29
+ var chunk_FWWQ3PEL_exports = {};
30
+ __export(chunk_FWWQ3PEL_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_UT4SBW3W_exports);
34
+ module.exports = __toCommonJS(chunk_FWWQ3PEL_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
37
  var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
- var import_chunk_NUCEB6SE = require("./chunk-NUCEB6SE.js");
38
+ var import_chunk_3PNMOVGU = require("./chunk-3PNMOVGU.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
40
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_P4W6ATC2 = require("./chunk-P4W6ATC2.js");
41
+ var import_chunk_UHGZ3JLA = require("./chunk-UHGZ3JLA.js");
42
42
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
43
43
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
44
44
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_NUCEB6SE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_3PNMOVGU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
@@ -72,13 +72,13 @@ function validate(options) {
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_P4W6ATC2.prismaSchemaWasm.debug_panic();
75
+ import_chunk_UHGZ3JLA.prismaSchemaWasm.debug_panic();
76
76
  }
77
77
  const params = JSON.stringify({
78
78
  prismaSchema: options.schemas,
79
79
  noColor: Boolean(process.env.NO_COLOR)
80
80
  });
81
- import_chunk_P4W6ATC2.prismaSchemaWasm.validate(params);
81
+ import_chunk_UHGZ3JLA.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_6TPPOTY5_exports = {};
20
- __export(chunk_6TPPOTY5_exports, {
19
+ var chunk_LAHPFY4Y_exports = {};
20
+ __export(chunk_LAHPFY4Y_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_6TPPOTY5_exports);
27
+ module.exports = __toCommonJS(chunk_LAHPFY4Y_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_P4W6ATC2 = require("./chunk-P4W6ATC2.js");
29
+ var import_chunk_UHGZ3JLA = require("./chunk-UHGZ3JLA.js");
30
30
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
31
31
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
32
32
  function lintSchema({ schemas }) {
33
- const lintResult = import_chunk_P4W6ATC2.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_UHGZ3JLA.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -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_P6FZAZ5F_exports = {};
20
- __export(chunk_P6FZAZ5F_exports, {
19
+ var chunk_NF6CBPGQ_exports = {};
20
+ __export(chunk_NF6CBPGQ_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_P6FZAZ5F_exports);
23
+ module.exports = __toCommonJS(chunk_NF6CBPGQ_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: "5.23.0-dev.5",
29
+ version: "5.23.0-dev.6",
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",
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_L2ODRMIC_exports = {};
30
- __export(chunk_L2ODRMIC_exports, {
29
+ var chunk_PQ6YLJKK_exports = {};
30
+ __export(chunk_PQ6YLJKK_exports, {
31
31
  GetDmmfError: () => GetDmmfError,
32
32
  getDMMF: () => getDMMF
33
33
  });
34
- module.exports = __toCommonJS(chunk_L2ODRMIC_exports);
34
+ module.exports = __toCommonJS(chunk_PQ6YLJKK_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
36
  var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
- var import_chunk_NUCEB6SE = require("./chunk-NUCEB6SE.js");
37
+ var import_chunk_3PNMOVGU = require("./chunk-3PNMOVGU.js");
38
38
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
39
39
  var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
40
- var import_chunk_P4W6ATC2 = require("./chunk-P4W6ATC2.js");
40
+ var import_chunk_UHGZ3JLA = require("./chunk-UHGZ3JLA.js");
41
41
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
42
42
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
43
43
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: getDmmf]`;
63
- super((0, import_chunk_NUCEB6SE.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_3PNMOVGU.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "GetDmmfError";
65
65
  }
66
66
  };
@@ -91,13 +91,13 @@ async function getDMMF(options) {
91
91
  () => {
92
92
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
93
93
  debug("Triggering a Rust panic...");
94
- import_chunk_P4W6ATC2.prismaSchemaWasm.debug_panic();
94
+ import_chunk_UHGZ3JLA.prismaSchemaWasm.debug_panic();
95
95
  }
96
96
  const params = JSON.stringify({
97
97
  prismaSchema: datamodel,
98
98
  noColor: Boolean(process.env.NO_COLOR)
99
99
  });
100
- const data = import_chunk_P4W6ATC2.prismaSchemaWasm.get_dmmf(params);
100
+ const data = import_chunk_UHGZ3JLA.prismaSchemaWasm.get_dmmf(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({