@prisma/internals 6.3.0-integration-engines-6-3-0-6-integration-5-22-0-with-simplified-typeinfo-c7d99d9db5129d8b35986b8518c7f10bc8580e03.2 → 6.3.0-integration-simpler-typeinfo-query.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 (99) hide show
  1. package/dist/{chunk-3DMEILBC.js → chunk-2DXAGCPS.js} +11 -11
  2. package/dist/{chunk-4B7QW7H5.js → chunk-2WJPHJ2I.js} +5 -5
  3. package/dist/{chunk-MGZOEY6N.js → chunk-3U2ANLD3.js} +6 -6
  4. package/dist/{chunk-4O27JVUK.js → chunk-44JHENE6.js} +41 -14
  5. package/dist/{chunk-KQOJB3ZW.js → chunk-4NFLAUKD.js} +70 -70
  6. package/dist/chunk-4RWCRJYD.js +166 -0
  7. package/dist/{chunk-5MCWLJSR.js → chunk-5I4BOTBV.js} +9 -3
  8. package/dist/{chunk-ZZLZJFQD.js → chunk-5R7AZFMV.js} +5 -5
  9. package/dist/{chunk-6QXYYIUQ.js → chunk-5UJZARUY.js} +17 -17
  10. package/dist/{chunk-D6NVMO5B.js → chunk-67KWF6KB.js} +5 -5
  11. package/dist/{chunk-OA3Y3SYB.js → chunk-B44XJG7K.js} +5 -5
  12. package/dist/{chunk-6HMDWGVB.js → chunk-CKVVVLEH.js} +8 -8
  13. package/dist/{chunk-MPJLR4LI.js → chunk-COFXY6NH.js} +41 -14
  14. package/dist/chunk-D4MCOTL5.js +122 -0
  15. package/dist/{chunk-AXVFAZVY.js → chunk-DFG3425X.js} +16 -16
  16. package/dist/chunk-FPHZVRV4.js +110 -0
  17. package/dist/{chunk-S57RMXZW.js → chunk-FTS2IEWX.js} +5 -5
  18. package/dist/chunk-G7LL2H2O.js +54 -0
  19. package/dist/{chunk-25RJ7YTB.js → chunk-H3T4L34H.js} +83 -88
  20. package/dist/{chunk-3BND5XB4.js → chunk-HMGEWJDY.js} +47 -232
  21. package/dist/{chunk-77IC3DNO.js → chunk-IABMG3F4.js} +5 -5
  22. package/dist/{chunk-CXEMRKV4.js → chunk-IAEMHQAC.js} +8 -8
  23. package/dist/{chunk-CZDIXJEO.js → chunk-J3JE5NVO.js} +32 -56
  24. package/dist/{chunk-N6K7M2HZ.js → chunk-J4MA2JIK.js} +5 -5
  25. package/dist/{chunk-IHZ2I7E5.js → chunk-JBUUTZQL.js} +15 -15
  26. package/dist/chunk-JMZHUHCC.js +177 -0
  27. package/dist/{chunk-T6NCATRB.js → chunk-KNNIRRTO.js} +5 -5
  28. package/dist/{chunk-6R6PZCVQ.js → chunk-KPVPQQGU.js} +5 -5
  29. package/dist/{chunk-BNAT44VK.js → chunk-KROMVQBD.js} +9 -9
  30. package/dist/{chunk-TR2BJI77.js → chunk-LXIE6UJ2.js} +961 -79
  31. package/dist/{chunk-EAUIEZK2.js → chunk-MUJIYA44.js} +5 -5
  32. package/dist/{chunk-CGFXOUVQ.js → chunk-OHBFHT5Q.js} +15 -15
  33. package/dist/{chunk-UPIULDLZ.js → chunk-OSOXVAZB.js} +11 -11
  34. package/dist/chunk-RQPDQSHK.js +1429 -0
  35. package/dist/{chunk-2XRDQCIA.js → chunk-S4LINK5Y.js} +5 -5
  36. package/dist/{chunk-D3VAE4HY.js → chunk-UR3LUZY3.js} +17 -17
  37. package/dist/{chunk-EKBX4J6O.js → chunk-V2VWODV3.js} +5 -5
  38. package/dist/{chunk-FT32HRUC.js → chunk-VFU3I6P6.js} +16 -16
  39. package/dist/{chunk-JU7L7EBJ.js → chunk-VJQK3LHU.js} +185 -74
  40. package/dist/{chunk-V2ZF7ETH.js → chunk-WCRKL55L.js} +7 -7
  41. package/dist/{chunk-C47SCASR.js → chunk-WMIBAVWZ.js} +5 -5
  42. package/dist/{chunk-PC7HPZQJ.js → chunk-WYTN2XGW.js} +5 -5
  43. package/dist/{chunk-QTXYAZFX.js → chunk-XLYQ6PQW.js} +17 -17
  44. package/dist/{chunk-VRT7T6MF.js → chunk-YDZVEVUG.js} +73 -73
  45. package/dist/{chunk-ZKAW5JSN.js → chunk-ZA3RMW2P.js} +8 -5
  46. package/dist/cli/checkUnsupportedDataProxy.js +40 -41
  47. package/dist/cli/getSchema.js +45 -46
  48. package/dist/cli/hashes.js +40 -41
  49. package/dist/engine-commands/errorHelpers.js +4 -4
  50. package/dist/engine-commands/formatSchema.js +39 -40
  51. package/dist/engine-commands/getConfig.js +13 -13
  52. package/dist/engine-commands/getDmmf.js +10 -10
  53. package/dist/engine-commands/getEngineVersion.js +8 -8
  54. package/dist/engine-commands/getEnginesMetaInfo.js +10 -10
  55. package/dist/engine-commands/index.js +50 -51
  56. package/dist/engine-commands/lintSchema.js +8 -8
  57. package/dist/engine-commands/mergeSchemas.js +10 -10
  58. package/dist/engine-commands/queryEngineCommons.js +7 -7
  59. package/dist/engine-commands/relativizePathInPSLError.js +2 -2
  60. package/dist/engine-commands/validate.js +10 -10
  61. package/dist/errorReporting.js +6 -6
  62. package/dist/get-generators/generatorResolvers/generatorResolvers.js +39 -40
  63. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
  64. package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
  65. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +39 -40
  66. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +9 -0
  67. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.js +132 -0
  68. package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
  69. package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +40 -41
  70. package/dist/get-generators/getGenerators.js +42 -43
  71. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
  72. package/dist/getPackedPackage.js +2 -2
  73. package/dist/index.d.ts +0 -1
  74. package/dist/index.js +85 -87
  75. package/dist/{multipart-parser-32AROPTR.js → multipart-parser-LCETWFPE.js} +6 -9
  76. package/dist/resolveBinary.js +7 -7
  77. package/dist/schemaEngineCommands.js +8 -8
  78. package/dist/sendPanic.js +39 -40
  79. package/dist/tracing/types.d.ts +16 -26
  80. package/dist/utils/cloudflareD1.js +3 -3
  81. package/dist/utils/getCommandWithExecutor.js +3 -3
  82. package/dist/utils/getEnvPaths.js +39 -40
  83. package/dist/utils/getGitHubIssueUrl.js +4 -4
  84. package/dist/utils/getVersionFromPackageJson.js +3 -3
  85. package/dist/utils/handleEngineLoadingErrors.js +3 -3
  86. package/dist/utils/handlePanic.js +39 -40
  87. package/dist/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
  88. package/dist/utils/isCurrentBinInstalledGlobally.js +2 -2
  89. package/dist/utils/load.js +4 -4
  90. package/dist/utils/loadEnvFile.js +39 -40
  91. package/dist/utils/tryLoadEnvs.js +5 -5
  92. package/dist/wasm.js +4 -4
  93. package/package.json +12 -12
  94. package/dist/chunk-BONFK27U.js +0 -47
  95. package/dist/chunk-PPCNLYSB.js +0 -47
  96. package/dist/cli/getTypescriptVersion.d.ts +0 -1
  97. package/dist/cli/getTypescriptVersion.js +0 -25
  98. package/dist/typescript-AILDXN3I.js +0 -205230
  99. package/dist/typescript-WN4QH2CP.js +0 -205192
@@ -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_EAUIEZK2_exports = {};
30
- __export(chunk_EAUIEZK2_exports, {
29
+ var chunk_MUJIYA44_exports = {};
30
+ __export(chunk_MUJIYA44_exports, {
31
31
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
32
32
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion,
33
33
  wasm_exports: () => wasm_exports
34
34
  });
35
- module.exports = __toCommonJS(chunk_EAUIEZK2_exports);
36
- var import_chunk_BNAT44VK = require("./chunk-BNAT44VK.js");
35
+ module.exports = __toCommonJS(chunk_MUJIYA44_exports);
36
+ var import_chunk_KROMVQBD = require("./chunk-KROMVQBD.js");
37
37
  var import_chunk_HOZFIXMD = require("./chunk-HOZFIXMD.js");
38
38
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
39
39
  var import_prisma_schema_wasm = __toESM(require("@prisma/prisma-schema-wasm"));
@@ -42,6 +42,6 @@ var wasm_exports = {};
42
42
  prismaSchemaWasm: () => import_prisma_schema_wasm.default,
43
43
  prismaSchemaWasmVersion: () => prismaSchemaWasmVersion
44
44
  });
45
- var { dependencies } = (0, import_chunk_BNAT44VK.require_package)();
45
+ var { dependencies } = (0, import_chunk_KROMVQBD.require_package)();
46
46
  var prismaSchemaWasmVersion = dependencies["@prisma/prisma-schema-wasm"];
47
47
  globalThis.PRISMA_WASM_PANIC_REGISTRY = new import_chunk_HOZFIXMD.WasmPanicRegistry();
@@ -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_CGFXOUVQ_exports = {};
30
- __export(chunk_CGFXOUVQ_exports, {
29
+ var chunk_OHBFHT5Q_exports = {};
30
+ __export(chunk_OHBFHT5Q_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_CGFXOUVQ_exports);
34
+ module.exports = __toCommonJS(chunk_OHBFHT5Q_exports);
35
35
  var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
36
- var import_chunk_CXEMRKV4 = require("./chunk-CXEMRKV4.js");
37
- var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_D6NVMO5B = require("./chunk-D6NVMO5B.js");
36
+ var import_chunk_IAEMHQAC = require("./chunk-IAEMHQAC.js");
37
+ var import_chunk_WMIBAVWZ = require("./chunk-WMIBAVWZ.js");
38
+ var import_chunk_KNNIRRTO = require("./chunk-KNNIRRTO.js");
39
39
  var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
40
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
41
- var import_chunk_4B7QW7H5 = require("./chunk-4B7QW7H5.js");
40
+ var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
41
+ var import_chunk_2WJPHJ2I = require("./chunk-2WJPHJ2I.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,11 +48,11 @@ var import_function = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_PFLLVW
48
48
  var debug = (0, import_debug.default)("prisma:mergeSchemas");
49
49
  var MergeSchemasError = class extends Error {
50
50
  constructor(params) {
51
- const constructedErrorMessage = (0, import_chunk_25RJ7YTB.z)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
51
+ const constructedErrorMessage = (0, import_chunk_H3T4L34H.$)(params).with({ _tag: "parsed" }, ({ errorCode, message, reason }) => {
52
52
  const errorCodeMessage = errorCode ? `Error code: ${errorCode}` : "";
53
53
  return `${reason}
54
54
  ${errorCodeMessage}
55
- ${(0, import_chunk_C47SCASR.relativizePathInPSLError)(message)}`;
55
+ ${(0, import_chunk_WMIBAVWZ.relativizePathInPSLError)(message)}`;
56
56
  }).with({ _tag: "unparsed" }, ({ message, reason }) => {
57
57
  const detailsHeader = (0, import_chunk_PG5FDKSF.red)((0, import_chunk_PG5FDKSF.bold)("Details:"));
58
58
  return `${reason}
@@ -60,12 +60,12 @@ ${detailsHeader} ${message}`;
60
60
  }).exhaustive();
61
61
  const errorMessageWithContext = `${constructedErrorMessage}
62
62
  [Context: mergeSchemas]`;
63
- super((0, import_chunk_D6NVMO5B.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
+ super((0, import_chunk_KNNIRRTO.addVersionDetailsToErrorMessage)(errorMessageWithContext));
64
64
  this.name = "MergeSchemasError";
65
65
  }
66
66
  };
67
67
  function mergeSchemas(options) {
68
- const debugErrorType = (0, import_chunk_CXEMRKV4.createDebugErrorType)(debug, "mergeSchemasWasm");
68
+ const debugErrorType = (0, import_chunk_IAEMHQAC.createDebugErrorType)(debug, "mergeSchemasWasm");
69
69
  debug(`Using mergeSchemas Wasm`);
70
70
  const mergeSchemasEither = (0, import_function.pipe)(
71
71
  (0, import_chunk_7MD6344A.tryCatch)(
@@ -73,7 +73,7 @@ function mergeSchemas(options) {
73
73
  const params = JSON.stringify({
74
74
  schema: options.schemas
75
75
  });
76
- return import_chunk_4B7QW7H5.prismaSchemaWasm.merge_schemas(params);
76
+ return import_chunk_2WJPHJ2I.prismaSchemaWasm.merge_schemas(params);
77
77
  },
78
78
  (e) => ({
79
79
  type: "wasm-error",
@@ -85,7 +85,7 @@ function mergeSchemas(options) {
85
85
  if ((0, import_chunk_7MD6344A.isRight)(mergeSchemasEither)) {
86
86
  return mergeSchemasEither.right;
87
87
  }
88
- const error = (0, import_chunk_25RJ7YTB.z)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
88
+ const error = (0, import_chunk_H3T4L34H.$)(mergeSchemasEither.left).with({ type: "wasm-error" }, (e) => {
89
89
  debugErrorType(e);
90
90
  console.error("");
91
91
  if ((0, import_chunk_A4QWQE3W.isWasmPanic)(e.error)) {
@@ -108,7 +108,7 @@ function mergeSchemas(options) {
108
108
  return panic;
109
109
  }
110
110
  const errorOutput = e.error.message;
111
- return new MergeSchemasError((0, import_chunk_CXEMRKV4.parseQueryEngineError)({ errorOutput, reason: e.reason }));
111
+ return new MergeSchemasError((0, import_chunk_IAEMHQAC.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
112
  }).exhaustive();
113
113
  throw error;
114
114
  }
@@ -26,31 +26,31 @@ 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_UPIULDLZ_exports = {};
30
- __export(chunk_UPIULDLZ_exports, {
29
+ var chunk_OSOXVAZB_exports = {};
30
+ __export(chunk_OSOXVAZB_exports, {
31
31
  locateLocalCloudflareD1: () => locateLocalCloudflareD1
32
32
  });
33
- module.exports = __toCommonJS(chunk_UPIULDLZ_exports);
34
- var import_chunk_25RJ7YTB = require("./chunk-25RJ7YTB.js");
33
+ module.exports = __toCommonJS(chunk_OSOXVAZB_exports);
34
+ var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
35
35
  var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
36
36
  var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
37
- var import_node_path = __toESM(require("node:path"));
38
- var import_node_process = __toESM(require("node:process"));
37
+ var import_path = __toESM(require("path"));
38
+ var import_process = __toESM(require("process"));
39
39
  var import_fast_glob = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_KKMREGHN.require_out)());
40
40
  var import_globby = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_KKMREGHN.require_globby)());
41
- var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
41
+ var defaultD1DirPath = import_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
42
42
  async function locateLocalCloudflareD1({ arg }) {
43
- const cwd = import_node_process.default.cwd();
44
- const d1DirPath = import_node_path.default.posix.join(cwd, defaultD1DirPath);
43
+ const cwd = import_process.default.cwd();
44
+ const d1DirPath = import_path.default.posix.join(cwd, defaultD1DirPath);
45
45
  const pathConverted = (0, import_fast_glob.convertPathToPattern)(d1DirPath);
46
- const d1Databases = await (0, import_globby.default)(import_node_path.default.posix.join(pathConverted, "*.sqlite"), {});
46
+ const d1Databases = await (0, import_globby.default)(import_path.default.posix.join(pathConverted, "*.sqlite"), {});
47
47
  if (d1Databases.length === 0) {
48
48
  throw new Error(
49
49
  `No Cloudflare D1 databases found in ${defaultD1DirPath}. Did you run \`wrangler d1 create <DATABASE_NAME>\` and \`wrangler dev\`?`
50
50
  );
51
51
  }
52
52
  if (d1Databases.length > 1) {
53
- const { originalArg, recommendedArg } = (0, import_chunk_25RJ7YTB.z)(arg).with("--to-local-d1", (originalArg2) => ({
53
+ const { originalArg, recommendedArg } = (0, import_chunk_H3T4L34H.$)(arg).with("--to-local-d1", (originalArg2) => ({
54
54
  originalArg: originalArg2,
55
55
  recommendedArg: "--to-url file:"
56
56
  })).with("--from-local-d1", (originalArg2) => ({