@prisma/query-plan-executor 6.18.0 → 6.19.0-integration-next.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 (2) hide show
  1. package/dist/index.js +282 -39
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -49798,11 +49798,11 @@ ${serverError}`);
49798
49798
  if (cacheRecord.accessToken) {
49799
49799
  if (cacheRecord.accessToken.tokenType === AuthenticationScheme.POP && !request3.popKid) {
49800
49800
  const popTokenGenerator = new PopTokenGenerator(cryptoObj);
49801
- const { secret, keyId } = cacheRecord.accessToken;
49801
+ const { secret: secret2, keyId } = cacheRecord.accessToken;
49802
49802
  if (!keyId) {
49803
49803
  throw createClientAuthError(keyIdMissing);
49804
49804
  }
49805
- accessToken = await popTokenGenerator.signPopToken(secret, keyId, request3);
49805
+ accessToken = await popTokenGenerator.signPopToken(secret2, keyId, request3);
49806
49806
  } else {
49807
49807
  accessToken = cacheRecord.accessToken.secret;
49808
49808
  }
@@ -52889,17 +52889,17 @@ var require_jwa = __commonJS({
52889
52889
  return thing;
52890
52890
  }
52891
52891
  function createHmacSigner(bits) {
52892
- return function sign2(thing, secret) {
52893
- checkIsSecretKey(secret);
52892
+ return function sign2(thing, secret2) {
52893
+ checkIsSecretKey(secret2);
52894
52894
  thing = normalizeInput(thing);
52895
- var hmac = crypto7.createHmac("sha" + bits, secret);
52895
+ var hmac = crypto7.createHmac("sha" + bits, secret2);
52896
52896
  var sig = (hmac.update(thing), hmac.digest("base64"));
52897
52897
  return fromBase64(sig);
52898
52898
  };
52899
52899
  }
52900
52900
  function createHmacVerifier(bits) {
52901
- return function verify(thing, signature, secret) {
52902
- var computedSig = createHmacSigner(bits)(thing, secret);
52901
+ return function verify(thing, signature, secret2) {
52902
+ var computedSig = createHmacSigner(bits)(thing, secret2);
52903
52903
  return bufferEqual(Buffer2.from(signature), Buffer2.from(computedSig));
52904
52904
  };
52905
52905
  }
@@ -53048,8 +53048,8 @@ var require_sign_stream = __commonJS({
53048
53048
  return util2.format("%s.%s", securedInput, signature);
53049
53049
  }
53050
53050
  function SignStream(opts) {
53051
- var secret = opts.secret || opts.privateKey || opts.key;
53052
- var secretStream = new DataStream(secret);
53051
+ var secret2 = opts.secret || opts.privateKey || opts.key;
53052
+ var secretStream = new DataStream(secret2);
53053
53053
  this.readable = true;
53054
53054
  this.header = opts.header;
53055
53055
  this.encoding = opts.encoding;
@@ -58084,13 +58084,13 @@ var init_AzureArc = __esm({
58084
58084
  if (secretFileSize > AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES) {
58085
58085
  throw createManagedIdentityError(invalidSecret);
58086
58086
  }
58087
- let secret;
58087
+ let secret2;
58088
58088
  try {
58089
- secret = (0, import_fs2.readFileSync)(secretFilePath, "utf-8");
58089
+ secret2 = (0, import_fs2.readFileSync)(secretFilePath, "utf-8");
58090
58090
  } catch (e2) {
58091
58091
  throw createManagedIdentityError(unableToReadSecretFile);
58092
58092
  }
58093
- const authHeaderValue = `Basic ${secret}`;
58093
+ const authHeaderValue = `Basic ${secret2}`;
58094
58094
  this.logger.info(`[Managed Identity] Adding authorization header to the request.`);
58095
58095
  networkRequest.headers[AUTHORIZATION_HEADER_NAME] = authHeaderValue;
58096
58096
  try {
@@ -92893,11 +92893,11 @@ var require_postgres_interval = __commonJS({
92893
92893
  "use strict";
92894
92894
  var extend3 = require_mutable();
92895
92895
  module2.exports = PostgresInterval;
92896
- function PostgresInterval(raw2) {
92896
+ function PostgresInterval(raw3) {
92897
92897
  if (!(this instanceof PostgresInterval)) {
92898
- return new PostgresInterval(raw2);
92898
+ return new PostgresInterval(raw3);
92899
92899
  }
92900
- extend3(this, parse5(raw2));
92900
+ extend3(this, parse5(raw3));
92901
92901
  }
92902
92902
  var properties = ["seconds", "minutes", "hours", "days", "months", "years"];
92903
92903
  PostgresInterval.prototype.toPostgres = function() {
@@ -97612,7 +97612,7 @@ __export(index_exports, {
97612
97612
  module.exports = __toCommonJS(index_exports);
97613
97613
 
97614
97614
  // package.json
97615
- var version = "6.18.0";
97615
+ var version = "6.19.0-integration-next.1";
97616
97616
 
97617
97617
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
97618
97618
  function clampProp(e2, n2, t2, o2, r2) {
@@ -102884,7 +102884,182 @@ var zValidator = (target, schema, hook, options) => (
102884
102884
  })
102885
102885
  );
102886
102886
 
102887
- // ../../node_modules/.pnpm/decimal.js@10.5.0/node_modules/decimal.js/decimal.mjs
102887
+ // ../client-runtime-utils/dist/index.mjs
102888
+ function setClassName(classObject, name6) {
102889
+ Object.defineProperty(classObject, "name", {
102890
+ value: name6,
102891
+ configurable: true
102892
+ });
102893
+ }
102894
+ var PrismaClientInitializationError = class _PrismaClientInitializationError extends Error {
102895
+ clientVersion;
102896
+ errorCode;
102897
+ retryable;
102898
+ constructor(message, clientVersion, errorCode) {
102899
+ super(message);
102900
+ this.name = "PrismaClientInitializationError";
102901
+ this.clientVersion = clientVersion;
102902
+ this.errorCode = errorCode;
102903
+ Error.captureStackTrace(_PrismaClientInitializationError);
102904
+ }
102905
+ get [Symbol.toStringTag]() {
102906
+ return "PrismaClientInitializationError";
102907
+ }
102908
+ };
102909
+ setClassName(PrismaClientInitializationError, "PrismaClientInitializationError");
102910
+ var PrismaClientKnownRequestError = class extends Error {
102911
+ code;
102912
+ meta;
102913
+ clientVersion;
102914
+ batchRequestIdx;
102915
+ constructor(message, { code, clientVersion, meta, batchRequestIdx }) {
102916
+ super(message);
102917
+ this.name = "PrismaClientKnownRequestError";
102918
+ this.code = code;
102919
+ this.clientVersion = clientVersion;
102920
+ this.meta = meta;
102921
+ Object.defineProperty(this, "batchRequestIdx", {
102922
+ value: batchRequestIdx,
102923
+ enumerable: false,
102924
+ writable: true
102925
+ });
102926
+ }
102927
+ get [Symbol.toStringTag]() {
102928
+ return "PrismaClientKnownRequestError";
102929
+ }
102930
+ };
102931
+ setClassName(PrismaClientKnownRequestError, "PrismaClientKnownRequestError");
102932
+ function getBacktrace(log32) {
102933
+ if (log32.fields?.message) {
102934
+ let str = log32.fields?.message;
102935
+ if (log32.fields?.file) {
102936
+ str += ` in ${log32.fields.file}`;
102937
+ if (log32.fields?.line) {
102938
+ str += `:${log32.fields.line}`;
102939
+ }
102940
+ if (log32.fields?.column) {
102941
+ str += `:${log32.fields.column}`;
102942
+ }
102943
+ }
102944
+ if (log32.fields?.reason) {
102945
+ str += `
102946
+ ${log32.fields?.reason}`;
102947
+ }
102948
+ return str;
102949
+ }
102950
+ return "Unknown error";
102951
+ }
102952
+ function isPanic(err) {
102953
+ return err.fields?.message === "PANIC";
102954
+ }
102955
+ var PrismaClientRustError = class extends Error {
102956
+ clientVersion;
102957
+ _isPanic;
102958
+ constructor({ clientVersion, error: error44 }) {
102959
+ const backtrace = getBacktrace(error44);
102960
+ super(backtrace ?? "Unknown error");
102961
+ this._isPanic = isPanic(error44);
102962
+ this.clientVersion = clientVersion;
102963
+ }
102964
+ get [Symbol.toStringTag]() {
102965
+ return "PrismaClientRustError";
102966
+ }
102967
+ isPanic() {
102968
+ return this._isPanic;
102969
+ }
102970
+ };
102971
+ setClassName(PrismaClientRustError, "PrismaClientRustError");
102972
+ var PrismaClientRustPanicError = class extends Error {
102973
+ clientVersion;
102974
+ constructor(message, clientVersion) {
102975
+ super(message);
102976
+ this.name = "PrismaClientRustPanicError";
102977
+ this.clientVersion = clientVersion;
102978
+ }
102979
+ get [Symbol.toStringTag]() {
102980
+ return "PrismaClientRustPanicError";
102981
+ }
102982
+ };
102983
+ setClassName(PrismaClientRustPanicError, "PrismaClientRustPanicError");
102984
+ var PrismaClientUnknownRequestError = class extends Error {
102985
+ clientVersion;
102986
+ batchRequestIdx;
102987
+ constructor(message, { clientVersion, batchRequestIdx }) {
102988
+ super(message);
102989
+ this.name = "PrismaClientUnknownRequestError";
102990
+ this.clientVersion = clientVersion;
102991
+ Object.defineProperty(this, "batchRequestIdx", {
102992
+ value: batchRequestIdx,
102993
+ writable: true,
102994
+ enumerable: false
102995
+ });
102996
+ }
102997
+ get [Symbol.toStringTag]() {
102998
+ return "PrismaClientUnknownRequestError";
102999
+ }
103000
+ };
103001
+ setClassName(PrismaClientUnknownRequestError, "PrismaClientUnknownRequestError");
103002
+ var PrismaClientValidationError = class extends Error {
103003
+ name = "PrismaClientValidationError";
103004
+ clientVersion;
103005
+ constructor(message, { clientVersion }) {
103006
+ super(message);
103007
+ this.clientVersion = clientVersion;
103008
+ }
103009
+ get [Symbol.toStringTag]() {
103010
+ return "PrismaClientValidationError";
103011
+ }
103012
+ };
103013
+ setClassName(PrismaClientValidationError, "PrismaClientValidationError");
103014
+ var secret = Symbol();
103015
+ var representations = /* @__PURE__ */ new WeakMap();
103016
+ var ObjectEnumValue = class {
103017
+ constructor(arg) {
103018
+ if (arg === secret) {
103019
+ representations.set(this, `Prisma.${this._getName()}`);
103020
+ } else {
103021
+ representations.set(this, `new Prisma.${this._getNamespace()}.${this._getName()}()`);
103022
+ }
103023
+ }
103024
+ _getName() {
103025
+ return this.constructor.name;
103026
+ }
103027
+ toString() {
103028
+ return representations.get(this);
103029
+ }
103030
+ };
103031
+ function setClassName2(classObject, name6) {
103032
+ Object.defineProperty(classObject, "name", {
103033
+ value: name6,
103034
+ configurable: true
103035
+ });
103036
+ }
103037
+ var NullTypesEnumValue = class extends ObjectEnumValue {
103038
+ _getNamespace() {
103039
+ return "NullTypes";
103040
+ }
103041
+ };
103042
+ var DbNullClass = class extends NullTypesEnumValue {
103043
+ // Phantom private property to prevent structural type equality
103044
+ // eslint-disable-next-line no-unused-private-class-members
103045
+ #_brand_DbNull;
103046
+ };
103047
+ setClassName2(DbNullClass, "DbNull");
103048
+ var JsonNullClass = class extends NullTypesEnumValue {
103049
+ // Phantom private property to prevent structural type equality
103050
+ // eslint-disable-next-line no-unused-private-class-members
103051
+ #_brand_JsonNull;
103052
+ };
103053
+ setClassName2(JsonNullClass, "JsonNull");
103054
+ var AnyNullClass = class extends NullTypesEnumValue {
103055
+ // Phantom private property to prevent structural type equality
103056
+ // eslint-disable-next-line no-unused-private-class-members
103057
+ #_brand_AnyNull;
103058
+ };
103059
+ setClassName2(AnyNullClass, "AnyNull");
103060
+ var DbNull = new DbNullClass(secret);
103061
+ var JsonNull = new JsonNullClass(secret);
103062
+ var AnyNull = new AnyNullClass(secret);
102888
103063
  var EXP_LIMIT = 9e15;
102889
103064
  var MAX_DIGITS = 1e9;
102890
103065
  var NUMERALS = "0123456789abcdef";
@@ -104764,7 +104939,7 @@ function cosh(x2) {
104764
104939
  function clone(obj) {
104765
104940
  var i2, p2, ps;
104766
104941
  function Decimal2(v2) {
104767
- var e2, i3, t2, x2 = this;
104942
+ var e2, i22, t2, x2 = this;
104768
104943
  if (!(x2 instanceof Decimal2)) return new Decimal2(v2);
104769
104944
  x2.constructor = Decimal2;
104770
104945
  if (isDecimalInstance(v2)) {
@@ -104801,7 +104976,7 @@ function clone(obj) {
104801
104976
  x2.s = 1;
104802
104977
  }
104803
104978
  if (v2 === ~~v2 && v2 < 1e7) {
104804
- for (e2 = 0, i3 = v2; i3 >= 10; i3 /= 10) e2++;
104979
+ for (e2 = 0, i22 = v2; i22 >= 10; i22 /= 10) e2++;
104805
104980
  if (external) {
104806
104981
  if (e2 > Decimal2.maxE) {
104807
104982
  x2.e = NaN;
@@ -104828,11 +105003,11 @@ function clone(obj) {
104828
105003
  return parseDecimal(x2, v2.toString());
104829
105004
  }
104830
105005
  if (t2 === "string") {
104831
- if ((i3 = v2.charCodeAt(0)) === 45) {
105006
+ if ((i22 = v2.charCodeAt(0)) === 45) {
104832
105007
  v2 = v2.slice(1);
104833
105008
  x2.s = -1;
104834
105009
  } else {
104835
- if (i3 === 43) v2 = v2.slice(1);
105010
+ if (i22 === 43) v2 = v2.slice(1);
104836
105011
  x2.s = 1;
104837
105012
  }
104838
105013
  return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
@@ -105059,7 +105234,73 @@ P2[Symbol.toStringTag] = "Decimal";
105059
105234
  var Decimal = P2.constructor = clone(DEFAULTS);
105060
105235
  LN10 = new Decimal(LN10);
105061
105236
  PI = new Decimal(PI);
105062
- var decimal_default = Decimal;
105237
+ var Sql = class _Sql {
105238
+ constructor(rawStrings, rawValues) {
105239
+ if (rawStrings.length - 1 !== rawValues.length) {
105240
+ if (rawStrings.length === 0) {
105241
+ throw new TypeError("Expected at least 1 string");
105242
+ }
105243
+ throw new TypeError(`Expected ${rawStrings.length} strings to have ${rawStrings.length - 1} values`);
105244
+ }
105245
+ const valuesLength = rawValues.reduce((len, value) => len + (value instanceof _Sql ? value.values.length : 1), 0);
105246
+ this.values = new Array(valuesLength);
105247
+ this.strings = new Array(valuesLength + 1);
105248
+ this.strings[0] = rawStrings[0];
105249
+ let i2 = 0, pos = 0;
105250
+ while (i2 < rawValues.length) {
105251
+ const child = rawValues[i2++];
105252
+ const rawString = rawStrings[i2];
105253
+ if (child instanceof _Sql) {
105254
+ this.strings[pos] += child.strings[0];
105255
+ let childIndex = 0;
105256
+ while (childIndex < child.values.length) {
105257
+ this.values[pos++] = child.values[childIndex++];
105258
+ this.strings[pos] = child.strings[childIndex];
105259
+ }
105260
+ this.strings[pos] += rawString;
105261
+ } else {
105262
+ this.values[pos++] = child;
105263
+ this.strings[pos] = rawString;
105264
+ }
105265
+ }
105266
+ }
105267
+ get sql() {
105268
+ const len = this.strings.length;
105269
+ let i2 = 1;
105270
+ let value = this.strings[0];
105271
+ while (i2 < len)
105272
+ value += `?${this.strings[i2++]}`;
105273
+ return value;
105274
+ }
105275
+ get statement() {
105276
+ const len = this.strings.length;
105277
+ let i2 = 1;
105278
+ let value = this.strings[0];
105279
+ while (i2 < len)
105280
+ value += `:${i2}${this.strings[i2++]}`;
105281
+ return value;
105282
+ }
105283
+ get text() {
105284
+ const len = this.strings.length;
105285
+ let i2 = 1;
105286
+ let value = this.strings[0];
105287
+ while (i2 < len)
105288
+ value += `$${i2}${this.strings[i2++]}`;
105289
+ return value;
105290
+ }
105291
+ inspect() {
105292
+ return {
105293
+ sql: this.sql,
105294
+ statement: this.statement,
105295
+ text: this.text,
105296
+ values: this.values
105297
+ };
105298
+ }
105299
+ };
105300
+ function raw(value) {
105301
+ return new Sql([value], []);
105302
+ }
105303
+ var empty = raw("");
105063
105304
 
105064
105305
  // ../debug/dist/index.mjs
105065
105306
  var __defProp2 = Object.defineProperty;
@@ -105623,7 +105864,7 @@ function doKeysMatch(lhs, rhs) {
105623
105864
  if (typeof lhs[key] === typeof rhs[key] && typeof lhs[key] !== "object") {
105624
105865
  return lhs[key] === rhs[key];
105625
105866
  }
105626
- if (decimal_default.isDecimal(lhs[key]) || decimal_default.isDecimal(rhs[key])) {
105867
+ if (Decimal.isDecimal(lhs[key]) || Decimal.isDecimal(rhs[key])) {
105627
105868
  const lhsDecimal = asDecimal(lhs[key]);
105628
105869
  const rhsDecimal = asDecimal(rhs[key]);
105629
105870
  return lhsDecimal && rhsDecimal && lhsDecimal.equals(rhsDecimal);
@@ -105642,10 +105883,10 @@ function doKeysMatch(lhs, rhs) {
105642
105883
  });
105643
105884
  }
105644
105885
  function asDecimal(value) {
105645
- if (decimal_default.isDecimal(value)) {
105886
+ if (Decimal.isDecimal(value)) {
105646
105887
  return value;
105647
105888
  } else if (typeof value === "number" || typeof value === "string") {
105648
- return new decimal_default(value);
105889
+ return new Decimal(value);
105649
105890
  } else {
105650
105891
  return;
105651
105892
  }
@@ -106090,7 +106331,7 @@ function mapValue(value, columnName, scalarType, enums) {
106090
106331
  throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
106091
106332
  }
106092
106333
  case "decimal":
106093
- if (typeof value !== "number" && typeof value !== "string" && !decimal_default.isDecimal(value)) {
106334
+ if (typeof value !== "number" && typeof value !== "string" && !Decimal.isDecimal(value)) {
106094
106335
  throw new DataMapperError(`Expected a decimal in column '${columnName}', got ${typeof value}: ${value}`);
106095
106336
  }
106096
106337
  return { $type: "Decimal", value };
@@ -107724,7 +107965,7 @@ var HonoRequest = class {
107724
107965
  return this.bodyCache.parsedBody ??= await parseBody(this, options);
107725
107966
  }
107726
107967
  #cachedBody = (key) => {
107727
- const { bodyCache, raw: raw2 } = this;
107968
+ const { bodyCache, raw: raw3 } = this;
107728
107969
  const cachedBody = bodyCache[key];
107729
107970
  if (cachedBody) {
107730
107971
  return cachedBody;
@@ -107738,7 +107979,7 @@ var HonoRequest = class {
107738
107979
  return new Response(body)[key]();
107739
107980
  });
107740
107981
  }
107741
- return bodyCache[key] = raw2[key]();
107982
+ return bodyCache[key] = raw3[key]();
107742
107983
  };
107743
107984
  json() {
107744
107985
  return this.#cachedBody("text").then((text) => JSON.parse(text));
@@ -107784,7 +108025,7 @@ var HtmlEscapedCallbackPhase = {
107784
108025
  BeforeStream: 2,
107785
108026
  Stream: 3
107786
108027
  };
107787
- var raw = (value, callbacks) => {
108028
+ var raw2 = (value, callbacks) => {
107788
108029
  const escapedString = new String(value);
107789
108030
  escapedString.isEscaped = true;
107790
108031
  escapedString.callbacks = callbacks;
@@ -107814,7 +108055,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context2, buffer) =>
107814
108055
  ).then(() => buffer[0])
107815
108056
  );
107816
108057
  if (preserveCallbacks) {
107817
- return raw(await resStr, callbacks);
108058
+ return raw2(await resStr, callbacks);
107818
108059
  } else {
107819
108060
  return resStr;
107820
108061
  }
@@ -123731,6 +123972,17 @@ function getErrorResponse(error44, ctx) {
123731
123972
  });
123732
123973
  /*! Bundled license information:
123733
123974
 
123975
+ decimal.js/decimal.mjs:
123976
+ (*!
123977
+ * decimal.js v10.5.0
123978
+ * An arbitrary-precision Decimal type for JavaScript.
123979
+ * https://github.com/MikeMcl/decimal.js
123980
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
123981
+ * MIT Licence
123982
+ *)
123983
+ */
123984
+ /*! Bundled license information:
123985
+
123734
123986
  @noble/hashes/utils.js:
123735
123987
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
123736
123988
 
@@ -123903,13 +124155,4 @@ js-md4/src/md4.js:
123903
124155
  * @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
123904
124156
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
123905
124157
  *)
123906
-
123907
- decimal.js/decimal.mjs:
123908
- (*!
123909
- * decimal.js v10.5.0
123910
- * An arbitrary-precision Decimal type for JavaScript.
123911
- * https://github.com/MikeMcl/decimal.js
123912
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
123913
- * MIT Licence
123914
- *)
123915
124158
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "6.18.0",
3
+ "version": "6.19.0-integration-next.1",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,11 +20,11 @@
20
20
  "temporal-polyfill": "0.3.0",
21
21
  "vitest": "3.2.4",
22
22
  "zod": "4.1.3",
23
- "@prisma/adapter-pg": "6.18.0",
24
- "@prisma/adapter-mariadb": "6.18.0",
25
- "@prisma/client-engine-runtime": "6.18.0",
26
- "@prisma/adapter-mssql": "6.18.0",
27
- "@prisma/driver-adapter-utils": "6.18.0"
23
+ "@prisma/adapter-pg": "6.19.0-integration-next.1",
24
+ "@prisma/adapter-mssql": "6.19.0-integration-next.1",
25
+ "@prisma/adapter-mariadb": "6.19.0-integration-next.1",
26
+ "@prisma/client-engine-runtime": "6.19.0-integration-next.1",
27
+ "@prisma/driver-adapter-utils": "6.19.0-integration-next.1"
28
28
  },
29
29
  "files": [
30
30
  "dist"