@prisma/internals 6.1.0-integration-expose-deserialize-raw-result.1 → 6.1.0-integration-engines-6-1-0-18-fixup-wasm-response-json-serialization-span-8988abfac9afb8e5e01a2f1862852f4e8ce393e0.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 (70) hide show
  1. package/dist/{chunk-H3T4L34H.js → chunk-25RJ7YTB.js} +88 -83
  2. package/dist/{chunk-S4LINK5Y.js → chunk-2XRDQCIA.js} +5 -5
  3. package/dist/{chunk-HMGEWJDY.js → chunk-3BND5XB4.js} +232 -47
  4. package/dist/{chunk-2DXAGCPS.js → chunk-3DMEILBC.js} +11 -11
  5. package/dist/{chunk-RFYKY4ZX.js → chunk-4GNGZASJ.js} +13 -13
  6. package/dist/{chunk-4CLLOZ4P.js → chunk-6O3RM473.js} +14 -41
  7. package/dist/{chunk-LBUU2HOZ.js → chunk-CATPCZXZ.js} +5 -5
  8. package/dist/{chunk-I4467NNA.js → chunk-CXEMRKV4.js} +6 -6
  9. package/dist/{chunk-SM6BW5WS.js → chunk-DQBUSCTW.js} +5 -5
  10. package/dist/{chunk-7XBTYHXU.js → chunk-DU6YFDGB.js} +13 -13
  11. package/dist/{chunk-2PP7BHKH.js → chunk-EIYXDI3W.js} +5 -5
  12. package/dist/{chunk-V2VWODV3.js → chunk-EKBX4J6O.js} +5 -5
  13. package/dist/{chunk-AVNRICGK.js → chunk-FTK3GBO7.js} +31 -31
  14. package/dist/{chunk-AIHJCXER.js → chunk-I6LM42RJ.js} +14 -41
  15. package/dist/{chunk-NM5GRZUZ.js → chunk-IYXVA7OY.js} +14 -14
  16. package/dist/{chunk-T2RTHBYQ.js → chunk-L75CHMYA.js} +6 -6
  17. package/dist/{chunk-RXBD6IHH.js → chunk-LGEHUUYU.js} +15 -15
  18. package/dist/{chunk-J4MA2JIK.js → chunk-N6K7M2HZ.js} +5 -5
  19. package/dist/{chunk-D7APN3FK.js → chunk-PNRZCXMD.js} +5 -5
  20. package/dist/{chunk-LATZTP6I.js → chunk-PQB5QAW5.js} +5 -5
  21. package/dist/{chunk-SLBBRUQS.js → chunk-QTXYAZFX.js} +5 -5
  22. package/dist/{chunk-IPS4ITPM.js → chunk-QYSQOYV2.js} +5 -5
  23. package/dist/{chunk-OB2465FH.js → chunk-S3JFEZGR.js} +5 -5
  24. package/dist/{chunk-H3ES3W4I.js → chunk-UL4YZ6LT.js} +7 -7
  25. package/dist/{chunk-HPF5G47V.js → chunk-UPIULDLZ.js} +5 -5
  26. package/dist/{chunk-PDG6GFQR.js → chunk-VTNKV2ZC.js} +5 -5
  27. package/dist/{chunk-SIIR4XOP.js → chunk-VTWWFXFQ.js} +14 -14
  28. package/dist/{chunk-PC46MJ4M.js → chunk-X7WAIDOA.js} +15 -15
  29. package/dist/{chunk-D6COOP2R.js → chunk-XRQRHLMP.js} +36 -807
  30. package/dist/cli/checkUnsupportedDataProxy.js +25 -25
  31. package/dist/cli/getSchema.js +30 -30
  32. package/dist/cli/hashes.js +25 -25
  33. package/dist/engine-commands/errorHelpers.js +4 -4
  34. package/dist/engine-commands/formatSchema.js +24 -24
  35. package/dist/engine-commands/getConfig.js +12 -12
  36. package/dist/engine-commands/getDmmf.js +9 -9
  37. package/dist/engine-commands/getEngineVersion.js +8 -8
  38. package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
  39. package/dist/engine-commands/index.js +35 -35
  40. package/dist/engine-commands/lintSchema.js +8 -8
  41. package/dist/engine-commands/mergeSchemas.js +9 -9
  42. package/dist/engine-commands/queryEngineCommons.js +6 -6
  43. package/dist/engine-commands/validate.js +9 -9
  44. package/dist/get-generators/generatorResolvers/generatorResolvers.js +24 -24
  45. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +24 -24
  46. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +25 -25
  47. package/dist/get-generators/getGenerators.js +27 -27
  48. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
  49. package/dist/index.js +65 -65
  50. package/dist/resolveBinary.js +7 -7
  51. package/dist/schemaEngineCommands.js +8 -8
  52. package/dist/sendPanic.js +24 -24
  53. package/dist/tracing/types.d.ts +26 -16
  54. package/dist/utils/cloudflareD1.js +3 -3
  55. package/dist/utils/getEnvPaths.js +24 -24
  56. package/dist/utils/getGitHubIssueUrl.js +4 -4
  57. package/dist/utils/getVersionFromPackageJson.js +3 -3
  58. package/dist/utils/handleEngineLoadingErrors.js +3 -3
  59. package/dist/utils/handlePanic.js +24 -24
  60. package/dist/utils/load.js +4 -4
  61. package/dist/utils/loadEnvFile.js +24 -24
  62. package/dist/utils/tryLoadEnvs.js +5 -5
  63. package/dist/wasm.js +4 -4
  64. package/package.json +10 -10
  65. package/dist/chunk-4RWCRJYD.js +0 -166
  66. package/dist/chunk-D4MCOTL5.js +0 -122
  67. package/dist/chunk-FPHZVRV4.js +0 -110
  68. package/dist/chunk-G7LL2H2O.js +0 -54
  69. package/dist/chunk-JMZHUHCC.js +0 -177
  70. package/dist/chunk-RQPDQSHK.js +0 -1429
@@ -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_RXBD6IHH_exports = {};
30
- __export(chunk_RXBD6IHH_exports, {
29
+ var chunk_LGEHUUYU_exports = {};
30
+ __export(chunk_LGEHUUYU_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_RXBD6IHH_exports);
37
+ module.exports = __toCommonJS(chunk_LGEHUUYU_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
39
+ var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_D7APN3FK = require("./chunk-D7APN3FK.js");
41
+ var import_chunk_PQB5QAW5 = require("./chunk-PQB5QAW5.js");
42
42
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
44
- var import_chunk_LBUU2HOZ = require("./chunk-LBUU2HOZ.js");
43
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
44
+ var import_chunk_CATPCZXZ = require("./chunk-CATPCZXZ.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_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
56
+ const constructedErrorMessage = (0, import_chunk_25RJ7YTB.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_D7APN3FK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_PQB5QAW5.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_I4467NNA.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_CXEMRKV4.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_LBUU2HOZ.prismaSchemaWasm.debug_panic();
93
+ import_chunk_CATPCZXZ.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_LBUU2HOZ.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_CATPCZXZ.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_H3T4L34H.$)(configEither.left).with({ type: "wasm-error" }, (e) => {
143
+ const error = (0, import_chunk_25RJ7YTB.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_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_CXEMRKV4.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_I4467NNA.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_CXEMRKV4.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).otherwise((e) => {
@@ -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_J4MA2JIK_exports = {};
20
- __export(chunk_J4MA2JIK_exports, {
19
+ var chunk_N6K7M2HZ_exports = {};
20
+ __export(chunk_N6K7M2HZ_exports, {
21
21
  handleLibraryLoadingErrors: () => handleLibraryLoadingErrors
22
22
  });
23
- module.exports = __toCommonJS(chunk_J4MA2JIK_exports);
24
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
23
+ module.exports = __toCommonJS(chunk_N6K7M2HZ_exports);
24
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
25
25
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
26
26
  var import_get_platform = require("@prisma/get-platform");
27
27
  function handleLibraryLoadingErrors(args) {
@@ -32,7 +32,7 @@ function handleLibraryLoadingErrors(args) {
32
32
  "https://pris.ly/d/system-requirements"
33
33
  )}`;
34
34
  const errorTitle = `Unable to require(\`${(0, import_chunk_PG5FDKSF.dim)(args.id)}\`).`;
35
- const potentialReasonMessage = (0, import_chunk_H3T4L34H.$)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
35
+ const potentialReasonMessage = (0, import_chunk_25RJ7YTB.z)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
36
36
  ({ message }) => hasLinkingProblem && message.includes("libz"),
37
37
  () => {
38
38
  return `${systemLibraryNotFound("libz")}. Please install it and try again.`;
@@ -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_D7APN3FK_exports = {};
20
- __export(chunk_D7APN3FK_exports, {
19
+ var chunk_PNRZCXMD_exports = {};
20
+ __export(chunk_PNRZCXMD_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_D7APN3FK_exports);
24
- var import_chunk_OB2465FH = require("./chunk-OB2465FH.js");
23
+ module.exports = __toCommonJS(chunk_PNRZCXMD_exports);
24
+ var import_chunk_EIYXDI3W = require("./chunk-EIYXDI3W.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_OB2465FH.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_EIYXDI3W.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -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_LATZTP6I_exports = {};
20
- __export(chunk_LATZTP6I_exports, {
19
+ var chunk_PQB5QAW5_exports = {};
20
+ __export(chunk_PQB5QAW5_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_LATZTP6I_exports);
24
- var import_chunk_2PP7BHKH = require("./chunk-2PP7BHKH.js");
23
+ module.exports = __toCommonJS(chunk_PQB5QAW5_exports);
24
+ var import_chunk_S3JFEZGR = require("./chunk-S3JFEZGR.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_2PP7BHKH.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_S3JFEZGR.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -26,14 +26,14 @@ 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_SLBBRUQS_exports = {};
30
- __export(chunk_SLBBRUQS_exports, {
29
+ var chunk_QTXYAZFX_exports = {};
30
+ __export(chunk_QTXYAZFX_exports, {
31
31
  getGitHubIssueUrl: () => getGitHubIssueUrl,
32
32
  wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
33
33
  });
34
- module.exports = __toCommonJS(chunk_SLBBRUQS_exports);
34
+ module.exports = __toCommonJS(chunk_QTXYAZFX_exports);
35
35
  var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
36
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
36
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
37
37
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
38
38
  var import_get_platform = require("@prisma/get-platform");
39
39
  var import_node_process = __toESM(require("node:process"));
@@ -379,7 +379,7 @@ function getGitHubIssueUrl({
379
379
  });
380
380
  }
381
381
  async function wouldYouLikeToCreateANewIssue(options) {
382
- const shouldCreateNewIssue = await (0, import_chunk_H3T4L34H.$)(options.prompt).with(true, async () => {
382
+ const shouldCreateNewIssue = await (0, import_chunk_25RJ7YTB.z)(options.prompt).with(true, async () => {
383
383
  const createNewIssueResponse = await (0, import_prompts.default)({
384
384
  type: "select",
385
385
  name: "value",
@@ -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_IPS4ITPM_exports = {};
20
- __export(chunk_IPS4ITPM_exports, {
19
+ var chunk_QYSQOYV2_exports = {};
20
+ __export(chunk_QYSQOYV2_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_IPS4ITPM_exports);
27
+ module.exports = __toCommonJS(chunk_QYSQOYV2_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_LBUU2HOZ = require("./chunk-LBUU2HOZ.js");
29
+ var import_chunk_CATPCZXZ = require("./chunk-CATPCZXZ.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_LBUU2HOZ.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_CATPCZXZ.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -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_OB2465FH_exports = {};
20
- __export(chunk_OB2465FH_exports, {
19
+ var chunk_S3JFEZGR_exports = {};
20
+ __export(chunk_S3JFEZGR_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_OB2465FH_exports);
24
- var import_chunk_H3ES3W4I = require("./chunk-H3ES3W4I.js");
25
- var packageJson = (0, import_chunk_H3ES3W4I.require_package)();
23
+ module.exports = __toCommonJS(chunk_S3JFEZGR_exports);
24
+ var import_chunk_UL4YZ6LT = require("./chunk-UL4YZ6LT.js");
25
+ var packageJson = (0, import_chunk_UL4YZ6LT.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_H3ES3W4I_exports = {};
20
- __export(chunk_H3ES3W4I_exports, {
19
+ var chunk_UL4YZ6LT_exports = {};
20
+ __export(chunk_UL4YZ6LT_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_H3ES3W4I_exports);
23
+ module.exports = __toCommonJS(chunk_UL4YZ6LT_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.1.0-integration-expose-deserialize-raw-result.1",
29
+ version: "6.1.0-integration-engines-6-1-0-18-fixup-wasm-response-json-serialization-span-8988abfac9afb8e5e01a2f1862852f4e8ce393e0.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",
@@ -65,7 +65,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
65
65
  archiver: "6.0.2",
66
66
  "checkpoint-client": "1.1.33",
67
67
  "cli-truncate": "2.1.0",
68
- dotenv: "16.0.3",
68
+ dotenv: "16.4.7",
69
69
  esbuild: "0.24.0",
70
70
  "escape-string-regexp": "4.0.0",
71
71
  execa: "5.1.1",
@@ -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.2.0",
103
+ "ts-pattern": "5.6.0",
104
104
  "ts-toolbelt": "9.6.0",
105
105
  typescript: "5.4.5",
106
106
  yarn: "1.22.22"
@@ -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.1.0-5.c74f8976aaa3212c16a61537319f9024d0c21e85",
114
+ "@prisma/prisma-schema-wasm": "6.1.0-18.fixup-wasm-response-json-serialization-span-8988abfac9afb8e5e01a2f1862852f4e8ce393e0",
115
115
  "@prisma/schema-files-loader": "workspace:*",
116
116
  arg: "5.0.2",
117
117
  prompts: "2.4.2"
@@ -26,12 +26,12 @@ 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_HPF5G47V_exports = {};
30
- __export(chunk_HPF5G47V_exports, {
29
+ var chunk_UPIULDLZ_exports = {};
30
+ __export(chunk_UPIULDLZ_exports, {
31
31
  locateLocalCloudflareD1: () => locateLocalCloudflareD1
32
32
  });
33
- module.exports = __toCommonJS(chunk_HPF5G47V_exports);
34
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
33
+ module.exports = __toCommonJS(chunk_UPIULDLZ_exports);
34
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
35
35
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
36
36
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
37
  var import_node_path = __toESM(require("node:path"));
@@ -50,7 +50,7 @@ async function locateLocalCloudflareD1({ arg }) {
50
50
  );
51
51
  }
52
52
  if (d1Databases.length > 1) {
53
- const { originalArg, recommendedArg } = (0, import_chunk_H3T4L34H.$)(arg).with("--to-local-d1", (originalArg2) => ({
53
+ const { originalArg, recommendedArg } = (0, import_chunk_25RJ7YTB.z)(arg).with("--to-local-d1", (originalArg2) => ({
54
54
  originalArg: originalArg2,
55
55
  recommendedArg: "--to-url file:"
56
56
  })).with("--from-local-d1", (originalArg2) => ({
@@ -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_PDG6GFQR_exports = {};
20
- __export(chunk_PDG6GFQR_exports, {
19
+ var chunk_VTNKV2ZC_exports = {};
20
+ __export(chunk_VTNKV2ZC_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_PDG6GFQR_exports);
27
+ module.exports = __toCommonJS(chunk_VTNKV2ZC_exports);
28
28
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
29
- var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
29
+ var import_chunk_DQBUSCTW = require("./chunk-DQBUSCTW.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_SM6BW5WS.prismaSchemaWasm.lint(JSON.stringify(schemas));
33
+ const lintResult = import_chunk_DQBUSCTW.prismaSchemaWasm.lint(JSON.stringify(schemas));
34
34
  const lintDiagnostics = JSON.parse(lintResult);
35
35
  return lintDiagnostics;
36
36
  }
@@ -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_SIIR4XOP_exports = {};
30
- __export(chunk_SIIR4XOP_exports, {
29
+ var chunk_VTWWFXFQ_exports = {};
30
+ __export(chunk_VTWWFXFQ_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_SIIR4XOP_exports);
34
+ module.exports = __toCommonJS(chunk_VTWWFXFQ_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
36
+ var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
37
37
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_D7APN3FK = require("./chunk-D7APN3FK.js");
38
+ var import_chunk_PQB5QAW5 = require("./chunk-PQB5QAW5.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
- var import_chunk_LBUU2HOZ = require("./chunk-LBUU2HOZ.js");
40
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
41
+ var import_chunk_CATPCZXZ = require("./chunk-CATPCZXZ.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");
@@ -48,7 +48,7 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
48
48
  var debug = (0, import_debug.default)("prisma:validate");
49
49
  var ValidateError = class extends Error {
50
50
  constructor(params) {
51
- const constructedErrorMessage = (0, import_chunk_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
+ const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
@@ -60,25 +60,25 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: validate]`;
63
- super((0, import_chunk_D7APN3FK.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_PQB5QAW5.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "ValidateError";
65
65
  }
66
66
  };
67
67
  function validate(options) {
68
- const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "validateWasm");
68
+ const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "validateWasm");
69
69
  debug(`Using validate Wasm`);
70
70
  const validateEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
72
72
  () => {
73
73
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
74
74
  debug("Triggering a Rust panic...");
75
- import_chunk_LBUU2HOZ.prismaSchemaWasm.debug_panic();
75
+ import_chunk_CATPCZXZ.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_LBUU2HOZ.prismaSchemaWasm.validate(params);
81
+ import_chunk_CATPCZXZ.prismaSchemaWasm.validate(params);
82
82
  },
83
83
  (e) => ({
84
84
  type: "wasm-error",
@@ -90,7 +90,7 @@ function validate(options) {
90
90
  if ((0, import_chunk_7MD6344A.isRight)(validateEither)) {
91
91
  return;
92
92
  }
93
- const error = (0, import_chunk_H3T4L34H.$)(validateEither.left).with({ type: "wasm-error" }, (e) => {
93
+ const error = (0, import_chunk_25RJ7YTB.z)(validateEither.left).with({ type: "wasm-error" }, (e) => {
94
94
  debugErrorType(e);
95
95
  console.error("");
96
96
  if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
@@ -113,7 +113,7 @@ function validate(options) {
113
113
  return panic;
114
114
  }
115
115
  const errorOutput = e.error.message;
116
- return new ValidateError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
116
+ return new ValidateError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
117
117
  }).exhaustive();
118
118
  throw error;
119
119
  }
@@ -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_PC46MJ4M_exports = {};
30
- __export(chunk_PC46MJ4M_exports, {
29
+ var chunk_X7WAIDOA_exports = {};
30
+ __export(chunk_X7WAIDOA_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_PC46MJ4M_exports);
37
+ module.exports = __toCommonJS(chunk_X7WAIDOA_exports);
38
38
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
39
- var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
39
+ var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
40
40
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
41
- var import_chunk_LATZTP6I = require("./chunk-LATZTP6I.js");
41
+ var import_chunk_PNRZCXMD = require("./chunk-PNRZCXMD.js");
42
42
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
43
- var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
44
- var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
43
+ var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
44
+ var import_chunk_DQBUSCTW = require("./chunk-DQBUSCTW.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_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
56
+ const constructedErrorMessage = (0, import_chunk_25RJ7YTB.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_LATZTP6I.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
+ super((0, import_chunk_PNRZCXMD.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_I4467NNA.createDebugErrorType)(debug, "getConfigWasm");
86
+ const debugErrorType = (0, import_chunk_CXEMRKV4.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_SM6BW5WS.prismaSchemaWasm.debug_panic();
93
+ import_chunk_DQBUSCTW.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_SM6BW5WS.prismaSchemaWasm.get_config(params);
101
+ const data = import_chunk_DQBUSCTW.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_H3T4L34H.$)(configEither.left).with({ type: "wasm-error" }, (e) => {
143
+ const error = (0, import_chunk_25RJ7YTB.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_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
163
+ return new GetConfigError((0, import_chunk_CXEMRKV4.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_I4467NNA.createSchemaValidationError)(e.reason),
168
+ reason: (0, import_chunk_CXEMRKV4.createSchemaValidationError)(e.reason),
169
169
  message: formatErrors(e.error)
170
170
  });
171
171
  }).otherwise((e) => {