@prisma/client 7.10.1 → 7.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "7.10.1",
3
+ "version": "7.11.0-dev.1",
4
4
  "description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
5
5
  "keywords": [
6
6
  "ORM",
@@ -212,41 +212,41 @@
212
212
  "typescript": "5.4.5",
213
213
  "undici": "7.4.0",
214
214
  "zx": "8.4.1",
215
- "@prisma/adapter-d1": "7.10.1",
216
- "@prisma/adapter-better-sqlite3": "7.10.1",
217
- "@prisma/adapter-libsql": "7.10.1",
218
- "@prisma/adapter-mariadb": "7.10.1",
219
- "@prisma/adapter-neon": "7.10.1",
220
- "@prisma/adapter-planetscale": "7.10.1",
221
- "@prisma/adapter-pg": "7.10.1",
222
- "@prisma/client-common": "7.10.1",
223
- "@prisma/client-engine-runtime": "7.10.1",
224
- "@prisma/adapter-mssql": "7.10.1",
225
- "@prisma/client-generator-ts": "7.10.1",
226
- "@prisma/config": "7.10.1",
227
- "@prisma/dmmf": "7.10.1",
228
- "@prisma/debug": "7.10.1",
229
- "@prisma/driver-adapter-utils": "7.10.1",
230
- "@prisma/engines": "7.10.1",
231
- "@prisma/fetch-engine": "7.10.1",
232
- "@prisma/client-generator-js": "7.10.1",
233
- "@prisma/generator": "7.10.1",
234
- "@prisma/get-platform": "7.10.1",
235
- "@prisma/generator-helper": "7.10.1",
236
- "@prisma/instrumentation": "7.10.1",
237
- "@prisma/instrumentation-contract": "7.10.1",
238
- "@prisma/json-protocol": "7.10.1",
239
- "@prisma/migrate": "7.10.1",
240
- "@prisma/internals": "7.10.1",
241
- "@prisma/query-plan-executor": "7.10.1",
242
- "@prisma/sqlcommenter": "7.10.1",
243
- "@prisma/param-graph-builder": "7.10.1",
244
- "@prisma/sqlcommenter-trace-context": "7.10.1",
245
- "@prisma/param-graph": "7.10.1",
246
- "@prisma/ts-builders": "7.10.1"
215
+ "@prisma/adapter-better-sqlite3": "7.11.0-dev.1",
216
+ "@prisma/adapter-d1": "7.11.0-dev.1",
217
+ "@prisma/adapter-libsql": "7.11.0-dev.1",
218
+ "@prisma/adapter-mariadb": "7.11.0-dev.1",
219
+ "@prisma/adapter-mssql": "7.11.0-dev.1",
220
+ "@prisma/adapter-planetscale": "7.11.0-dev.1",
221
+ "@prisma/client-engine-runtime": "7.11.0-dev.1",
222
+ "@prisma/client-common": "7.11.0-dev.1",
223
+ "@prisma/adapter-neon": "7.11.0-dev.1",
224
+ "@prisma/adapter-pg": "7.11.0-dev.1",
225
+ "@prisma/client-generator-ts": "7.11.0-dev.1",
226
+ "@prisma/config": "7.11.0-dev.1",
227
+ "@prisma/debug": "7.11.0-dev.1",
228
+ "@prisma/dmmf": "7.11.0-dev.1",
229
+ "@prisma/client-generator-js": "7.11.0-dev.1",
230
+ "@prisma/driver-adapter-utils": "7.11.0-dev.1",
231
+ "@prisma/fetch-engine": "7.11.0-dev.1",
232
+ "@prisma/engines": "7.11.0-dev.1",
233
+ "@prisma/generator": "7.11.0-dev.1",
234
+ "@prisma/generator-helper": "7.11.0-dev.1",
235
+ "@prisma/get-platform": "7.11.0-dev.1",
236
+ "@prisma/instrumentation": "7.11.0-dev.1",
237
+ "@prisma/internals": "7.11.0-dev.1",
238
+ "@prisma/instrumentation-contract": "7.11.0-dev.1",
239
+ "@prisma/json-protocol": "7.11.0-dev.1",
240
+ "@prisma/migrate": "7.11.0-dev.1",
241
+ "@prisma/param-graph": "7.11.0-dev.1",
242
+ "@prisma/param-graph-builder": "7.11.0-dev.1",
243
+ "@prisma/sqlcommenter": "7.11.0-dev.1",
244
+ "@prisma/query-plan-executor": "7.11.0-dev.1",
245
+ "@prisma/ts-builders": "7.11.0-dev.1",
246
+ "@prisma/sqlcommenter-trace-context": "7.11.0-dev.1"
247
247
  },
248
248
  "dependencies": {
249
- "@prisma/client-runtime-utils": "7.10.1"
249
+ "@prisma/client-runtime-utils": "7.11.0-dev.1"
250
250
  },
251
251
  "peerDependencies": {
252
252
  "prisma": "*",
@@ -264,13 +264,13 @@
264
264
  "scripts": {
265
265
  "dev": "DEV=true tsx helpers/build.ts",
266
266
  "build": "tsx helpers/build.ts",
267
- "test": "dotenv -e ../../.db.env -- jest --silent",
267
+ "test": "dotenv -e ../../.db.env -- vitest run",
268
268
  "test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
269
269
  "test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
270
270
  "test:functional:client": "pnpm run test:functional --client-runtime client",
271
271
  "test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
272
272
  "test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
273
- "test-notypes": "dotenv -e ../../.db.env -- jest --testPathIgnorePatterns src/__tests__/types/types.test.ts",
273
+ "test-notypes": "dotenv -e ../../.db.env -- vitest run --exclude src/__tests__/types/types.test.ts",
274
274
  "new-test": "tsx ./helpers/new-test/new-test.ts"
275
275
  }
276
276
  }
@@ -1792,6 +1792,11 @@ declare class MergedExtensionsList {
1792
1792
  static empty(): MergedExtensionsList;
1793
1793
  static single(extension: ExtensionArgs): MergedExtensionsList;
1794
1794
  isEmpty(): boolean;
1795
+ /**
1796
+ * Whether any extension in the list has a `result` component, i.e. whether
1797
+ * applying result extensions to a query result can change it at all.
1798
+ */
1799
+ hasResultExtension(): boolean;
1795
1800
  append(extension: ExtensionArgs): MergedExtensionsList;
1796
1801
  getAllComputedFields(dmmfModelName: string): ComputedFieldsMap | undefined;
1797
1802
  getAllClientExtensions(): ClientArg | undefined;
@@ -2301,6 +2306,12 @@ declare type PureQueryPlanNode<Rest = never> = {
2301
2306
  * query plan purification. Never produced by the query compiler.
2302
2307
  */
2303
2308
  lastInsertId?: string;
2309
+ /**
2310
+ * Present when this node holds an already-evaluated runtime result (e.g. from
2311
+ * an evaluated impure query plan node) and does not need to be traversed and copied
2312
+ * by evaluateArg.
2313
+ */
2314
+ isEvaluated?: boolean;
2304
2315
  } | {
2305
2316
  type: 'seq';
2306
2317
  args: (PureQueryPlanNode<Rest> | Rest)[];
@@ -3291,6 +3302,12 @@ declare namespace Transaction {
3291
3302
  }
3292
3303
  }
3293
3304
 
3305
+ /**
3306
+ * A transaction on one connection. The caller calls either `commit()` or `rollback()`, once,
3307
+ * and sends nothing on the transaction afterwards. `commit()` is called only when no statement is
3308
+ * running. `rollback()`, `rollbackToSavepoint()`, `releaseSavepoint()` and a `ROLLBACK` sent through
3309
+ * `executeRaw` may be called while one is.
3310
+ */
3294
3311
  declare interface Transaction_2 extends AdapterInfo, SqlQueryable {
3295
3312
  /**
3296
3313
  * Transaction options.
@@ -1792,6 +1792,11 @@ declare class MergedExtensionsList {
1792
1792
  static empty(): MergedExtensionsList;
1793
1793
  static single(extension: ExtensionArgs): MergedExtensionsList;
1794
1794
  isEmpty(): boolean;
1795
+ /**
1796
+ * Whether any extension in the list has a `result` component, i.e. whether
1797
+ * applying result extensions to a query result can change it at all.
1798
+ */
1799
+ hasResultExtension(): boolean;
1795
1800
  append(extension: ExtensionArgs): MergedExtensionsList;
1796
1801
  getAllComputedFields(dmmfModelName: string): ComputedFieldsMap | undefined;
1797
1802
  getAllClientExtensions(): ClientArg | undefined;
@@ -2301,6 +2306,12 @@ declare type PureQueryPlanNode<Rest = never> = {
2301
2306
  * query plan purification. Never produced by the query compiler.
2302
2307
  */
2303
2308
  lastInsertId?: string;
2309
+ /**
2310
+ * Present when this node holds an already-evaluated runtime result (e.g. from
2311
+ * an evaluated impure query plan node) and does not need to be traversed and copied
2312
+ * by evaluateArg.
2313
+ */
2314
+ isEvaluated?: boolean;
2304
2315
  } | {
2305
2316
  type: 'seq';
2306
2317
  args: (PureQueryPlanNode<Rest> | Rest)[];
@@ -3291,6 +3302,12 @@ declare namespace Transaction {
3291
3302
  }
3292
3303
  }
3293
3304
 
3305
+ /**
3306
+ * A transaction on one connection. The caller calls either `commit()` or `rollback()`, once,
3307
+ * and sends nothing on the transaction afterwards. `commit()` is called only when no statement is
3308
+ * running. `rollback()`, `rollbackToSavepoint()`, `releaseSavepoint()` and a `ROLLBACK` sent through
3309
+ * `executeRaw` may be called while one is.
3310
+ */
3294
3311
  declare interface Transaction_2 extends AdapterInfo, SqlQueryable {
3295
3312
  /**
3296
3313
  * Transaction options.