@prisma/client 6.20.0-integration-next.13 → 6.20.0-integration-next.15

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.
@@ -4658,7 +4658,7 @@ var import_path4 = __toESM(require("path"));
4658
4658
  // package.json
4659
4659
  var package_default = {
4660
4660
  name: "@prisma/client",
4661
- version: "6.20.0-integration-next.13",
4661
+ version: "6.20.0-integration-next.15",
4662
4662
  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.",
4663
4663
  keywords: [
4664
4664
  "ORM",
@@ -8169,10 +8169,10 @@ function buildDebugInitialization(edge) {
8169
8169
  }
8170
8170
 
8171
8171
  // ../client-generator-js/src/utils/buildDMMF.ts
8172
- function buildRuntimeDataModel(datamodel, runtimeNameJs) {
8172
+ function buildRuntimeDataModel(datamodel, runtimeName) {
8173
8173
  const runtimeDataModel = dmmfToRuntimeDataModel(datamodel);
8174
8174
  let prunedDataModel;
8175
- if (runtimeNameJs === "wasm-compiler-edge" || runtimeNameJs === "client") {
8175
+ if (runtimeName === "wasm-compiler-edge" || runtimeName === "client") {
8176
8176
  prunedDataModel = pruneRuntimeDataModel(runtimeDataModel);
8177
8177
  } else {
8178
8178
  prunedDataModel = runtimeDataModel;
@@ -8184,8 +8184,8 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
8184
8184
  }
8185
8185
 
8186
8186
  // ../client-generator-js/src/utils/buildGetQueryCompilerWasmModule.ts
8187
- function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
8188
- if (runtimeNameJs === "client" && !forceEdgeWasmLoader) {
8187
+ function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeName) {
8188
+ if (runtimeName === "client" && !forceEdgeWasmLoader) {
8189
8189
  return `config.compilerWasm = {
8190
8190
  getRuntime: async () => require('./query_compiler_bg.js'),
8191
8191
  getQueryCompilerWasmModule: async () => {
@@ -8197,7 +8197,7 @@ function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
8197
8197
  }
8198
8198
  }`;
8199
8199
  }
8200
- if (runtimeNameJs === "client" && forceEdgeWasmLoader || runtimeNameJs === "wasm-compiler-edge") {
8200
+ if (runtimeName === "client" && forceEdgeWasmLoader || runtimeName === "wasm-compiler-edge") {
8201
8201
  return `config.compilerWasm = {
8202
8202
  getRuntime: async () => require('./query_compiler_bg.js'),
8203
8203
  getQueryCompilerWasmModule: async () => {
@@ -8221,7 +8221,7 @@ function buildRequirePath(edge) {
8221
8221
  var import_indent_string4 = __toESM(require_indent_string());
8222
8222
  var commonCodeJS = ({
8223
8223
  runtimeBase,
8224
- runtimeNameJs,
8224
+ runtimeName,
8225
8225
  browser,
8226
8226
  clientVersion,
8227
8227
  engineVersion,
@@ -8239,7 +8239,7 @@ const {
8239
8239
  Public,
8240
8240
  getRuntime,
8241
8241
  skip
8242
- } = require('${runtimeBase}/${runtimeNameJs}.js')
8242
+ } = require('${runtimeBase}/${runtimeName}.js')
8243
8243
  ` : `
8244
8244
  const {
8245
8245
  PrismaClientKnownRequestError,
@@ -8266,7 +8266,7 @@ const {
8266
8266
  Public,
8267
8267
  getRuntime,
8268
8268
  createParam,
8269
- } = require('${runtimeBase}/${runtimeNameJs}.js')
8269
+ } = require('${runtimeBase}/${runtimeName}.js')
8270
8270
  `}
8271
8271
 
8272
8272
  const Prisma = {}
@@ -8328,12 +8328,12 @@ In case this error is unexpected for you, please report it in https://pris.ly/pr
8328
8328
  };
8329
8329
  var commonCodeTS = ({
8330
8330
  runtimeBase,
8331
- runtimeNameTs,
8331
+ runtimeName,
8332
8332
  clientVersion,
8333
8333
  engineVersion,
8334
8334
  generator
8335
8335
  }) => ({
8336
- tsWithoutNamespace: () => `import * as runtime from '${runtimeBase}/${runtimeNameTs}';
8336
+ tsWithoutNamespace: () => `import * as runtime from '${runtimeBase}/${runtimeName}.js';
8337
8337
  import $Types = runtime.Types // general types
8338
8338
  import $Public = runtime.Types.Public
8339
8339
  import $Utils = runtime.Types.Utils
@@ -9143,19 +9143,12 @@ function runCommandRawDefinition(context) {
9143
9143
  `);
9144
9144
  return stringify(method2, { indentLevel: 1, newLine: "leading" });
9145
9145
  }
9146
- function eventRegistrationMethodDeclaration(runtimeNameTs) {
9147
- if (runtimeNameTs === "binary.js") {
9148
- return `$on<V extends (U | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => $Utils.JsPromise<void> : Prisma.LogEvent) => void): PrismaClient;`;
9149
- } else {
9150
- return `$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;`;
9151
- }
9152
- }
9153
9146
  var PrismaClientClass = class {
9154
- constructor(context, internalDatasources, outputDir, runtimeNameTs, browser) {
9147
+ constructor(context, internalDatasources, outputDir, runtimeName, browser) {
9155
9148
  this.context = context;
9156
9149
  this.internalDatasources = internalDatasources;
9157
9150
  this.outputDir = outputDir;
9158
- this.runtimeNameTs = runtimeNameTs;
9151
+ this.runtimeName = runtimeName;
9159
9152
  this.browser = browser;
9160
9153
  }
9161
9154
  get jsDoc() {
@@ -9197,7 +9190,7 @@ export class PrismaClient<
9197
9190
  ${(0, import_indent_string6.default)(this.jsDoc, TAB_SIZE)}
9198
9191
 
9199
9192
  constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
9200
- ${eventRegistrationMethodDeclaration(this.runtimeNameTs)}
9193
+ $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
9201
9194
 
9202
9195
  /**
9203
9196
  * Connect with the database
@@ -9353,8 +9346,10 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
9353
9346
  timeout ?= 5000
9354
9347
  `)
9355
9348
  );
9356
- if (["client.js", "wasm-compiler-edge.js"].includes(this.runtimeNameTs) && // We don't support a custom adapter with MongoDB for now.
9357
- this.internalDatasources.some((d) => d.provider !== "mongodb")) {
9349
+ if (
9350
+ // We don't support a custom adapter with MongoDB for now.
9351
+ this.internalDatasources.some((d) => d.provider !== "mongodb")
9352
+ ) {
9358
9353
  clientOptions.add(
9359
9354
  property("adapter", namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
9360
9355
  docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
@@ -9398,7 +9393,7 @@ var TSClient = class {
9398
9393
  dmmf;
9399
9394
  genericsInfo;
9400
9395
  toJS() {
9401
- const { edge, wasm, generator, datamodel: inlineSchema, runtimeNameJs, reusedJs } = this.options;
9396
+ const { edge, wasm, generator, datamodel: inlineSchema, runtimeName, reusedJs } = this.options;
9402
9397
  if (reusedJs) {
9403
9398
  return `module.exports = { ...require('${reusedJs}') }`;
9404
9399
  }
@@ -9432,8 +9427,8 @@ ${new Enum(
9432
9427
  * Create the Client
9433
9428
  */
9434
9429
  const config = ${JSON.stringify(config, null, 2)}
9435
- ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
9436
- ${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
9430
+ ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeName)}
9431
+ ${buildQueryCompilerWasmModule(wasm, runtimeName)}
9437
9432
  ${buildDebugInitialization(edge)}
9438
9433
  const PrismaClient = getPrismaClient(config)
9439
9434
  exports.PrismaClient = PrismaClient
@@ -9456,7 +9451,7 @@ Object.assign(exports, Prisma)
9456
9451
  context,
9457
9452
  this.options.datasources,
9458
9453
  this.options.outputDir,
9459
- this.options.runtimeNameTs,
9454
+ this.options.runtimeName,
9460
9455
  this.options.browser
9461
9456
  );
9462
9457
  const commonCode = commonCodeTS(this.options);
@@ -9590,7 +9585,7 @@ export const dmmf: runtime.BaseDMMF
9590
9585
  toBrowserJS() {
9591
9586
  const code = `${commonCodeJS({
9592
9587
  ...this.options,
9593
- runtimeNameJs: "index-browser",
9588
+ runtimeName: "index-browser",
9594
9589
  browser: true
9595
9590
  })}
9596
9591
  /**
@@ -9975,8 +9970,7 @@ async function buildClient({
9975
9970
  };
9976
9971
  const nodeClientOptions = {
9977
9972
  ...baseClientOptions,
9978
- runtimeNameJs: "client",
9979
- runtimeNameTs: "client.js"
9973
+ runtimeName: "client"
9980
9974
  };
9981
9975
  const nodeClient = new TSClient(nodeClientOptions);
9982
9976
  const defaultClient = new TSClient({
@@ -10062,8 +10056,7 @@ async function buildClient({
10062
10056
  };
10063
10057
  const wasmClient = new TSClient({
10064
10058
  ...baseClientOptions,
10065
- runtimeNameJs: "wasm-compiler-edge",
10066
- runtimeNameTs: "library.js",
10059
+ runtimeName: "wasm-compiler-edge",
10067
10060
  reusedTs: "default",
10068
10061
  edge: true,
10069
10062
  wasm: true
@@ -10403,7 +10396,7 @@ var import_node_path4 = __toESM(require("node:path"));
10403
10396
  var import_engines_version = __toESM(require_engines_version());
10404
10397
 
10405
10398
  // ../client-generator-js/package.json
10406
- var version = "6.20.0-integration-next.13";
10399
+ var version = "6.20.0-integration-next.15";
10407
10400
 
10408
10401
  // ../client-generator-js/src/resolvePrismaClient.ts
10409
10402
  var import_promises5 = __toESM(require("node:fs/promises"));
@@ -15422,8 +15415,7 @@ function dmmfToTypes(dmmf) {
15422
15415
  clientVersion: "",
15423
15416
  engineVersion: "",
15424
15417
  runtimeBase: "@prisma/client",
15425
- runtimeNameJs: "library",
15426
- runtimeNameTs: "library",
15418
+ runtimeName: "client",
15427
15419
  runtimeSourcePath: import_node_path5.default.join(__dirname, "../../../runtime"),
15428
15420
  schemaPath: "",
15429
15421
  outputDir: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "6.20.0-integration-next.13",
3
+ "version": "6.20.0-integration-next.15",
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",
@@ -218,35 +218,35 @@
218
218
  "typescript": "5.4.5",
219
219
  "undici": "7.4.0",
220
220
  "zx": "8.4.1",
221
- "@prisma/adapter-better-sqlite3": "6.20.0-integration-next.13",
222
- "@prisma/adapter-d1": "6.20.0-integration-next.13",
223
- "@prisma/adapter-libsql": "6.20.0-integration-next.13",
224
- "@prisma/adapter-mariadb": "6.20.0-integration-next.13",
225
- "@prisma/adapter-neon": "6.20.0-integration-next.13",
226
- "@prisma/adapter-mssql": "6.20.0-integration-next.13",
227
- "@prisma/adapter-pg": "6.20.0-integration-next.13",
228
- "@prisma/adapter-planetscale": "6.20.0-integration-next.13",
229
- "@prisma/client-engine-runtime": "6.20.0-integration-next.13",
230
- "@prisma/client-common": "6.20.0-integration-next.13",
231
- "@prisma/client-generator-js": "6.20.0-integration-next.13",
232
- "@prisma/client-generator-ts": "6.20.0-integration-next.13",
233
- "@prisma/config": "6.20.0-integration-next.13",
234
- "@prisma/debug": "6.20.0-integration-next.13",
235
- "@prisma/driver-adapter-utils": "6.20.0-integration-next.13",
236
- "@prisma/engines": "6.20.0-integration-next.13",
237
- "@prisma/dmmf": "6.20.0-integration-next.13",
238
- "@prisma/fetch-engine": "6.20.0-integration-next.13",
239
- "@prisma/generator": "6.20.0-integration-next.13",
240
- "@prisma/instrumentation": "6.20.0-integration-next.13",
241
- "@prisma/generator-helper": "6.20.0-integration-next.13",
242
- "@prisma/internals": "6.20.0-integration-next.13",
243
- "@prisma/get-platform": "6.20.0-integration-next.13",
244
- "@prisma/migrate": "6.20.0-integration-next.13",
245
- "@prisma/query-plan-executor": "6.20.0-integration-next.13",
246
- "@prisma/ts-builders": "6.20.0-integration-next.13"
221
+ "@prisma/adapter-better-sqlite3": "6.20.0-integration-next.15",
222
+ "@prisma/adapter-d1": "6.20.0-integration-next.15",
223
+ "@prisma/adapter-libsql": "6.20.0-integration-next.15",
224
+ "@prisma/adapter-mssql": "6.20.0-integration-next.15",
225
+ "@prisma/adapter-mariadb": "6.20.0-integration-next.15",
226
+ "@prisma/adapter-neon": "6.20.0-integration-next.15",
227
+ "@prisma/adapter-pg": "6.20.0-integration-next.15",
228
+ "@prisma/adapter-planetscale": "6.20.0-integration-next.15",
229
+ "@prisma/client-common": "6.20.0-integration-next.15",
230
+ "@prisma/client-generator-js": "6.20.0-integration-next.15",
231
+ "@prisma/client-generator-ts": "6.20.0-integration-next.15",
232
+ "@prisma/client-engine-runtime": "6.20.0-integration-next.15",
233
+ "@prisma/config": "6.20.0-integration-next.15",
234
+ "@prisma/dmmf": "6.20.0-integration-next.15",
235
+ "@prisma/debug": "6.20.0-integration-next.15",
236
+ "@prisma/driver-adapter-utils": "6.20.0-integration-next.15",
237
+ "@prisma/engines": "6.20.0-integration-next.15",
238
+ "@prisma/generator": "6.20.0-integration-next.15",
239
+ "@prisma/fetch-engine": "6.20.0-integration-next.15",
240
+ "@prisma/generator-helper": "6.20.0-integration-next.15",
241
+ "@prisma/get-platform": "6.20.0-integration-next.15",
242
+ "@prisma/instrumentation": "6.20.0-integration-next.15",
243
+ "@prisma/internals": "6.20.0-integration-next.15",
244
+ "@prisma/migrate": "6.20.0-integration-next.15",
245
+ "@prisma/ts-builders": "6.20.0-integration-next.15",
246
+ "@prisma/query-plan-executor": "6.20.0-integration-next.15"
247
247
  },
248
248
  "dependencies": {
249
- "@prisma/client-runtime-utils": "6.20.0-integration-next.13"
249
+ "@prisma/client-runtime-utils": "6.20.0-integration-next.15"
250
250
  },
251
251
  "peerDependencies": {
252
252
  "prisma": "*",
@@ -775,10 +775,7 @@ declare interface EngineConfig {
775
775
  logEmitter: LogEmitter;
776
776
  transactionOptions: Transaction_2.Options;
777
777
  /**
778
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`.
779
- * If set, this is only used in the library engine, and all queries would be performed through it,
780
- * rather than Prisma's Rust drivers.
781
- * @remarks only used by LibraryEngine.ts
778
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
782
779
  */
783
780
  adapter?: SqlDriverAdapterFactory;
784
781
  /**
@@ -775,10 +775,7 @@ declare interface EngineConfig {
775
775
  logEmitter: LogEmitter;
776
776
  transactionOptions: Transaction_2.Options;
777
777
  /**
778
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`.
779
- * If set, this is only used in the library engine, and all queries would be performed through it,
780
- * rather than Prisma's Rust drivers.
781
- * @remarks only used by LibraryEngine.ts
778
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
782
779
  */
783
780
  adapter?: SqlDriverAdapterFactory;
784
781
  /**