@prisma/query-plan-executor 6.18.0-integration-next.7 → 6.18.0-integration-next.8

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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Temporal } from 'temporal-spec';
2
+ import { version } from '../package.json';
2
3
 
3
4
  /**
4
5
  * An interface that exposes some basic information about the
@@ -255,6 +256,11 @@ declare type ConnectionInfo = {
255
256
  supportsRelationJoins: boolean;
256
257
  };
257
258
 
259
+ /**
260
+ * Log level options accepted by the console logger.
261
+ */
262
+ export declare type ConsoleLogLevel = LogLevel | 'off';
263
+
258
264
  declare type ContentfulStatusCode = Exclude<StatusCode, ContentlessStatusCode>;
259
265
 
260
266
  declare type ContentlessStatusCode = 101 | 204 | 205 | 304;
@@ -587,8 +593,9 @@ declare interface ContextVariableMap {
587
593
  /**
588
594
  * Creates a logger that keeps log events with a level greater than or equal
589
595
  * to {@link logLevel} and outputs them to console using format {@link logFormat}.
596
+ * When `logLevel` is `'off'`, all log events are dropped.
590
597
  */
591
- export declare function createConsoleLogger(logFormat: LogFormat, logLevel: LogLevel): Logger;
598
+ export declare function createConsoleLogger(logFormat: LogFormat, logLevel: LogLevel | 'off'): Logger;
592
599
 
593
600
  declare function createHonoServer(app: App, options: Options): Hono< {
594
601
  Variables: {
@@ -2455,7 +2462,7 @@ export declare type LogLevel = (typeof validLogLevels)[number];
2455
2462
  */
2456
2463
  export declare interface LogOptions {
2457
2464
  /** Minimum log level to output */
2458
- logLevel: LogLevel;
2465
+ logLevel: ConsoleLogLevel;
2459
2466
  /** Format of log output */
2460
2467
  logFormat: LogFormat;
2461
2468
  }
@@ -5236,6 +5243,8 @@ declare const validLogLevels: readonly ["debug", "query", "info", "warn", "error
5236
5243
 
5237
5244
  declare type Variables = object;
5238
5245
 
5246
+ export { version }
5247
+
5239
5248
  /**
5240
5249
  * Logs a warning message using the active logger.
5241
5250
  *
package/dist/index.js CHANGED
@@ -97606,10 +97606,14 @@ __export(index_exports, {
97606
97606
  parseLogFormat: () => parseLogFormat,
97607
97607
  parseLogLevel: () => parseLogLevel,
97608
97608
  parseSize: () => parseSize,
97609
+ version: () => version,
97609
97610
  withActiveLogger: () => withActiveLogger
97610
97611
  });
97611
97612
  module.exports = __toCommonJS(index_exports);
97612
97613
 
97614
+ // package.json
97615
+ var version = "6.18.0-integration-next.8";
97616
+
97613
97617
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
97614
97618
  function clampProp(e2, n2, t2, o2, r2) {
97615
97619
  return clampEntity(n2, ((e3, n3) => {
@@ -102437,6 +102441,10 @@ var CapturingSink = class {
102437
102441
  return this.events.map((event) => event.export());
102438
102442
  }
102439
102443
  };
102444
+ var DroppingSink = class {
102445
+ write(_3) {
102446
+ }
102447
+ };
102440
102448
  var CompositeSink = class {
102441
102449
  #downstream;
102442
102450
  constructor(...sinks) {
@@ -102464,7 +102472,8 @@ var FilteringSink = class {
102464
102472
 
102465
102473
  // src/log/factory.ts
102466
102474
  function createConsoleLogger(logFormat, logLevel) {
102467
- return new Logger(new FilteringSink(new ConsoleSink(createLogFormatter(logFormat)), thresholdLogFilter(logLevel)));
102475
+ const sink = logLevel === "off" ? new DroppingSink() : new FilteringSink(new ConsoleSink(createLogFormatter(logFormat)), thresholdLogFilter(logLevel));
102476
+ return new Logger(sink);
102468
102477
  }
102469
102478
 
102470
102479
  // ../../node_modules/.pnpm/hono@4.9.4/node_modules/hono/dist/utils/url.js
@@ -106146,12 +106155,12 @@ function mapValue(value, columnName, scalarType, enums) {
106146
106155
  }
106147
106156
  var TIME_TZ_PATTERN = /\d{2}:\d{2}:\d{2}(?:\.\d+)?(Z|[+-]\d{2}(:?\d{2})?)?$/;
106148
106157
  function normalizeDateTime(dt2) {
106149
- const matches = TIME_TZ_PATTERN.exec(dt2);
106150
- if (matches === null) {
106151
- return `${dt2}Z`;
106158
+ const timeTzMatches = TIME_TZ_PATTERN.exec(dt2);
106159
+ if (timeTzMatches === null) {
106160
+ return `${dt2}T00:00:00Z`;
106152
106161
  }
106153
106162
  let dtWithTz = dt2;
106154
- const [timeTz, tz, tzMinuteOffset] = matches;
106163
+ const [timeTz, tz, tzMinuteOffset] = timeTzMatches;
106155
106164
  if (tz !== void 0 && tz !== "Z" && tzMinuteOffset === void 0) {
106156
106165
  dtWithTz = `${dt2}:00`;
106157
106166
  } else if (tz === void 0) {
@@ -106160,6 +106169,10 @@ function normalizeDateTime(dt2) {
106160
106169
  if (timeTz.length === dt2.length) {
106161
106170
  return `1970-01-01T${dtWithTz}`;
106162
106171
  }
106172
+ const timeSeparatorIndex = timeTzMatches.index - 1;
106173
+ if (dtWithTz[timeSeparatorIndex] === " ") {
106174
+ dtWithTz = `${dtWithTz.slice(0, timeSeparatorIndex)}T${dtWithTz.slice(timeSeparatorIndex + 1)}`;
106175
+ }
106163
106176
  return dtWithTz;
106164
106177
  }
106165
106178
  function providerToOtelSystem(provider) {
@@ -109109,9 +109122,6 @@ function isPromiseLike(value) {
109109
109122
  return value != null && typeof value["then"] === "function";
109110
109123
  }
109111
109124
 
109112
- // package.json
109113
- var version = "6.18.0-integration-next.7";
109114
-
109115
109125
  // src/utils/error.ts
109116
109126
  function extractErrorFromUnknown(value) {
109117
109127
  if (value instanceof Error) {
@@ -109265,11 +109275,11 @@ var typeCast = (field, next) => {
109265
109275
  function formatDateTime(date5) {
109266
109276
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
109267
109277
  const ms = date5.getUTCMilliseconds();
109268
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
109278
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
109269
109279
  }
109270
109280
  function formatDate(date5) {
109271
109281
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
109272
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
109282
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
109273
109283
  }
109274
109284
  function formatTime(date5) {
109275
109285
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
@@ -109868,6 +109878,11 @@ function parseConnectionString(connectionString) {
109868
109878
  config3.options = config3.options || {};
109869
109879
  config3.options.trustServerCertificate = trustServerCertificate.toLowerCase() === "true";
109870
109880
  }
109881
+ const multiSubnetFailover = firstKey(parameters, "multiSubnetFailover");
109882
+ if (multiSubnetFailover !== null) {
109883
+ config3.options = config3.options || {};
109884
+ config3.options.multiSubnetFailover = multiSubnetFailover.toLowerCase() === "true";
109885
+ }
109871
109886
  const connectionLimit = firstKey(parameters, "connectionLimit");
109872
109887
  if (connectionLimit !== null) {
109873
109888
  config3.pool = config3.pool || {};
@@ -110017,6 +110032,7 @@ var handledParameters = [
110017
110032
  "initial catalog",
110018
110033
  "isolationLevel",
110019
110034
  "loginTimeout",
110035
+ "multiSubnetFailover",
110020
110036
  "password",
110021
110037
  "poolTimeout",
110022
110038
  "pwd",
@@ -110165,11 +110181,11 @@ function mapRow2(row, columns) {
110165
110181
  function formatDateTime2(date5) {
110166
110182
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
110167
110183
  const ms = date5.getUTCMilliseconds();
110168
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
110184
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate()) + " " + pad2(date5.getUTCHours()) + ":" + pad2(date5.getUTCMinutes()) + ":" + pad2(date5.getUTCSeconds()) + (ms ? "." + String(ms).padStart(3, "0") : "");
110169
110185
  }
110170
110186
  function formatDate2(date5) {
110171
110187
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
110172
- return date5.getUTCFullYear() + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
110188
+ return pad2(date5.getUTCFullYear(), 4) + "-" + pad2(date5.getUTCMonth() + 1) + "-" + pad2(date5.getUTCDate());
110173
110189
  }
110174
110190
  function formatTime2(date5) {
110175
110191
  const pad2 = (n2, z2 = 2) => String(n2).padStart(z2, "0");
@@ -110760,10 +110776,10 @@ function normalize_date(date5) {
110760
110776
  return date5;
110761
110777
  }
110762
110778
  function normalize_timestamp(time3) {
110763
- return (/* @__PURE__ */ new Date(`${time3}Z`)).toISOString().replace(/(\.000)?Z$/, "+00:00");
110779
+ return `${time3.replace(" ", "T")}+00:00`;
110764
110780
  }
110765
- function normalize_timestampz(time3) {
110766
- return new Date(time3.replace(/[+-]\d{2}(:\d{2})?$/, "Z")).toISOString().replace(/(\.000)?Z$/, "+00:00");
110781
+ function normalize_timestamptz(time3) {
110782
+ return time3.replace(" ", "T").replace(/[+-]\d{2}(:\d{2})?$/, "+00:00");
110767
110783
  }
110768
110784
  function normalize_time(time3) {
110769
110785
  return time3;
@@ -110806,8 +110822,8 @@ var customParsers = {
110806
110822
  [ArrayColumnType.DATE_ARRAY]: normalize_array(normalize_date),
110807
110823
  [ScalarColumnType.TIMESTAMP]: normalize_timestamp,
110808
110824
  [ArrayColumnType.TIMESTAMP_ARRAY]: normalize_array(normalize_timestamp),
110809
- [ScalarColumnType.TIMESTAMPTZ]: normalize_timestampz,
110810
- [ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestampz),
110825
+ [ScalarColumnType.TIMESTAMPTZ]: normalize_timestamptz,
110826
+ [ArrayColumnType.TIMESTAMPTZ_ARRAY]: normalize_array(normalize_timestamptz),
110811
110827
  [ScalarColumnType.MONEY]: normalize_money,
110812
110828
  [ArrayColumnType.MONEY_ARRAY]: normalize_array(normalize_money),
110813
110829
  [ScalarColumnType.JSON]: toJson,
@@ -123709,6 +123725,7 @@ function getErrorResponse(error44, ctx) {
123709
123725
  parseLogFormat,
123710
123726
  parseLogLevel,
123711
123727
  parseSize,
123728
+ version,
123712
123729
  withActiveLogger
123713
123730
  });
123714
123731
  /*! Bundled license information:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "6.18.0-integration-next.7",
3
+ "version": "6.18.0-integration-next.8",
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",
@@ -14,17 +14,17 @@
14
14
  "@hono/node-server": "1.19.0",
15
15
  "@hono/zod-validator": "0.7.2",
16
16
  "@opentelemetry/api": "1.9.0",
17
- "@opentelemetry/context-async-hooks": "2.0.1",
18
- "@opentelemetry/sdk-trace-base": "2.0.1",
17
+ "@opentelemetry/context-async-hooks": "2.1.0",
18
+ "@opentelemetry/sdk-trace-base": "2.1.0",
19
19
  "hono": "4.9.4",
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.7",
24
- "@prisma/adapter-mssql": "6.18.0-integration-next.7",
25
- "@prisma/client-engine-runtime": "6.18.0-integration-next.7",
26
- "@prisma/driver-adapter-utils": "6.18.0-integration-next.7",
27
- "@prisma/adapter-mariadb": "6.18.0-integration-next.7"
23
+ "@prisma/adapter-pg": "6.18.0-integration-next.8",
24
+ "@prisma/adapter-mssql": "6.18.0-integration-next.8",
25
+ "@prisma/driver-adapter-utils": "6.18.0-integration-next.8",
26
+ "@prisma/adapter-mariadb": "6.18.0-integration-next.8",
27
+ "@prisma/client-engine-runtime": "6.18.0-integration-next.8"
28
28
  },
29
29
  "files": [
30
30
  "dist"