@prisma/internals 6.19.0-integration-release-tags.4 → 6.19.0-integration-next.21

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-JTS4UPHJ.js → chunk-2KREE2OX.js} +5 -5
  2. package/dist/{chunk-JOIIWB3U.js → chunk-2LOGW45F.js} +68 -33
  3. package/dist/{chunk-BVJP43JS.js → chunk-32LLAKF4.js} +13 -784
  4. package/dist/{chunk-C7OCDMAW.js → chunk-33FYCEWF.js} +14 -20
  5. package/dist/{chunk-FYZCPL2Z.js → chunk-3CAPLXKF.js} +5 -8
  6. package/dist/{chunk-LV27YCGC.js → chunk-3V2WV3DU.js} +11 -11
  7. package/dist/{chunk-I6WLABB2.js → chunk-3WXUQZS7.js} +14 -5
  8. package/dist/{chunk-OAT7ZJED.js → chunk-4YDN7W7B.js} +7 -20
  9. package/dist/{chunk-CCLAMTCA.js → chunk-5B5U2HVK.js} +7 -8
  10. package/dist/{chunk-RS2R7COT.js → chunk-5I4ERIIY.js} +3 -9
  11. package/dist/{chunk-F2OZV76L.js → chunk-5MHUYAV3.js} +9 -9
  12. package/dist/{chunk-HO5HRHFZ.js → chunk-5W3BSMTH.js} +3 -6
  13. package/dist/{chunk-W5PNJ3AN.js → chunk-6FP5PMMX.js} +5 -5
  14. package/dist/{chunk-WYQJ4JWO.js → chunk-6QTJ35DP.js} +12 -12
  15. package/dist/{chunk-WFNB7VRA.js → chunk-ARC7TW3L.js} +4 -14
  16. package/dist/{chunk-HFFWZTVM.js → chunk-BUQN4WLU.js} +7 -9
  17. package/dist/{chunk-HHG4DGHC.js → chunk-CGLLQXZE.js} +11 -12
  18. package/dist/{chunk-TBR6SNKL.js → chunk-CHKD5ZZP.js} +5 -5
  19. package/dist/{chunk-GMW36QQF.js → chunk-DOO45FN6.js} +7 -7
  20. package/dist/chunk-DYV47NUW.js +796 -0
  21. package/dist/{chunk-IDINCQMN.js → chunk-FF7OLLBP.js} +12 -784
  22. package/dist/{chunk-4CGPN5SR.js → chunk-GJSFP4V4.js} +3 -9
  23. package/dist/{chunk-4JCVHBYR.js → chunk-GL7OANR6.js} +5 -5
  24. package/dist/{chunk-3SQNHTJI.js → chunk-HBU4ZVCA.js} +11 -11
  25. package/dist/{chunk-QJ3QPUM5.js → chunk-HDWTS7PU.js} +5 -5
  26. package/dist/{chunk-GP2IOYO4.js → chunk-HQE53CGA.js} +11 -11
  27. package/dist/{chunk-UHI6VYFX.js → chunk-IHC4ZVPQ.js} +5 -5
  28. package/dist/{chunk-D4VDA2TZ.js → chunk-IRWX4FCC.js} +6 -6
  29. package/dist/{chunk-UQUWZJVN.js → chunk-IU77SCOB.js} +9 -9
  30. package/dist/{chunk-CICRX6W2.js → chunk-JEVRTTNC.js} +8 -9
  31. package/dist/{chunk-SOKSKSEX.js → chunk-KFFNXE23.js} +14 -20
  32. package/dist/{chunk-NVNI2SRU.js → chunk-KNNTV7IN.js} +687 -213
  33. package/dist/{chunk-6WKVKJVU.js → chunk-KZ5SMOBR.js} +5 -5
  34. package/dist/{chunk-ICSC3AO3.js → chunk-MEBZK5AR.js} +5 -5
  35. package/dist/{chunk-5AI4FIZ3.js → chunk-MEOOYUIZ.js} +10 -10
  36. package/dist/{chunk-TQFONRJP.js → chunk-MXAUURHG.js} +5 -5
  37. package/dist/{chunk-7QC5VORA.js → chunk-MYLPCGTT.js} +5 -5
  38. package/dist/{chunk-EYVG6XQS.js → chunk-OKVM3CW4.js} +3 -39
  39. package/dist/{chunk-XEJAT6ZE.js → chunk-PZAC4O4V.js} +12 -12
  40. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  41. package/dist/{chunk-RX5LCZAM.js → chunk-RWZOE466.js} +5 -5
  42. package/dist/{chunk-AX5N26KG.js → chunk-TGA7DC5A.js} +14 -9
  43. package/dist/{chunk-75BIJ5PX.js → chunk-UB2X7DGZ.js} +9 -9
  44. package/dist/{chunk-2GUGGLPK.js → chunk-W6ZWX546.js} +38 -71
  45. package/dist/{chunk-OUAF3IOV.js → chunk-WFZAXUNP.js} +38 -71
  46. package/dist/{chunk-TZJROXB3.js → chunk-WSZXPLJQ.js} +4 -4
  47. package/dist/{chunk-FHZ5QJLR.js → chunk-YF7MC4C3.js} +5 -5
  48. package/dist/{chunk-E4H6V3Z4.js → chunk-YXXLQZKE.js} +11 -11
  49. package/dist/cli/checkUnsupportedDataProxy.js +56 -62
  50. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +56 -62
  51. package/dist/cli/getGeneratorSuccessMessage.js +2 -3
  52. package/dist/cli/getSchema.d.ts +1 -15
  53. package/dist/cli/getSchema.js +4 -5
  54. package/dist/cli/hashes.js +4 -4
  55. package/dist/cli/schemaContext.d.ts +1 -3
  56. package/dist/cli/schemaContext.js +56 -62
  57. package/dist/engine-commands/errorHelpers.js +4 -4
  58. package/dist/engine-commands/formatSchema.js +55 -61
  59. package/dist/engine-commands/getConfig.d.ts +0 -1
  60. package/dist/engine-commands/getConfig.js +13 -13
  61. package/dist/engine-commands/getDmmf.js +10 -10
  62. package/dist/engine-commands/getEngineVersion.js +6 -9
  63. package/dist/engine-commands/getEnginesInfo.d.ts +0 -1
  64. package/dist/engine-commands/getEnginesInfo.js +7 -9
  65. package/dist/engine-commands/index.js +67 -73
  66. package/dist/engine-commands/lintSchema.js +9 -9
  67. package/dist/engine-commands/mergeSchemas.js +10 -10
  68. package/dist/engine-commands/queryEngineCommons.js +6 -6
  69. package/dist/engine-commands/validate.js +10 -10
  70. package/dist/errorReporting.js +6 -6
  71. package/dist/get-generators/getGenerators.d.ts +0 -1
  72. package/dist/get-generators/getGenerators.js +58 -64
  73. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  74. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  75. package/dist/get-generators/utils/getBinaryPathsByVersion.js +6 -5
  76. package/dist/getPackedPackage.js +4 -3
  77. package/dist/index.d.ts +1 -8
  78. package/dist/index.js +101 -115
  79. package/dist/{multipart-parser-3AFJFP6K.js → multipart-parser-UV3WZSWW.js} +6 -6
  80. package/dist/resolveBinary.js +8 -7
  81. package/dist/schemaEngineCommands.js +9 -8
  82. package/dist/sendPanic.js +4 -4
  83. package/dist/utils/canPrompt.js +3 -3
  84. package/dist/utils/cloudflareD1.js +3 -3
  85. package/dist/utils/drawBox.js +2 -2
  86. package/dist/utils/fs-functional.js +10 -10
  87. package/dist/utils/fs-utils.js +8 -8
  88. package/dist/utils/getVersionFromPackageJson.js +3 -3
  89. package/dist/utils/handlePanic.js +8 -8
  90. package/dist/utils/link.js +2 -2
  91. package/dist/utils/missingDatasource.js +3 -3
  92. package/dist/utils/missingGeneratorMessage.js +5 -5
  93. package/dist/utils/serializeQueryEngineName.js +2 -2
  94. package/dist/wasm.js +5 -5
  95. package/package.json +15 -16
  96. package/dist/chunk-3FP46GUV.js +0 -471
  97. package/dist/chunk-46ABODUM.js +0 -186
  98. package/dist/chunk-6TTRTZXU.js +0 -37
  99. package/dist/chunk-DZYINYAA.js +0 -68
  100. package/dist/chunk-ERSH2BQA.js +0 -58
  101. package/dist/chunk-PZMRR772.js +0 -41
  102. package/dist/chunk-T2PM5TKT.js +0 -55
  103. package/dist/client/getClientEngineType.d.ts +0 -7
  104. package/dist/client/getClientEngineType.js +0 -26
  105. package/dist/dotenvExpand.d.ts +0 -35
  106. package/dist/dotenvExpand.js +0 -25
  107. package/dist/utils/getEnvPaths.d.ts +0 -14
  108. package/dist/utils/getEnvPaths.js +0 -29
  109. package/dist/utils/handleEngineLoadingErrors.d.ts +0 -8
  110. package/dist/utils/handleEngineLoadingErrors.js +0 -27
  111. package/dist/utils/load.d.ts +0 -6
  112. package/dist/utils/load.js +0 -28
  113. package/dist/utils/loadEnvFile.d.ts +0 -10
  114. package/dist/utils/loadEnvFile.js +0 -30
  115. package/dist/utils/tryLoadEnvs.d.ts +0 -25
  116. package/dist/utils/tryLoadEnvs.js +0 -30
@@ -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_JTS4UPHJ_exports = {};
20
- __export(chunk_JTS4UPHJ_exports, {
19
+ var chunk_2KREE2OX_exports = {};
20
+ __export(chunk_2KREE2OX_exports, {
21
21
  addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
22
22
  });
23
- module.exports = __toCommonJS(chunk_JTS4UPHJ_exports);
24
- var import_chunk_QJ3QPUM5 = require("./chunk-QJ3QPUM5.js");
23
+ module.exports = __toCommonJS(chunk_2KREE2OX_exports);
24
+ var import_chunk_KZ5SMOBR = require("./chunk-KZ5SMOBR.js");
25
25
  var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
26
26
  function addVersionDetailsToErrorMessage(message) {
27
- const rows = [["Prisma CLI Version", import_chunk_QJ3QPUM5.version]];
27
+ const rows = [["Prisma CLI Version", import_chunk_KZ5SMOBR.version]];
28
28
  return `${message}
29
29
 
30
30
  ${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
@@ -16,14 +16,14 @@ 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_JOIIWB3U_exports = {};
20
- __export(chunk_JOIIWB3U_exports, {
19
+ var chunk_2LOGW45F_exports = {};
20
+ __export(chunk_2LOGW45F_exports, {
21
21
  require_globby: () => require_globby,
22
22
  require_is_glob: () => require_is_glob,
23
23
  require_out: () => require_out4,
24
24
  require_slash: () => require_slash
25
25
  });
26
- module.exports = __toCommonJS(chunk_JOIIWB3U_exports);
26
+ module.exports = __toCommonJS(chunk_2LOGW45F_exports);
27
27
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
28
28
  var require_array = (0, import_chunk_4VNS5WPM.__commonJS)({
29
29
  "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
@@ -3964,7 +3964,7 @@ var require_out2 = (0, import_chunk_4VNS5WPM.__commonJS)({
3964
3964
  }
3965
3965
  });
3966
3966
  var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
3967
- "../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module2) {
3967
+ "../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js"(exports, module2) {
3968
3968
  "use strict";
3969
3969
  function reusify(Constructor) {
3970
3970
  var head = new Constructor();
@@ -3993,17 +3993,17 @@ var require_reusify = (0, import_chunk_4VNS5WPM.__commonJS)({
3993
3993
  }
3994
3994
  });
3995
3995
  var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
3996
- "../../node_modules/.pnpm/fastq@1.15.0/node_modules/fastq/queue.js"(exports, module2) {
3996
+ "../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js"(exports, module2) {
3997
3997
  "use strict";
3998
3998
  var reusify = require_reusify();
3999
- function fastqueue(context, worker, concurrency) {
3999
+ function fastqueue(context, worker, _concurrency) {
4000
4000
  if (typeof context === "function") {
4001
- concurrency = worker;
4001
+ _concurrency = worker;
4002
4002
  worker = context;
4003
4003
  context = null;
4004
4004
  }
4005
- if (concurrency < 1) {
4006
- throw new Error("fastqueue concurrency must be greater than 1");
4005
+ if (!(_concurrency >= 1)) {
4006
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
4007
4007
  }
4008
4008
  var cache = reusify(Task);
4009
4009
  var queueHead = null;
@@ -4016,7 +4016,20 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4016
4016
  saturated: noop,
4017
4017
  pause,
4018
4018
  paused: false,
4019
- concurrency,
4019
+ get concurrency() {
4020
+ return _concurrency;
4021
+ },
4022
+ set concurrency(value) {
4023
+ if (!(value >= 1)) {
4024
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
4025
+ }
4026
+ _concurrency = value;
4027
+ if (self.paused) return;
4028
+ for (; queueHead && _running < _concurrency; ) {
4029
+ _running++;
4030
+ release();
4031
+ }
4032
+ },
4020
4033
  running,
4021
4034
  resume,
4022
4035
  idle,
@@ -4056,7 +4069,12 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4056
4069
  function resume() {
4057
4070
  if (!self.paused) return;
4058
4071
  self.paused = false;
4059
- for (var i = 0; i < self.concurrency; i++) {
4072
+ if (queueHead === null) {
4073
+ _running++;
4074
+ release();
4075
+ return;
4076
+ }
4077
+ for (; queueHead && _running < _concurrency; ) {
4060
4078
  _running++;
4061
4079
  release();
4062
4080
  }
@@ -4071,7 +4089,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4071
4089
  current.value = value;
4072
4090
  current.callback = done || noop;
4073
4091
  current.errorHandler = errorHandler;
4074
- if (_running === self.concurrency || self.paused) {
4092
+ if (_running >= _concurrency || self.paused) {
4075
4093
  if (queueTail) {
4076
4094
  queueTail.next = current;
4077
4095
  queueTail = current;
@@ -4091,7 +4109,8 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4091
4109
  current.release = release;
4092
4110
  current.value = value;
4093
4111
  current.callback = done || noop;
4094
- if (_running === self.concurrency || self.paused) {
4112
+ current.errorHandler = errorHandler;
4113
+ if (_running >= _concurrency || self.paused) {
4095
4114
  if (queueHead) {
4096
4115
  current.next = queueHead;
4097
4116
  queueHead = current;
@@ -4110,7 +4129,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4110
4129
  cache.release(holder);
4111
4130
  }
4112
4131
  var next = queueHead;
4113
- if (next) {
4132
+ if (next && _running <= _concurrency) {
4114
4133
  if (!self.paused) {
4115
4134
  if (queueTail === queueHead) {
4116
4135
  queueTail = null;
@@ -4166,9 +4185,9 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4166
4185
  self.release(self);
4167
4186
  };
4168
4187
  }
4169
- function queueAsPromised(context, worker, concurrency) {
4188
+ function queueAsPromised(context, worker, _concurrency) {
4170
4189
  if (typeof context === "function") {
4171
- concurrency = worker;
4190
+ _concurrency = worker;
4172
4191
  worker = context;
4173
4192
  context = null;
4174
4193
  }
@@ -4177,7 +4196,7 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4177
4196
  cb(null, res);
4178
4197
  }, cb);
4179
4198
  }
4180
- var queue = fastqueue(context, asyncWrapper, concurrency);
4199
+ var queue = fastqueue(context, asyncWrapper, _concurrency);
4181
4200
  var pushCb = queue.push;
4182
4201
  var unshiftCb = queue.unshift;
4183
4202
  queue.push = push;
@@ -4211,17 +4230,19 @@ var require_queue = (0, import_chunk_4VNS5WPM.__commonJS)({
4211
4230
  return p;
4212
4231
  }
4213
4232
  function drained() {
4214
- if (queue.idle()) {
4215
- return new Promise(function(resolve) {
4216
- resolve();
4217
- });
4218
- }
4219
- var previousDrain = queue.drain;
4220
4233
  var p = new Promise(function(resolve) {
4221
- queue.drain = function() {
4222
- previousDrain();
4223
- resolve();
4224
- };
4234
+ process.nextTick(function() {
4235
+ if (queue.idle()) {
4236
+ resolve();
4237
+ } else {
4238
+ var previousDrain = queue.drain;
4239
+ queue.drain = function() {
4240
+ if (typeof previousDrain === "function") previousDrain();
4241
+ resolve();
4242
+ queue.drain = previousDrain;
4243
+ };
4244
+ }
4245
+ });
4225
4246
  });
4226
4247
  return p;
4227
4248
  }
@@ -5461,7 +5482,7 @@ var require_dir_glob = (0, import_chunk_4VNS5WPM.__commonJS)({
5461
5482
  }
5462
5483
  });
5463
5484
  var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5464
- "../../node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.js"(exports, module2) {
5485
+ "../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module2) {
5465
5486
  "use strict";
5466
5487
  function makeArray(subject) {
5467
5488
  return Array.isArray(subject) ? subject : [subject];
@@ -5493,18 +5514,32 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5493
5514
  return slashes.slice(0, length - length % 2);
5494
5515
  };
5495
5516
  var REPLACERS = [
5517
+ [
5518
+ // remove BOM
5519
+ // TODO:
5520
+ // Other similar zero-width characters?
5521
+ /^\uFEFF/,
5522
+ () => EMPTY
5523
+ ],
5496
5524
  // > Trailing spaces are ignored unless they are quoted with backslash ("\")
5497
5525
  [
5498
5526
  // (a\ ) -> (a )
5499
5527
  // (a ) -> (a)
5528
+ // (a ) -> (a)
5500
5529
  // (a \ ) -> (a )
5501
- /\\?\s+$/,
5502
- (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
5530
+ /((?:\\\\)*?)(\\?\s+)$/,
5531
+ (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
5503
5532
  ],
5504
5533
  // replace (\ ) with ' '
5534
+ // (\ ) -> ' '
5535
+ // (\\ ) -> '\\ '
5536
+ // (\\\ ) -> '\\ '
5505
5537
  [
5506
- /\\\s/g,
5507
- () => SPACE
5538
+ /(\\+?)\s/g,
5539
+ (_, m1) => {
5540
+ const { length } = m1;
5541
+ return m1.slice(0, length - length % 2) + SPACE;
5542
+ }
5508
5543
  ],
5509
5544
  // Escape metacharacters
5510
5545
  // which is written down by users but means special for regular expressions.
@@ -5639,7 +5674,7 @@ var require_ignore = (0, import_chunk_4VNS5WPM.__commonJS)({
5639
5674
  let source = regexCache[pattern];
5640
5675
  if (!source) {
5641
5676
  source = REPLACERS.reduce(
5642
- (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
5677
+ (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
5643
5678
  pattern
5644
5679
  );
5645
5680
  regexCache[pattern] = source;