@prisma/query-plan-executor 6.18.0-integration-next.11 → 6.19.0-dev.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 +39 -282
  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: secret2, keyId } = cacheRecord.accessToken;
49801
+ const { secret, keyId } = cacheRecord.accessToken;
49802
49802
  if (!keyId) {
49803
49803
  throw createClientAuthError(keyIdMissing);
49804
49804
  }
49805
- accessToken = await popTokenGenerator.signPopToken(secret2, keyId, request3);
49805
+ accessToken = await popTokenGenerator.signPopToken(secret, 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, secret2) {
52893
- checkIsSecretKey(secret2);
52892
+ return function sign2(thing, secret) {
52893
+ checkIsSecretKey(secret);
52894
52894
  thing = normalizeInput(thing);
52895
- var hmac = crypto7.createHmac("sha" + bits, secret2);
52895
+ var hmac = crypto7.createHmac("sha" + bits, secret);
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, secret2) {
52902
- var computedSig = createHmacSigner(bits)(thing, secret2);
52901
+ return function verify(thing, signature, secret) {
52902
+ var computedSig = createHmacSigner(bits)(thing, secret);
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 secret2 = opts.secret || opts.privateKey || opts.key;
53052
- var secretStream = new DataStream(secret2);
53051
+ var secret = opts.secret || opts.privateKey || opts.key;
53052
+ var secretStream = new DataStream(secret);
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 secret2;
58087
+ let secret;
58088
58088
  try {
58089
- secret2 = (0, import_fs2.readFileSync)(secretFilePath, "utf-8");
58089
+ secret = (0, import_fs2.readFileSync)(secretFilePath, "utf-8");
58090
58090
  } catch (e2) {
58091
58091
  throw createManagedIdentityError(unableToReadSecretFile);
58092
58092
  }
58093
- const authHeaderValue = `Basic ${secret2}`;
58093
+ const authHeaderValue = `Basic ${secret}`;
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(raw3) {
92896
+ function PostgresInterval(raw2) {
92897
92897
  if (!(this instanceof PostgresInterval)) {
92898
- return new PostgresInterval(raw3);
92898
+ return new PostgresInterval(raw2);
92899
92899
  }
92900
- extend3(this, parse5(raw3));
92900
+ extend3(this, parse5(raw2));
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-integration-next.11";
97615
+ var version = "6.19.0-dev.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,182 +102884,7 @@ var zValidator = (target, schema, hook, options) => (
102884
102884
  })
102885
102885
  );
102886
102886
 
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);
102887
+ // ../../node_modules/.pnpm/decimal.js@10.5.0/node_modules/decimal.js/decimal.mjs
103063
102888
  var EXP_LIMIT = 9e15;
103064
102889
  var MAX_DIGITS = 1e9;
103065
102890
  var NUMERALS = "0123456789abcdef";
@@ -104939,7 +104764,7 @@ function cosh(x2) {
104939
104764
  function clone(obj) {
104940
104765
  var i2, p2, ps;
104941
104766
  function Decimal2(v2) {
104942
- var e2, i22, t2, x2 = this;
104767
+ var e2, i3, t2, x2 = this;
104943
104768
  if (!(x2 instanceof Decimal2)) return new Decimal2(v2);
104944
104769
  x2.constructor = Decimal2;
104945
104770
  if (isDecimalInstance(v2)) {
@@ -104976,7 +104801,7 @@ function clone(obj) {
104976
104801
  x2.s = 1;
104977
104802
  }
104978
104803
  if (v2 === ~~v2 && v2 < 1e7) {
104979
- for (e2 = 0, i22 = v2; i22 >= 10; i22 /= 10) e2++;
104804
+ for (e2 = 0, i3 = v2; i3 >= 10; i3 /= 10) e2++;
104980
104805
  if (external) {
104981
104806
  if (e2 > Decimal2.maxE) {
104982
104807
  x2.e = NaN;
@@ -105003,11 +104828,11 @@ function clone(obj) {
105003
104828
  return parseDecimal(x2, v2.toString());
105004
104829
  }
105005
104830
  if (t2 === "string") {
105006
- if ((i22 = v2.charCodeAt(0)) === 45) {
104831
+ if ((i3 = v2.charCodeAt(0)) === 45) {
105007
104832
  v2 = v2.slice(1);
105008
104833
  x2.s = -1;
105009
104834
  } else {
105010
- if (i22 === 43) v2 = v2.slice(1);
104835
+ if (i3 === 43) v2 = v2.slice(1);
105011
104836
  x2.s = 1;
105012
104837
  }
105013
104838
  return isDecimal.test(v2) ? parseDecimal(x2, v2) : parseOther(x2, v2);
@@ -105234,73 +105059,7 @@ P2[Symbol.toStringTag] = "Decimal";
105234
105059
  var Decimal = P2.constructor = clone(DEFAULTS);
105235
105060
  LN10 = new Decimal(LN10);
105236
105061
  PI = new Decimal(PI);
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("");
105062
+ var decimal_default = Decimal;
105304
105063
 
105305
105064
  // ../debug/dist/index.mjs
105306
105065
  var __defProp2 = Object.defineProperty;
@@ -105864,7 +105623,7 @@ function doKeysMatch(lhs, rhs) {
105864
105623
  if (typeof lhs[key] === typeof rhs[key] && typeof lhs[key] !== "object") {
105865
105624
  return lhs[key] === rhs[key];
105866
105625
  }
105867
- if (Decimal.isDecimal(lhs[key]) || Decimal.isDecimal(rhs[key])) {
105626
+ if (decimal_default.isDecimal(lhs[key]) || decimal_default.isDecimal(rhs[key])) {
105868
105627
  const lhsDecimal = asDecimal(lhs[key]);
105869
105628
  const rhsDecimal = asDecimal(rhs[key]);
105870
105629
  return lhsDecimal && rhsDecimal && lhsDecimal.equals(rhsDecimal);
@@ -105883,10 +105642,10 @@ function doKeysMatch(lhs, rhs) {
105883
105642
  });
105884
105643
  }
105885
105644
  function asDecimal(value) {
105886
- if (Decimal.isDecimal(value)) {
105645
+ if (decimal_default.isDecimal(value)) {
105887
105646
  return value;
105888
105647
  } else if (typeof value === "number" || typeof value === "string") {
105889
- return new Decimal(value);
105648
+ return new decimal_default(value);
105890
105649
  } else {
105891
105650
  return;
105892
105651
  }
@@ -106331,7 +106090,7 @@ function mapValue(value, columnName, scalarType, enums) {
106331
106090
  throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
106332
106091
  }
106333
106092
  case "decimal":
106334
- if (typeof value !== "number" && typeof value !== "string" && !Decimal.isDecimal(value)) {
106093
+ if (typeof value !== "number" && typeof value !== "string" && !decimal_default.isDecimal(value)) {
106335
106094
  throw new DataMapperError(`Expected a decimal in column '${columnName}', got ${typeof value}: ${value}`);
106336
106095
  }
106337
106096
  return { $type: "Decimal", value };
@@ -107965,7 +107724,7 @@ var HonoRequest = class {
107965
107724
  return this.bodyCache.parsedBody ??= await parseBody(this, options);
107966
107725
  }
107967
107726
  #cachedBody = (key) => {
107968
- const { bodyCache, raw: raw3 } = this;
107727
+ const { bodyCache, raw: raw2 } = this;
107969
107728
  const cachedBody = bodyCache[key];
107970
107729
  if (cachedBody) {
107971
107730
  return cachedBody;
@@ -107979,7 +107738,7 @@ var HonoRequest = class {
107979
107738
  return new Response(body)[key]();
107980
107739
  });
107981
107740
  }
107982
- return bodyCache[key] = raw3[key]();
107741
+ return bodyCache[key] = raw2[key]();
107983
107742
  };
107984
107743
  json() {
107985
107744
  return this.#cachedBody("text").then((text) => JSON.parse(text));
@@ -108025,7 +107784,7 @@ var HtmlEscapedCallbackPhase = {
108025
107784
  BeforeStream: 2,
108026
107785
  Stream: 3
108027
107786
  };
108028
- var raw2 = (value, callbacks) => {
107787
+ var raw = (value, callbacks) => {
108029
107788
  const escapedString = new String(value);
108030
107789
  escapedString.isEscaped = true;
108031
107790
  escapedString.callbacks = callbacks;
@@ -108055,7 +107814,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context2, buffer) =>
108055
107814
  ).then(() => buffer[0])
108056
107815
  );
108057
107816
  if (preserveCallbacks) {
108058
- return raw2(await resStr, callbacks);
107817
+ return raw(await resStr, callbacks);
108059
107818
  } else {
108060
107819
  return resStr;
108061
107820
  }
@@ -123972,17 +123731,6 @@ function getErrorResponse(error44, ctx) {
123972
123731
  });
123973
123732
  /*! Bundled license information:
123974
123733
 
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
-
123986
123734
  @noble/hashes/utils.js:
123987
123735
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
123988
123736
 
@@ -124155,4 +123903,13 @@ js-md4/src/md4.js:
124155
123903
  * @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
124156
123904
  * @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
124157
123905
  *)
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
+ *)
124158
123915
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "6.18.0-integration-next.11",
3
+ "version": "6.19.0-dev.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-integration-next.11",
24
- "@prisma/client-engine-runtime": "6.18.0-integration-next.11",
25
- "@prisma/driver-adapter-utils": "6.18.0-integration-next.11",
26
- "@prisma/adapter-mariadb": "6.18.0-integration-next.11",
27
- "@prisma/adapter-mssql": "6.18.0-integration-next.11"
23
+ "@prisma/adapter-pg": "6.19.0-dev.1",
24
+ "@prisma/adapter-mariadb": "6.19.0-dev.1",
25
+ "@prisma/adapter-mssql": "6.19.0-dev.1",
26
+ "@prisma/driver-adapter-utils": "6.19.0-dev.1",
27
+ "@prisma/client-engine-runtime": "6.19.0-dev.1"
28
28
  },
29
29
  "files": [
30
30
  "dist"