@prisma/query-plan-executor 7.4.0 → 7.5.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.
package/dist/index.d.ts CHANGED
@@ -2243,7 +2243,7 @@ export declare interface Options {
2243
2243
  }
2244
2244
 
2245
2245
  declare type Pagination = {
2246
- cursor: Record<string, PrismaValue> | null;
2246
+ cursor: Record<string, unknown> | null;
2247
2247
  take: number | null;
2248
2248
  skip: number | null;
2249
2249
  };
package/dist/index.js CHANGED
@@ -101325,7 +101325,7 @@ __export(index_exports, {
101325
101325
  module.exports = __toCommonJS(index_exports);
101326
101326
 
101327
101327
  // package.json
101328
- var version = "7.4.0";
101328
+ var version = "7.5.0-dev.1";
101329
101329
 
101330
101330
  // ../../node_modules/.pnpm/temporal-polyfill@0.3.0/node_modules/temporal-polyfill/chunks/internal.js
101331
101331
  function clampProp(e2, n2, t2, o2, r2) {
@@ -111180,6 +111180,7 @@ var QueryInterpreter = class _QueryInterpreter {
111180
111180
  }
111181
111181
  case "process": {
111182
111182
  const { value, lastInsertId } = await this.interpretNode(node.args.expr, context2);
111183
+ evaluateProcessingParameters(node.args.operations, context2.scope, context2.generators);
111183
111184
  return { value: processRecords(value, node.args.operations), lastInsertId };
111184
111185
  }
111185
111186
  case "initializeRecord": {
@@ -111355,6 +111356,17 @@ function applyComments(query2, sqlCommenter) {
111355
111356
  sql: appendSqlComment(query2.sql, comment)
111356
111357
  };
111357
111358
  }
111359
+ function evaluateProcessingParameters(ops, scope, generators) {
111360
+ const cursor = ops.pagination?.cursor;
111361
+ if (cursor) {
111362
+ for (const [key, value] of Object.entries(cursor)) {
111363
+ cursor[key] = evaluateArg(value, scope, generators);
111364
+ }
111365
+ }
111366
+ for (const nested of Object.values(ops.nested)) {
111367
+ evaluateProcessingParameters(nested, scope, generators);
111368
+ }
111369
+ }
111358
111370
  async function getCrypto() {
111359
111371
  return globalThis.crypto ?? await import("node:crypto");
111360
111372
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/query-plan-executor",
3
- "version": "7.4.0",
3
+ "version": "7.5.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": "7.4.0",
24
- "@prisma/adapter-mariadb": "7.4.0",
25
- "@prisma/client-engine-runtime": "7.4.0",
26
- "@prisma/adapter-mssql": "7.4.0",
27
- "@prisma/driver-adapter-utils": "7.4.0"
23
+ "@prisma/adapter-pg": "7.5.0-dev.1",
24
+ "@prisma/adapter-mariadb": "7.5.0-dev.1",
25
+ "@prisma/client-engine-runtime": "7.5.0-dev.1",
26
+ "@prisma/adapter-mssql": "7.5.0-dev.1",
27
+ "@prisma/driver-adapter-utils": "7.5.0-dev.1"
28
28
  },
29
29
  "files": [
30
30
  "dist"