@prisma/internals 6.3.0-dev.3 → 6.3.0-dev.30

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 (91) hide show
  1. package/dist/{chunk-3372IJGL.js → chunk-23KNNWFV.js} +5 -5
  2. package/dist/{chunk-5TKUIA2N.js → chunk-3AQTHGVM.js} +15 -15
  3. package/dist/{chunk-Z6DZL6LV.js → chunk-3LRAYNL7.js} +17 -9
  4. package/dist/{chunk-KKMREGHN.js → chunk-53LS3WUO.js} +143 -94
  5. package/dist/{chunk-S3323RUL.js → chunk-5RV3EMX6.js} +9 -9
  6. package/dist/{chunk-CXEMRKV4.js → chunk-6TXVGFQA.js} +6 -6
  7. package/dist/{chunk-IF5LNELI.js → chunk-75IJA7S6.js} +58 -58
  8. package/dist/{chunk-QRH3IW57.js → chunk-7D7A52FN.js} +14 -14
  9. package/dist/{chunk-BOFY2TO3.js → chunk-7DXNVIGH.js} +14 -14
  10. package/dist/{chunk-QTXYAZFX.js → chunk-AC6EAR56.js} +5 -5
  11. package/dist/{chunk-CZDIXJEO.js → chunk-B2T5HDW7.js} +257 -11
  12. package/dist/{chunk-KBUXZLUK.js → chunk-BJJC3EM6.js} +15 -15
  13. package/dist/{chunk-FL7RUKAY.js → chunk-CUNLQYT2.js} +5 -5
  14. package/dist/{chunk-N6K7M2HZ.js → chunk-DZYINYAA.js} +5 -5
  15. package/dist/{chunk-F36IS4M5.js → chunk-FZSDRXR2.js} +14 -14
  16. package/dist/{chunk-TFSZCVKC.js → chunk-G4BGJ6IP.js} +5 -5
  17. package/dist/{chunk-UF22EKDO.js → chunk-GQNVQM3C.js} +16 -8
  18. package/dist/chunk-HB2Q7X5H.js +30 -0
  19. package/dist/{chunk-GR66UWCB.js → chunk-HNODZJQY.js} +13 -13
  20. package/dist/{chunk-2XRDQCIA.js → chunk-I7IEEULS.js} +5 -5
  21. package/dist/{chunk-EKBX4J6O.js → chunk-IWJ2BUYF.js} +7 -7
  22. package/dist/{chunk-PPCNLYSB.js → chunk-J7ZPY2XA.js} +4 -4
  23. package/dist/{chunk-6E73JK56.js → chunk-JYNMFYNQ.js} +5 -5
  24. package/dist/{chunk-5W4PVTZB.js → chunk-KGODEU5E.js} +13 -13
  25. package/dist/{chunk-X4U4GLWH.js → chunk-KRWS7JB4.js} +5 -4
  26. package/dist/{chunk-4SR6BQUO.js → chunk-KUARZHFC.js} +5 -5
  27. package/dist/{chunk-YXTH42CI.js → chunk-LKCSRT5B.js} +14 -14
  28. package/dist/{chunk-WEPKBCTL.js → chunk-MHCPKNLY.js} +58 -58
  29. package/dist/{chunk-QJZIYUVB.js → chunk-NXIWDQBF.js} +4 -4
  30. package/dist/{chunk-3DMEILBC.js → chunk-OYLZC5OV.js} +13 -13
  31. package/dist/{chunk-KEBDP2C3.js → chunk-PIPE5DSU.js} +6 -6
  32. package/dist/{chunk-CKNTB45N.js → chunk-QSAE23KV.js} +8 -3
  33. package/dist/{chunk-P6VBFLWR.js → chunk-QVVSDACW.js} +5 -5
  34. package/dist/{chunk-7NDDRYBS.js → chunk-RZ2XUQZC.js} +5 -5
  35. package/dist/{chunk-UPIULDLZ.js → chunk-SHJNE6T7.js} +8 -8
  36. package/dist/{chunk-ANXKG4FL.js → chunk-UJC7ZJUH.js} +5 -5
  37. package/dist/{chunk-CAJZQGKK.js → chunk-UZ5PXJTV.js} +5 -5
  38. package/dist/{chunk-25RJ7YTB.js → chunk-XKZ6CBLA.js} +3 -3
  39. package/dist/{chunk-E3APO3ZG.js → chunk-Y3OWT3K2.js} +5 -5
  40. package/dist/{chunk-FEBTUSK5.js → chunk-YT2AGLAG.js} +5 -5
  41. package/dist/{chunk-FUUQ6FJ4.js → chunk-YXD4CJDK.js} +25 -17
  42. package/dist/cli/checkUnsupportedDataProxy.js +41 -40
  43. package/dist/cli/getGeneratorSuccessMessage.js +3 -3
  44. package/dist/cli/getSchema.js +46 -45
  45. package/dist/cli/getTypescriptVersion.js +2 -2
  46. package/dist/cli/hashes.js +41 -40
  47. package/dist/client/getClientEngineType.d.ts +2 -1
  48. package/dist/client/getClientEngineType.js +4 -4
  49. package/dist/convertCredentials.js +5 -4
  50. package/dist/engine-commands/errorHelpers.js +4 -4
  51. package/dist/engine-commands/formatSchema.js +40 -39
  52. package/dist/engine-commands/getConfig.js +12 -12
  53. package/dist/engine-commands/getDmmf.js +9 -9
  54. package/dist/engine-commands/getEngineVersion.js +8 -8
  55. package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
  56. package/dist/engine-commands/index.js +51 -50
  57. package/dist/engine-commands/lintSchema.js +8 -8
  58. package/dist/engine-commands/mergeSchemas.js +9 -9
  59. package/dist/engine-commands/queryEngineCommons.js +6 -6
  60. package/dist/engine-commands/validate.js +9 -9
  61. package/dist/get-generators/generatorResolvers/generatorResolvers.js +40 -39
  62. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.js +3 -3
  63. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +40 -39
  64. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.js +3 -3
  65. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +41 -40
  66. package/dist/get-generators/getGenerators.js +43 -42
  67. package/dist/getPackedPackage.js +4 -4
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.js +97 -93
  70. package/dist/resolveBinary.js +7 -7
  71. package/dist/schemaEngineCommands.js +8 -8
  72. package/dist/sendPanic.js +40 -39
  73. package/dist/utils/cloudflareD1.js +4 -4
  74. package/dist/utils/fs-functional.js +10 -10
  75. package/dist/utils/fs-utils.js +8 -8
  76. package/dist/utils/getEnvPaths.js +40 -39
  77. package/dist/utils/getGitHubIssueUrl.js +4 -4
  78. package/dist/utils/getVersionFromPackageJson.js +3 -3
  79. package/dist/utils/handleEngineLoadingErrors.js +3 -3
  80. package/dist/utils/handlePanic.js +40 -39
  81. package/dist/utils/load.js +4 -4
  82. package/dist/utils/loadEnvFile.js +40 -39
  83. package/dist/utils/prismaPostgres.d.ts +3 -0
  84. package/dist/utils/prismaPostgres.js +27 -0
  85. package/dist/utils/prismaPostgres.test.d.ts +1 -0
  86. package/dist/utils/prismaPostgres.test.js +15 -0
  87. package/dist/wasm.js +4 -4
  88. package/package.json +20 -12
  89. package/dist/chunk-BONFK27U.js +0 -47
  90. package/dist/typescript-AILDXN3I.js +0 -205230
  91. package/dist/typescript-WN4QH2CP.js +0 -205192
@@ -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_3372IJGL_exports = {};
20
- __export(chunk_3372IJGL_exports, {
19
+ var chunk_23KNNWFV_exports = {};
20
+ __export(chunk_23KNNWFV_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_3372IJGL_exports);
27
+ module.exports = __toCommonJS(chunk_23KNNWFV_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_4SR6BQUO = require("./chunk-4SR6BQUO.js");
29
+ var import_chunk_KUARZHFC = require("./chunk-KUARZHFC.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_4SR6BQUO.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_KUARZHFC.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -26,22 +26,22 @@ 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_5TKUIA2N_exports = {};
30
- __export(chunk_5TKUIA2N_exports, {
29
+ var chunk_3AQTHGVM_exports = {};
30
+ __export(chunk_3AQTHGVM_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_5TKUIA2N_exports);
37
+ module.exports = __toCommonJS(chunk_3AQTHGVM_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
39
+ var import_chunk_6TXVGFQA = require("./chunk-6TXVGFQA.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_CAJZQGKK = require("./chunk-CAJZQGKK.js");
41
+ var import_chunk_UZ5PXJTV = require("./chunk-UZ5PXJTV.js");
42
42
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
44
- var import_chunk_7NDDRYBS = require("./chunk-7NDDRYBS.js");
43
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
44
+ var import_chunk_RZ2XUQZC = require("./chunk-RZ2XUQZC.js");
45
45
  var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
46
46
  var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
47
47
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
@@ -53,7 +53,7 @@ var debug = (0, import_debug.default)("prisma:getConfig");
53
53
  var SCHEMA_VALIDATION_ERROR_CODE = "P1012";
54
54
  var GetConfigError = class extends Error {
55
55
  constructor(params) {
56
- const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
56
+ const constructedErrorMessage = (0, import_chunk_XKZ6CBLA.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
57
57
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
58
58
  return `${reason}
59
59
  ${errorCodeMessage}
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
65
65
  }).exhaustive();
66
66
  const errorMessageWithContext = `${constructedErrorMessage}
67
67
  [Context: getConfig]`;
68
- super((0, import_chunk_CAJZQGKK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_UZ5PXJTV.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_CXEMRKV4.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_6TXVGFQA.createDebugErrorType)(debug, "getConfigWasm");
87
87
  debug(`Using getConfig Wasm`);
88
88
  const configEither = (0, import_function.pipe)(
89
89
  (0, import_chunk_7MD6344A.tryCatch)(
90
90
  () => {
91
91
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
92
92
  debug("Triggering a Rust panic...");
93
- import_chunk_7NDDRYBS.prismaSchemaWasm.debug_panic();
93
+ import_chunk_RZ2XUQZC.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_7NDDRYBS.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_RZ2XUQZC.prismaSchemaWasm.get_config(params);
102
102
  return data;
103
103
  },
104
104
  (e) => ({
@@ -140,7 +140,7 @@ async function getConfig(options) {
140
140
  }
141
141
  return Promise.resolve(data);
142
142
  }
143
- const error = (0, import_chunk_25RJ7YTB.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
143
+ const error = (0, import_chunk_XKZ6CBLA.z)(configEither.left).with({ type: "wasm-error" }, (e) => {
144
144
  debugErrorType(e);
145
145
  if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
146
146
  const { message, stack } = (0, import_chunk_A4QWQE3W.getWasmError)(e.error);
@@ -160,12 +160,12 @@ async function getConfig(options) {
160
160
  return panic;
161
161
  }
162
162
  const errorOutput = e.error.message;
163
- return new GetConfigError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_6TXVGFQA.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_CXEMRKV4.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_6TXVGFQA.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).otherwise((e) => {
@@ -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_Z6DZL6LV_exports = {};
20
- __export(chunk_Z6DZL6LV_exports, {
19
+ var chunk_3LRAYNL7_exports = {};
20
+ __export(chunk_3LRAYNL7_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_Z6DZL6LV_exports);
23
+ module.exports = __toCommonJS(chunk_3LRAYNL7_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.3.0-dev.3",
29
+ version: "6.3.0-dev.30",
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",
@@ -66,10 +66,10 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
66
66
  "checkpoint-client": "1.1.33",
67
67
  "cli-truncate": "2.1.0",
68
68
  dotenv: "16.4.7",
69
- esbuild: "0.24.0",
69
+ esbuild: "0.24.2",
70
70
  "escape-string-regexp": "4.0.0",
71
71
  execa: "5.1.1",
72
- "fast-glob": "3.3.2",
72
+ "fast-glob": "3.3.3",
73
73
  "find-up": "5.0.0",
74
74
  "fp-ts": "2.16.9",
75
75
  "fs-extra": "11.1.1",
@@ -91,7 +91,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
91
91
  "p-map": "4.0.0",
92
92
  "read-package-up": "11.0.0",
93
93
  "replace-string": "3.1.0",
94
- resolve: "1.22.8",
94
+ resolve: "1.22.10",
95
95
  "string-width": "4.2.3",
96
96
  "strip-ansi": "6.0.1",
97
97
  "strip-indent": "3.0.0",
@@ -100,7 +100,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
100
100
  "terminal-link": "2.1.1",
101
101
  tmp: "0.2.3",
102
102
  "ts-node": "10.9.2",
103
- "ts-pattern": "5.6.0",
103
+ "ts-pattern": "5.6.2",
104
104
  "ts-toolbelt": "9.6.0",
105
105
  typescript: "5.4.5",
106
106
  yarn: "1.22.22"
@@ -111,11 +111,19 @@ 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.3.0-4.66ff51574f705989a0e2c8bf6f1659bee5eb9517",
114
+ "@prisma/prisma-schema-wasm": "6.3.0-17.acc0b9dd43eb689cbd20c9470515d719db10d0b0",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
118
118
  },
119
+ peerDependencies: {
120
+ typescript: ">=5.1.0"
121
+ },
122
+ peerDependenciesMeta: {
123
+ typescript: {
124
+ optional: true
125
+ }
126
+ },
119
127
  sideEffects: false
120
128
  };
121
129
  }