@prisma/internals 6.19.0-integration-next.22 → 6.20.0-dev.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 (116) hide show
  1. package/dist/{chunk-W6ZWX546.js → chunk-2GUGGLPK.js} +71 -38
  2. package/dist/chunk-3FP46GUV.js +471 -0
  3. package/dist/chunk-46ABODUM.js +186 -0
  4. package/dist/{chunk-EK3NXGEC.js → chunk-4BHQFID2.js} +71 -38
  5. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  6. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  7. package/dist/{chunk-6QTJ35DP.js → chunk-57ULTP7W.js} +12 -12
  8. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  9. package/dist/{chunk-SU3YFXA4.js → chunk-5GGLNSGY.js} +5 -5
  10. package/dist/{chunk-33FYCEWF.js → chunk-6JXBYDIF.js} +20 -14
  11. package/dist/chunk-6TTRTZXU.js +37 -0
  12. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  13. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  14. package/dist/{chunk-6FP5PMMX.js → chunk-ADEOIJ4A.js} +5 -5
  15. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  16. package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
  17. package/dist/{chunk-5B5U2HVK.js → chunk-CCLAMTCA.js} +8 -7
  18. package/dist/{chunk-STBFWZNS.js → chunk-CKEEY4OR.js} +5 -5
  19. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  20. package/dist/chunk-DZYINYAA.js +68 -0
  21. package/dist/{chunk-HQE53CGA.js → chunk-E4H6V3Z4.js} +11 -11
  22. package/dist/chunk-ERSH2BQA.js +58 -0
  23. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  24. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  25. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  26. package/dist/{chunk-MEBZK5AR.js → chunk-FHZ5QJLR.js} +5 -5
  27. package/dist/{chunk-3CAPLXKF.js → chunk-FYZCPL2Z.js} +8 -5
  28. package/dist/{chunk-DOO45FN6.js → chunk-GMW36QQF.js} +7 -7
  29. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  30. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  31. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  32. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  33. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  34. package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  35. package/dist/{chunk-2KREE2OX.js → chunk-JTS4UPHJ.js} +5 -5
  36. package/dist/{chunk-G4R3KIUK.js → chunk-KFYHEWEK.js} +11 -11
  37. package/dist/{chunk-HBU4ZVCA.js → chunk-LV27YCGC.js} +11 -11
  38. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  39. package/dist/{chunk-4YDN7W7B.js → chunk-OAT7ZJED.js} +20 -7
  40. package/dist/chunk-PZMRR772.js +41 -0
  41. package/dist/{chunk-25ON3V6C.js → chunk-QJ3QPUM5.js} +5 -5
  42. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  43. package/dist/{chunk-A547MKQQ.js → chunk-SOKSKSEX.js} +20 -14
  44. package/dist/chunk-T2PM5TKT.js +55 -0
  45. package/dist/{chunk-UCO5QBOS.js → chunk-TBR6SNKL.js} +5 -5
  46. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  47. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  48. package/dist/{chunk-IHC4ZVPQ.js → chunk-UHI6VYFX.js} +5 -5
  49. package/dist/{chunk-AZFHZFLX.js → chunk-UPP63U4Q.js} +11 -11
  50. package/dist/{chunk-IU77SCOB.js → chunk-UQUWZJVN.js} +9 -9
  51. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  52. package/dist/{chunk-TU4SG3WD.js → chunk-WYQJ4JWO.js} +12 -12
  53. package/dist/{chunk-BKHAMV6G.js → chunk-XNNQS646.js} +9 -8
  54. package/dist/{chunk-KZ5SMOBR.js → chunk-XUQH2KVG.js} +5 -5
  55. package/dist/cli/checkUnsupportedDataProxy.js +62 -56
  56. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +62 -56
  57. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  58. package/dist/cli/getSchema.d.ts +15 -1
  59. package/dist/cli/getSchema.js +5 -4
  60. package/dist/cli/hashes.js +4 -4
  61. package/dist/cli/schemaContext.d.ts +3 -1
  62. package/dist/cli/schemaContext.js +62 -56
  63. package/dist/client/getClientEngineType.d.ts +7 -0
  64. package/dist/client/getClientEngineType.js +26 -0
  65. package/dist/dotenvExpand.d.ts +35 -0
  66. package/dist/dotenvExpand.js +25 -0
  67. package/dist/engine-commands/errorHelpers.js +4 -4
  68. package/dist/engine-commands/formatSchema.js +61 -55
  69. package/dist/engine-commands/getConfig.d.ts +1 -0
  70. package/dist/engine-commands/getConfig.js +13 -13
  71. package/dist/engine-commands/getDmmf.js +10 -10
  72. package/dist/engine-commands/getEngineVersion.js +9 -6
  73. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  74. package/dist/engine-commands/getEnginesInfo.js +9 -7
  75. package/dist/engine-commands/index.js +73 -67
  76. package/dist/engine-commands/lintSchema.js +9 -9
  77. package/dist/engine-commands/mergeSchemas.js +10 -10
  78. package/dist/engine-commands/queryEngineCommons.js +6 -6
  79. package/dist/engine-commands/validate.js +10 -10
  80. package/dist/errorReporting.js +6 -6
  81. package/dist/get-generators/getGenerators.d.ts +1 -0
  82. package/dist/get-generators/getGenerators.js +64 -58
  83. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  84. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  85. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  86. package/dist/getPackedPackage.js +3 -4
  87. package/dist/index.d.ts +8 -1
  88. package/dist/index.js +115 -101
  89. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  90. package/dist/resolveBinary.js +7 -8
  91. package/dist/schemaEngineCommands.js +8 -9
  92. package/dist/sendPanic.js +4 -4
  93. package/dist/utils/canPrompt.js +3 -3
  94. package/dist/utils/cloudflareD1.js +3 -3
  95. package/dist/utils/drawBox.js +2 -2
  96. package/dist/utils/fs-functional.js +10 -10
  97. package/dist/utils/fs-utils.js +8 -8
  98. package/dist/utils/getEnvPaths.d.ts +14 -0
  99. package/dist/utils/getEnvPaths.js +29 -0
  100. package/dist/utils/getVersionFromPackageJson.js +3 -3
  101. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  102. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  103. package/dist/utils/handlePanic.js +8 -8
  104. package/dist/utils/link.js +2 -2
  105. package/dist/utils/load.d.ts +6 -0
  106. package/dist/utils/load.js +28 -0
  107. package/dist/utils/loadEnvFile.d.ts +10 -0
  108. package/dist/utils/loadEnvFile.js +30 -0
  109. package/dist/utils/missingDatasource.js +3 -3
  110. package/dist/utils/missingGeneratorMessage.js +5 -5
  111. package/dist/utils/serializeQueryEngineName.js +2 -2
  112. package/dist/utils/tryLoadEnvs.d.ts +25 -0
  113. package/dist/utils/tryLoadEnvs.js +30 -0
  114. package/dist/wasm.js +5 -5
  115. package/package.json +16 -15
  116. package/dist/chunk-DYV47NUW.js +0 -796
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_MYLPCGTT_exports = {};
20
- __export(chunk_MYLPCGTT_exports, {
19
+ var chunk_7QC5VORA_exports = {};
20
+ __export(chunk_7QC5VORA_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_MYLPCGTT_exports);
24
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
23
+ module.exports = __toCommonJS(chunk_7QC5VORA_exports);
24
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
25
  var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
@@ -36,5 +36,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
36
36
  )}
37
37
 
38
38
  More information in our documentation:
39
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
39
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
40
40
  `;
@@ -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_6FP5PMMX_exports = {};
20
- __export(chunk_6FP5PMMX_exports, {
19
+ var chunk_ADEOIJ4A_exports = {};
20
+ __export(chunk_ADEOIJ4A_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_6FP5PMMX_exports);
28
- var import_chunk_MEBZK5AR = require("./chunk-MEBZK5AR.js");
27
+ module.exports = __toCommonJS(chunk_ADEOIJ4A_exports);
28
+ var import_chunk_CKEEY4OR = require("./chunk-CKEEY4OR.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_MEBZK5AR.prismaSchemaWasm.lint(JSON.stringify(schemas));
32
+ const lintResult = import_chunk_CKEEY4OR.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
33
  const lintDiagnostics = JSON.parse(lintResult);
34
34
  return lintDiagnostics;
35
35
  }
@@ -16,32 +16,27 @@ 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_TGA7DC5A_exports = {};
20
- __export(chunk_TGA7DC5A_exports, {
19
+ var chunk_AX5N26KG_exports = {};
20
+ __export(chunk_AX5N26KG_exports, {
21
21
  missingGeneratorMessage: () => missingGeneratorMessage,
22
22
  missingModelMessage: () => missingModelMessage,
23
23
  missingModelMessageMongoDB: () => missingModelMessageMongoDB
24
24
  });
25
- module.exports = __toCommonJS(chunk_TGA7DC5A_exports);
26
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
25
+ module.exports = __toCommonJS(chunk_AX5N26KG_exports);
26
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
27
27
  var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.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)(
31
31
  "schema.prisma"
32
32
  )}, so nothing will be generated.
33
- Add the Prisma Client generator like this:
33
+ You can define them like this:
34
34
 
35
35
  ${(0, import_chunk_PG5FDKSF.bold)(
36
36
  (0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
37
- provider = "prisma-client"
38
- output = "../src/generated/prisma"
37
+ provider = "prisma-client-js"
39
38
  }`)
40
- )}
41
-
42
- More information in our documentation:
43
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
44
- `;
39
+ )}`;
45
40
  var missingModelMessage = `
46
41
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
47
42
  "schema.prisma"
@@ -57,7 +52,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
57
52
  )}
58
53
 
59
54
  More information in our documentation:
60
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
55
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
61
56
  `;
62
57
  var missingModelMessageMongoDB = `
63
58
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
@@ -74,5 +69,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
74
69
  )}
75
70
 
76
71
  More information in our documentation:
77
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
72
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
78
73
  `;