@prisma/internals 6.13.0-dev.3 → 6.13.0-dev.31

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 (54) hide show
  1. package/dist/{chunk-67Y3H3QN.js → chunk-2MSHYWMA.js} +5 -5
  2. package/dist/{chunk-VMDJ6R7V.js → chunk-3PZELVH3.js} +8 -8
  3. package/dist/{chunk-CHOXBASF.js → chunk-4JCVHBYR.js} +5 -5
  4. package/dist/{chunk-MMDCFN6O.js → chunk-5OP3XZGE.js} +7 -7
  5. package/dist/{chunk-MY5KA4VU.js → chunk-67I7CEQJ.js} +329 -12
  6. package/dist/{chunk-HCLB23CV.js → chunk-7QYPTKF6.js} +5 -5
  7. package/dist/{chunk-JIFFPM7F.js → chunk-7RFO7IBT.js} +5 -5
  8. package/dist/{chunk-PYESN73R.js → chunk-AOC6CKVB.js} +26 -26
  9. package/dist/{chunk-SFFH45R3.js → chunk-AZZVNSJU.js} +5 -5
  10. package/dist/{chunk-X4L5SQSX.js → chunk-BPDSYUHC.js} +5 -5
  11. package/dist/{chunk-ZIFBTC6Y.js → chunk-CILEY36B.js} +5150 -477
  12. package/dist/{chunk-F44R72ET.js → chunk-DNBGUGMK.js} +7 -7
  13. package/dist/{chunk-ZCBEMBHR.js → chunk-EYVG6XQS.js} +11 -23
  14. package/dist/{chunk-7LZMIPS5.js → chunk-FJWKIEZH.js} +8 -8
  15. package/dist/{chunk-NNDSWLTF.js → chunk-GIP47CQ4.js} +5 -5
  16. package/dist/{chunk-3R5MIUGK.js → chunk-LJ6T2BOT.js} +5 -5
  17. package/dist/{chunk-BL6J3WTY.js → chunk-LJJRFSMO.js} +5 -5
  18. package/dist/chunk-LWJT6EL5.js +27 -0
  19. package/dist/{chunk-VYQWNWBL.js → chunk-NUJNCHJZ.js} +8 -8
  20. package/dist/{chunk-YU3N5MWB.js → chunk-PWHLRKOF.js} +8 -8
  21. package/dist/{chunk-6I574ZIF.js → chunk-U2URCEW5.js} +26 -26
  22. package/dist/{chunk-7G7FICFI.js → chunk-VXUA6PHH.js} +7 -7
  23. package/dist/{chunk-7ZY357OA.js → chunk-WKKMDPTL.js} +6 -6
  24. package/dist/{chunk-WXRTT6AT.js → chunk-XLPPGCBH.js} +8 -8
  25. package/dist/{chunk-O3FLU6UD.js → chunk-XP7WVNLW.js} +8 -8
  26. package/dist/{chunk-NSA7BFND.js → chunk-YQ4BHVLI.js} +5 -5
  27. package/dist/{chunk-FUVIRDZG.js → chunk-ZNGIGXXJ.js} +8 -8
  28. package/dist/cli/checkUnsupportedDataProxy.js +20 -21
  29. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +20 -21
  30. package/dist/cli/getSchema.d.ts +6 -8
  31. package/dist/cli/getSchema.js +5 -9
  32. package/dist/cli/hashes.js +4 -7
  33. package/dist/cli/schemaContext.js +20 -21
  34. package/dist/engine-commands/errorHelpers.js +4 -4
  35. package/dist/engine-commands/formatSchema.js +19 -20
  36. package/dist/engine-commands/getConfig.js +10 -10
  37. package/dist/engine-commands/getDmmf.js +7 -7
  38. package/dist/engine-commands/index.js +28 -29
  39. package/dist/engine-commands/lintSchema.js +8 -8
  40. package/dist/engine-commands/mergeSchemas.js +7 -7
  41. package/dist/engine-commands/validate.js +7 -7
  42. package/dist/get-generators/getGenerators.js +22 -23
  43. package/dist/getPackedPackage.js +5 -6
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +48 -50
  46. package/dist/migrateTypes.d.ts +10 -0
  47. package/dist/resolvePkg.js +2 -3
  48. package/dist/utils/getEnvPaths.js +4 -6
  49. package/dist/utils/getVersionFromPackageJson.js +3 -3
  50. package/dist/utils/loadEnvFile.js +5 -7
  51. package/dist/wasm.js +5 -5
  52. package/package.json +13 -13
  53. package/dist/chunk-PSFQKG2Q.js +0 -6291
  54. package/dist/chunk-QS3WUGE3.js +0 -341
@@ -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_PYESN73R_exports = {};
30
- __export(chunk_PYESN73R_exports, {
29
+ var chunk_AOC6CKVB_exports = {};
30
+ __export(chunk_AOC6CKVB_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
33
  forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
@@ -42,7 +42,7 @@ __export(chunk_PYESN73R_exports, {
42
42
  processSchemaResult: () => processSchemaResult,
43
43
  skipIndex: () => skipIndex
44
44
  });
45
- module.exports = __toCommonJS(chunk_PYESN73R_exports);
45
+ module.exports = __toCommonJS(chunk_AOC6CKVB_exports);
46
46
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
47
47
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
48
  var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
@@ -52,15 +52,15 @@ var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.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_WXRTT6AT = require("./chunk-WXRTT6AT.js");
55
+ var import_chunk_XLPPGCBH = require("./chunk-XLPPGCBH.js");
56
56
  var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
57
57
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
58
- var import_chunk_VYQWNWBL = require("./chunk-VYQWNWBL.js");
59
- var import_chunk_YU3N5MWB = require("./chunk-YU3N5MWB.js");
60
- var import_chunk_NNDSWLTF = require("./chunk-NNDSWLTF.js");
61
- var import_chunk_F44R72ET = require("./chunk-F44R72ET.js");
62
- var import_chunk_ZCBEMBHR = require("./chunk-ZCBEMBHR.js");
63
- var import_chunk_HCLB23CV = require("./chunk-HCLB23CV.js");
58
+ var import_chunk_XP7WVNLW = require("./chunk-XP7WVNLW.js");
59
+ var import_chunk_3PZELVH3 = require("./chunk-3PZELVH3.js");
60
+ var import_chunk_7RFO7IBT = require("./chunk-7RFO7IBT.js");
61
+ var import_chunk_DNBGUGMK = require("./chunk-DNBGUGMK.js");
62
+ var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
63
+ var import_chunk_YQ4BHVLI = require("./chunk-YQ4BHVLI.js");
64
64
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
65
65
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
66
66
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
@@ -68,7 +68,7 @@ var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
68
68
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
69
69
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
70
70
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
71
- var import_chunk_ZIFBTC6Y = require("./chunk-ZIFBTC6Y.js");
71
+ var import_chunk_CILEY36B = require("./chunk-CILEY36B.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"));
@@ -79,7 +79,7 @@ var import_path2 = __toESM(require("path"));
79
79
  var import_get_platform2 = require("@prisma/get-platform");
80
80
  var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
81
81
  Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
82
- defining a ${(0, import_chunk_PG5FDKSF.green)(`migrate.adapter`)} in ${(0, import_chunk_PG5FDKSF.green)(`prisma.config.ts`)}.
82
+ defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
83
83
 
84
84
  More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/schema-engine-limitations")}
85
85
  `;
@@ -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_HCLB23CV.prismaSchemaWasm.debug_panic();
105
+ import_chunk_YQ4BHVLI.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_NNDSWLTF.lintSchema)({ schemas: formattedMultipleSchemas2 });
122
+ const lintDiagnostics2 = (0, import_chunk_7RFO7IBT.lintSchema)({ schemas: formattedMultipleSchemas2 });
123
123
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
124
124
  });
125
- const lintWarnings = (0, import_chunk_NNDSWLTF.getLintWarningsAsText)(lintDiagnostics);
125
+ const lintWarnings = (0, import_chunk_7RFO7IBT.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_HCLB23CV.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
152
+ const formattedSchema = import_chunk_YQ4BHVLI.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
153
153
  return formattedSchema;
154
154
  }
155
155
  async function loadSchemaContext({
@@ -163,13 +163,13 @@ async function loadSchemaContext({
163
163
  } = {}) {
164
164
  let schemaResult = null;
165
165
  if (allowNull) {
166
- schemaResult = await (0, import_chunk_ZCBEMBHR.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
166
+ schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
167
167
  argumentName: schemaPathArgumentName,
168
168
  cwd
169
169
  });
170
170
  if (!schemaResult) return null;
171
171
  } else {
172
- schemaResult = await (0, import_chunk_ZCBEMBHR.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
172
+ schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
173
173
  argumentName: schemaPathArgumentName,
174
174
  cwd
175
175
  });
@@ -184,9 +184,9 @@ async function processSchemaResult({
184
184
  }) {
185
185
  const loadedFromPathForLogMessages = import_path.default.relative(cwd, schemaResult.schemaPath);
186
186
  if (printLoadMessage) {
187
- (0, import_chunk_ZCBEMBHR.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
187
+ (0, import_chunk_EYVG6XQS.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
188
188
  }
189
- const configFromPsl = await (0, import_chunk_VYQWNWBL.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
189
+ const configFromPsl = await (0, import_chunk_XP7WVNLW.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
190
190
  const primaryDatasource = configFromPsl.datasources.at(0);
191
191
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
192
192
  return {
@@ -208,7 +208,7 @@ function primaryDatasourceDirectory(primaryDatasource) {
208
208
  }
209
209
  return null;
210
210
  }
211
- var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_ZIFBTC6Y.require_p_map)());
211
+ var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_CILEY36B.require_p_map)());
212
212
  var debug2 = (0, import_debug2.default)("prisma:getGenerators");
213
213
  async function getGenerators(options) {
214
214
  if (options.registry === void 0 && options.providerAliases !== void 0) {
@@ -246,7 +246,7 @@ async function getGenerators(options) {
246
246
  }
247
247
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
248
248
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
249
- const dmmf = await (0, import_chunk_YU3N5MWB.getDMMF)({
249
+ const dmmf = await (0, import_chunk_3PZELVH3.getDMMF)({
250
250
  datamodel: schemaContext.schemaFiles,
251
251
  previewFeatures
252
252
  });
@@ -297,8 +297,8 @@ You need to define \`output\` in the generator block in the schema file.`
297
297
  fromEnvVar: null
298
298
  };
299
299
  }
300
- const datamodel = (0, import_chunk_F44R72ET.mergeSchemas)({ schemas: schemaContext.schemaFiles });
301
- const envPaths = await (0, import_chunk_WXRTT6AT.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
300
+ const datamodel = (0, import_chunk_DNBGUGMK.mergeSchemas)({ schemas: schemaContext.schemaFiles });
301
+ const envPaths = await (0, import_chunk_XLPPGCBH.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
302
302
  const options2 = {
303
303
  datamodel,
304
304
  datasources: schemaContext.datasources,
@@ -389,7 +389,7 @@ generator gen {
389
389
  debug2({ generatorBinaryPaths });
390
390
  generator.setBinaryPaths(generatorBinaryPaths);
391
391
  if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
392
- const customDmmf = await (0, import_chunk_YU3N5MWB.getDMMF)({
392
+ const customDmmf = await (0, import_chunk_3PZELVH3.getDMMF)({
393
393
  datamodel: schemaContext.schemaFiles,
394
394
  previewFeatures
395
395
  });
@@ -510,7 +510,7 @@ function checkUnsupportedDataProxy({
510
510
  }
511
511
  }
512
512
  if (!schemaContext?.primaryDatasource) return;
513
- const url = (0, import_chunk_VYQWNWBL.resolveUrl)((0, import_chunk_VYQWNWBL.getEffectiveUrl)(schemaContext.primaryDatasource));
513
+ const url = (0, import_chunk_XP7WVNLW.resolveUrl)((0, import_chunk_XP7WVNLW.getEffectiveUrl)(schemaContext.primaryDatasource));
514
514
  if (url?.startsWith("prisma://")) {
515
515
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
516
516
  }
@@ -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_SFFH45R3_exports = {};
20
- __export(chunk_SFFH45R3_exports, {
19
+ var chunk_AZZVNSJU_exports = {};
20
+ __export(chunk_AZZVNSJU_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_SFFH45R3_exports);
24
- var import_chunk_X4L5SQSX = require("./chunk-X4L5SQSX.js");
25
- var packageJson = (0, import_chunk_X4L5SQSX.require_package)();
23
+ module.exports = __toCommonJS(chunk_AZZVNSJU_exports);
24
+ var import_chunk_WKKMDPTL = require("./chunk-WKKMDPTL.js");
25
+ var packageJson = (0, import_chunk_WKKMDPTL.require_package)();
26
26
  var version = packageJson.version;
@@ -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_X4L5SQSX_exports = {};
20
- __export(chunk_X4L5SQSX_exports, {
19
+ var chunk_BPDSYUHC_exports = {};
20
+ __export(chunk_BPDSYUHC_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_X4L5SQSX_exports);
23
+ module.exports = __toCommonJS(chunk_BPDSYUHC_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) {
@@ -113,8 +113,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
113
113
  "@prisma/generator": "workspace:*",
114
114
  "@prisma/generator-helper": "workspace:*",
115
115
  "@prisma/get-platform": "workspace:*",
116
- "@prisma/prisma-schema-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
117
- "@prisma/schema-engine-wasm": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
116
+ "@prisma/prisma-schema-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
117
+ "@prisma/schema-engine-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
118
118
  "@prisma/schema-files-loader": "workspace:*",
119
119
  arg: "5.0.2",
120
120
  prompts: "2.4.2"