@prisma/client-generator-js 6.20.0-integration-next.14 → 6.20.0-integration-next.16

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.
@@ -6,9 +6,9 @@ export declare class PrismaClientClass implements Generable {
6
6
  protected readonly context: GenerateContext;
7
7
  protected readonly internalDatasources: DataSource[];
8
8
  protected readonly outputDir: string;
9
- protected readonly runtimeNameTs: TSClientOptions['runtimeNameTs'];
9
+ protected readonly runtimeName: TSClientOptions['runtimeName'];
10
10
  protected readonly browser?: boolean | undefined;
11
- constructor(context: GenerateContext, internalDatasources: DataSource[], outputDir: string, runtimeNameTs: TSClientOptions['runtimeNameTs'], browser?: boolean | undefined);
11
+ constructor(context: GenerateContext, internalDatasources: DataSource[], outputDir: string, runtimeName: TSClientOptions['runtimeName'], browser?: boolean | undefined);
12
12
  private get jsDoc();
13
13
  toTSWithoutNamespace(): string;
14
14
  toTS(): string;
@@ -3,12 +3,10 @@ import { DMMFHelper } from '../dmmf';
3
3
  import { GenerateClientOptions } from '../generateClient';
4
4
  import { GenericArgsInfo } from '../GenericsArgsInfo';
5
5
  import { type Generable } from './Generable';
6
- type RuntimeName = 'library' | 'wasm-compiler-edge' | 'index-browser' | 'client' | (string & {});
6
+ type RuntimeName = 'wasm-compiler-edge' | 'index-browser' | 'client' | (string & {});
7
7
  export type TSClientOptions = O.Required<GenerateClientOptions, 'runtimeBase'> & {
8
8
  /** More granular way to define JS runtime name */
9
- runtimeNameJs: RuntimeName;
10
- /** More granular way to define TS runtime name */
11
- runtimeNameTs: RuntimeName;
9
+ runtimeName: RuntimeName;
12
10
  /** When generating the browser client */
13
11
  browser: boolean;
14
12
  /** When we are generating an /edge client */
@@ -1,7 +1,7 @@
1
1
  import type { TSClientOptions } from './TSClient';
2
- export declare const commonCodeJS: ({ runtimeBase, runtimeNameJs, browser, clientVersion, engineVersion, generator, }: TSClientOptions) => string;
2
+ export declare const commonCodeJS: ({ runtimeBase, runtimeName, browser, clientVersion, engineVersion, generator, }: TSClientOptions) => string;
3
3
  export declare const notSupportOnBrowser: (fnc: string, browser?: boolean) => string;
4
- export declare const commonCodeTS: ({ runtimeBase, runtimeNameTs, clientVersion, engineVersion, generator, }: TSClientOptions) => {
4
+ export declare const commonCodeTS: ({ runtimeBase, runtimeName, clientVersion, engineVersion, generator, }: TSClientOptions) => {
5
5
  tsWithoutNamespace: () => string;
6
6
  ts: () => string;
7
7
  };
package/dist/index.js CHANGED
@@ -4540,10 +4540,10 @@ function buildDebugInitialization(edge) {
4540
4540
 
4541
4541
  // src/utils/buildDMMF.ts
4542
4542
  var import_client_common12 = require("@prisma/client-common");
4543
- function buildRuntimeDataModel(datamodel, runtimeNameJs) {
4543
+ function buildRuntimeDataModel(datamodel, runtimeName) {
4544
4544
  const runtimeDataModel = (0, import_client_common12.dmmfToRuntimeDataModel)(datamodel);
4545
4545
  let prunedDataModel;
4546
- if (runtimeNameJs === "wasm-compiler-edge" || runtimeNameJs === "client") {
4546
+ if (runtimeName === "wasm-compiler-edge" || runtimeName === "client") {
4547
4547
  prunedDataModel = (0, import_client_common12.pruneRuntimeDataModel)(runtimeDataModel);
4548
4548
  } else {
4549
4549
  prunedDataModel = runtimeDataModel;
@@ -4555,8 +4555,8 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
4555
4555
  }
4556
4556
 
4557
4557
  // src/utils/buildGetQueryCompilerWasmModule.ts
4558
- function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
4559
- if (runtimeNameJs === "client" && !forceEdgeWasmLoader) {
4558
+ function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeName) {
4559
+ if (runtimeName === "client" && !forceEdgeWasmLoader) {
4560
4560
  return `config.compilerWasm = {
4561
4561
  getRuntime: async () => require('./query_compiler_bg.js'),
4562
4562
  getQueryCompilerWasmModule: async () => {
@@ -4568,7 +4568,7 @@ function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
4568
4568
  }
4569
4569
  }`;
4570
4570
  }
4571
- if (runtimeNameJs === "client" && forceEdgeWasmLoader || runtimeNameJs === "wasm-compiler-edge") {
4571
+ if (runtimeName === "client" && forceEdgeWasmLoader || runtimeName === "wasm-compiler-edge") {
4572
4572
  return `config.compilerWasm = {
4573
4573
  getRuntime: async () => require('./query_compiler_bg.js'),
4574
4574
  getQueryCompilerWasmModule: async () => {
@@ -4592,7 +4592,7 @@ function buildRequirePath(edge) {
4592
4592
  var import_indent_string4 = __toESM(require("indent-string"));
4593
4593
  var commonCodeJS = ({
4594
4594
  runtimeBase,
4595
- runtimeNameJs,
4595
+ runtimeName,
4596
4596
  browser,
4597
4597
  clientVersion,
4598
4598
  engineVersion,
@@ -4610,7 +4610,7 @@ const {
4610
4610
  Public,
4611
4611
  getRuntime,
4612
4612
  skip
4613
- } = require('${runtimeBase}/${runtimeNameJs}.js')
4613
+ } = require('${runtimeBase}/${runtimeName}.js')
4614
4614
  ` : `
4615
4615
  const {
4616
4616
  PrismaClientKnownRequestError,
@@ -4637,7 +4637,7 @@ const {
4637
4637
  Public,
4638
4638
  getRuntime,
4639
4639
  createParam,
4640
- } = require('${runtimeBase}/${runtimeNameJs}.js')
4640
+ } = require('${runtimeBase}/${runtimeName}.js')
4641
4641
  `}
4642
4642
 
4643
4643
  const Prisma = {}
@@ -4699,12 +4699,12 @@ In case this error is unexpected for you, please report it in https://pris.ly/pr
4699
4699
  };
4700
4700
  var commonCodeTS = ({
4701
4701
  runtimeBase,
4702
- runtimeNameTs,
4702
+ runtimeName,
4703
4703
  clientVersion,
4704
4704
  engineVersion,
4705
4705
  generator
4706
4706
  }) => ({
4707
- tsWithoutNamespace: () => `import * as runtime from '${runtimeBase}/${runtimeNameTs}';
4707
+ tsWithoutNamespace: () => `import * as runtime from '${runtimeBase}/${runtimeName}.js';
4708
4708
  import $Types = runtime.Types // general types
4709
4709
  import $Public = runtime.Types.Public
4710
4710
  import $Utils = runtime.Types.Utils
@@ -5522,19 +5522,12 @@ function runCommandRawDefinition(context) {
5522
5522
  `);
5523
5523
  return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
5524
5524
  }
5525
- function eventRegistrationMethodDeclaration(runtimeNameTs) {
5526
- if (runtimeNameTs === "binary.js") {
5527
- 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;`;
5528
- } else {
5529
- return `$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;`;
5530
- }
5531
- }
5532
5525
  var PrismaClientClass = class {
5533
- constructor(context, internalDatasources, outputDir, runtimeNameTs, browser) {
5526
+ constructor(context, internalDatasources, outputDir, runtimeName, browser) {
5534
5527
  this.context = context;
5535
5528
  this.internalDatasources = internalDatasources;
5536
5529
  this.outputDir = outputDir;
5537
- this.runtimeNameTs = runtimeNameTs;
5530
+ this.runtimeName = runtimeName;
5538
5531
  this.browser = browser;
5539
5532
  }
5540
5533
  get jsDoc() {
@@ -5576,7 +5569,7 @@ export class PrismaClient<
5576
5569
  ${(0, import_indent_string6.default)(this.jsDoc, TAB_SIZE)}
5577
5570
 
5578
5571
  constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
5579
- ${eventRegistrationMethodDeclaration(this.runtimeNameTs)}
5572
+ $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
5580
5573
 
5581
5574
  /**
5582
5575
  * Connect with the database
@@ -5732,8 +5725,10 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
5732
5725
  timeout ?= 5000
5733
5726
  `)
5734
5727
  );
5735
- if (["client.js", "wasm-compiler-edge.js"].includes(this.runtimeNameTs) && // We don't support a custom adapter with MongoDB for now.
5736
- this.internalDatasources.some((d) => d.provider !== "mongodb")) {
5728
+ if (
5729
+ // We don't support a custom adapter with MongoDB for now.
5730
+ this.internalDatasources.some((d) => d.provider !== "mongodb")
5731
+ ) {
5737
5732
  clientOptions.add(
5738
5733
  ts11.property("adapter", ts11.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
5739
5734
  ts11.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
@@ -5777,7 +5772,7 @@ var TSClient = class {
5777
5772
  dmmf;
5778
5773
  genericsInfo;
5779
5774
  toJS() {
5780
- const { edge, wasm, generator, datamodel: inlineSchema, runtimeNameJs, reusedJs } = this.options;
5775
+ const { edge, wasm, generator, datamodel: inlineSchema, runtimeName, reusedJs } = this.options;
5781
5776
  if (reusedJs) {
5782
5777
  return `module.exports = { ...require('${reusedJs}') }`;
5783
5778
  }
@@ -5811,8 +5806,8 @@ ${new Enum(
5811
5806
  * Create the Client
5812
5807
  */
5813
5808
  const config = ${JSON.stringify(config, null, 2)}
5814
- ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
5815
- ${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
5809
+ ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeName)}
5810
+ ${buildQueryCompilerWasmModule(wasm, runtimeName)}
5816
5811
  ${buildDebugInitialization(edge)}
5817
5812
  const PrismaClient = getPrismaClient(config)
5818
5813
  exports.PrismaClient = PrismaClient
@@ -5835,7 +5830,7 @@ Object.assign(exports, Prisma)
5835
5830
  context,
5836
5831
  this.options.datasources,
5837
5832
  this.options.outputDir,
5838
- this.options.runtimeNameTs,
5833
+ this.options.runtimeName,
5839
5834
  this.options.browser
5840
5835
  );
5841
5836
  const commonCode = commonCodeTS(this.options);
@@ -5969,7 +5964,7 @@ export const dmmf: runtime.BaseDMMF
5969
5964
  toBrowserJS() {
5970
5965
  const code = `${commonCodeJS({
5971
5966
  ...this.options,
5972
- runtimeNameJs: "index-browser",
5967
+ runtimeName: "index-browser",
5973
5968
  browser: true
5974
5969
  })}
5975
5970
  /**
@@ -6364,8 +6359,7 @@ async function buildClient({
6364
6359
  };
6365
6360
  const nodeClientOptions = {
6366
6361
  ...baseClientOptions,
6367
- runtimeNameJs: "client",
6368
- runtimeNameTs: "client.js"
6362
+ runtimeName: "client"
6369
6363
  };
6370
6364
  const nodeClient = new TSClient(nodeClientOptions);
6371
6365
  const defaultClient = new TSClient({
@@ -6451,8 +6445,7 @@ async function buildClient({
6451
6445
  };
6452
6446
  const wasmClient = new TSClient({
6453
6447
  ...baseClientOptions,
6454
- runtimeNameJs: "wasm-compiler-edge",
6455
- runtimeNameTs: "library.js",
6448
+ runtimeName: "wasm-compiler-edge",
6456
6449
  reusedTs: "default",
6457
6450
  edge: true,
6458
6451
  wasm: true
@@ -6793,7 +6786,7 @@ var import_engines_version = require("@prisma/engines-version");
6793
6786
  var import_internals9 = require("@prisma/internals");
6794
6787
 
6795
6788
  // package.json
6796
- var version = "6.20.0-integration-next.14";
6789
+ var version = "6.20.0-integration-next.16";
6797
6790
 
6798
6791
  // src/resolvePrismaClient.ts
6799
6792
  var import_promises2 = __toESM(require("node:fs/promises"));
@@ -6897,8 +6890,7 @@ function dmmfToTypes(dmmf) {
6897
6890
  clientVersion: "",
6898
6891
  engineVersion: "",
6899
6892
  runtimeBase: "@prisma/client",
6900
- runtimeNameJs: "library",
6901
- runtimeNameTs: "library",
6893
+ runtimeName: "client",
6902
6894
  runtimeSourcePath: import_node_path3.default.join(__dirname, "../../../runtime"),
6903
6895
  schemaPath: "",
6904
6896
  outputDir: "",
package/dist/index.mjs CHANGED
@@ -4532,10 +4532,10 @@ import {
4532
4532
  dmmfToRuntimeDataModel,
4533
4533
  pruneRuntimeDataModel
4534
4534
  } from "@prisma/client-common";
4535
- function buildRuntimeDataModel(datamodel, runtimeNameJs) {
4535
+ function buildRuntimeDataModel(datamodel, runtimeName) {
4536
4536
  const runtimeDataModel = dmmfToRuntimeDataModel(datamodel);
4537
4537
  let prunedDataModel;
4538
- if (runtimeNameJs === "wasm-compiler-edge" || runtimeNameJs === "client") {
4538
+ if (runtimeName === "wasm-compiler-edge" || runtimeName === "client") {
4539
4539
  prunedDataModel = pruneRuntimeDataModel(runtimeDataModel);
4540
4540
  } else {
4541
4541
  prunedDataModel = runtimeDataModel;
@@ -4547,8 +4547,8 @@ defineDmmfProperty(exports.Prisma, config.runtimeDataModel)`;
4547
4547
  }
4548
4548
 
4549
4549
  // src/utils/buildGetQueryCompilerWasmModule.ts
4550
- function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
4551
- if (runtimeNameJs === "client" && !forceEdgeWasmLoader) {
4550
+ function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeName) {
4551
+ if (runtimeName === "client" && !forceEdgeWasmLoader) {
4552
4552
  return `config.compilerWasm = {
4553
4553
  getRuntime: async () => require('./query_compiler_bg.js'),
4554
4554
  getQueryCompilerWasmModule: async () => {
@@ -4560,7 +4560,7 @@ function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
4560
4560
  }
4561
4561
  }`;
4562
4562
  }
4563
- if (runtimeNameJs === "client" && forceEdgeWasmLoader || runtimeNameJs === "wasm-compiler-edge") {
4563
+ if (runtimeName === "client" && forceEdgeWasmLoader || runtimeName === "wasm-compiler-edge") {
4564
4564
  return `config.compilerWasm = {
4565
4565
  getRuntime: async () => require('./query_compiler_bg.js'),
4566
4566
  getQueryCompilerWasmModule: async () => {
@@ -4584,7 +4584,7 @@ function buildRequirePath(edge) {
4584
4584
  import indent4 from "indent-string";
4585
4585
  var commonCodeJS = ({
4586
4586
  runtimeBase,
4587
- runtimeNameJs,
4587
+ runtimeName,
4588
4588
  browser,
4589
4589
  clientVersion,
4590
4590
  engineVersion,
@@ -4602,7 +4602,7 @@ const {
4602
4602
  Public,
4603
4603
  getRuntime,
4604
4604
  skip
4605
- } = require('${runtimeBase}/${runtimeNameJs}.js')
4605
+ } = require('${runtimeBase}/${runtimeName}.js')
4606
4606
  ` : `
4607
4607
  const {
4608
4608
  PrismaClientKnownRequestError,
@@ -4629,7 +4629,7 @@ const {
4629
4629
  Public,
4630
4630
  getRuntime,
4631
4631
  createParam,
4632
- } = require('${runtimeBase}/${runtimeNameJs}.js')
4632
+ } = require('${runtimeBase}/${runtimeName}.js')
4633
4633
  `}
4634
4634
 
4635
4635
  const Prisma = {}
@@ -4691,12 +4691,12 @@ In case this error is unexpected for you, please report it in https://pris.ly/pr
4691
4691
  };
4692
4692
  var commonCodeTS = ({
4693
4693
  runtimeBase,
4694
- runtimeNameTs,
4694
+ runtimeName,
4695
4695
  clientVersion,
4696
4696
  engineVersion,
4697
4697
  generator
4698
4698
  }) => ({
4699
- tsWithoutNamespace: () => `import * as runtime from '${runtimeBase}/${runtimeNameTs}';
4699
+ tsWithoutNamespace: () => `import * as runtime from '${runtimeBase}/${runtimeName}.js';
4700
4700
  import $Types = runtime.Types // general types
4701
4701
  import $Public = runtime.Types.Public
4702
4702
  import $Utils = runtime.Types.Utils
@@ -5514,19 +5514,12 @@ function runCommandRawDefinition(context) {
5514
5514
  `);
5515
5515
  return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
5516
5516
  }
5517
- function eventRegistrationMethodDeclaration(runtimeNameTs) {
5518
- if (runtimeNameTs === "binary.js") {
5519
- 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;`;
5520
- } else {
5521
- return `$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;`;
5522
- }
5523
- }
5524
5517
  var PrismaClientClass = class {
5525
- constructor(context, internalDatasources, outputDir, runtimeNameTs, browser) {
5518
+ constructor(context, internalDatasources, outputDir, runtimeName, browser) {
5526
5519
  this.context = context;
5527
5520
  this.internalDatasources = internalDatasources;
5528
5521
  this.outputDir = outputDir;
5529
- this.runtimeNameTs = runtimeNameTs;
5522
+ this.runtimeName = runtimeName;
5530
5523
  this.browser = browser;
5531
5524
  }
5532
5525
  get jsDoc() {
@@ -5568,7 +5561,7 @@ export class PrismaClient<
5568
5561
  ${indent6(this.jsDoc, TAB_SIZE)}
5569
5562
 
5570
5563
  constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
5571
- ${eventRegistrationMethodDeclaration(this.runtimeNameTs)}
5564
+ $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
5572
5565
 
5573
5566
  /**
5574
5567
  * Connect with the database
@@ -5724,8 +5717,10 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
5724
5717
  timeout ?= 5000
5725
5718
  `)
5726
5719
  );
5727
- if (["client.js", "wasm-compiler-edge.js"].includes(this.runtimeNameTs) && // We don't support a custom adapter with MongoDB for now.
5728
- this.internalDatasources.some((d) => d.provider !== "mongodb")) {
5720
+ if (
5721
+ // We don't support a custom adapter with MongoDB for now.
5722
+ this.internalDatasources.some((d) => d.provider !== "mongodb")
5723
+ ) {
5729
5724
  clientOptions.add(
5730
5725
  ts11.property("adapter", ts11.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
5731
5726
  ts11.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
@@ -5769,7 +5764,7 @@ var TSClient = class {
5769
5764
  dmmf;
5770
5765
  genericsInfo;
5771
5766
  toJS() {
5772
- const { edge, wasm, generator, datamodel: inlineSchema, runtimeNameJs, reusedJs } = this.options;
5767
+ const { edge, wasm, generator, datamodel: inlineSchema, runtimeName, reusedJs } = this.options;
5773
5768
  if (reusedJs) {
5774
5769
  return `module.exports = { ...require('${reusedJs}') }`;
5775
5770
  }
@@ -5803,8 +5798,8 @@ ${new Enum(
5803
5798
  * Create the Client
5804
5799
  */
5805
5800
  const config = ${JSON.stringify(config, null, 2)}
5806
- ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
5807
- ${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
5801
+ ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeName)}
5802
+ ${buildQueryCompilerWasmModule(wasm, runtimeName)}
5808
5803
  ${buildDebugInitialization(edge)}
5809
5804
  const PrismaClient = getPrismaClient(config)
5810
5805
  exports.PrismaClient = PrismaClient
@@ -5827,7 +5822,7 @@ Object.assign(exports, Prisma)
5827
5822
  context,
5828
5823
  this.options.datasources,
5829
5824
  this.options.outputDir,
5830
- this.options.runtimeNameTs,
5825
+ this.options.runtimeName,
5831
5826
  this.options.browser
5832
5827
  );
5833
5828
  const commonCode = commonCodeTS(this.options);
@@ -5961,7 +5956,7 @@ export const dmmf: runtime.BaseDMMF
5961
5956
  toBrowserJS() {
5962
5957
  const code = `${commonCodeJS({
5963
5958
  ...this.options,
5964
- runtimeNameJs: "index-browser",
5959
+ runtimeName: "index-browser",
5965
5960
  browser: true
5966
5961
  })}
5967
5962
  /**
@@ -6356,8 +6351,7 @@ async function buildClient({
6356
6351
  };
6357
6352
  const nodeClientOptions = {
6358
6353
  ...baseClientOptions,
6359
- runtimeNameJs: "client",
6360
- runtimeNameTs: "client.js"
6354
+ runtimeName: "client"
6361
6355
  };
6362
6356
  const nodeClient = new TSClient(nodeClientOptions);
6363
6357
  const defaultClient = new TSClient({
@@ -6443,8 +6437,7 @@ async function buildClient({
6443
6437
  };
6444
6438
  const wasmClient = new TSClient({
6445
6439
  ...baseClientOptions,
6446
- runtimeNameJs: "wasm-compiler-edge",
6447
- runtimeNameTs: "library.js",
6440
+ runtimeName: "wasm-compiler-edge",
6448
6441
  reusedTs: "default",
6449
6442
  edge: true,
6450
6443
  wasm: true
@@ -6785,7 +6778,7 @@ import { enginesVersion } from "@prisma/engines-version";
6785
6778
  import { parseEnvValue } from "@prisma/internals";
6786
6779
 
6787
6780
  // package.json
6788
- var version = "6.20.0-integration-next.14";
6781
+ var version = "6.20.0-integration-next.16";
6789
6782
 
6790
6783
  // src/resolvePrismaClient.ts
6791
6784
  import fs2 from "node:fs/promises";
@@ -6889,8 +6882,7 @@ function dmmfToTypes(dmmf) {
6889
6882
  clientVersion: "",
6890
6883
  engineVersion: "",
6891
6884
  runtimeBase: "@prisma/client",
6892
- runtimeNameJs: "library",
6893
- runtimeNameTs: "library",
6885
+ runtimeName: "client",
6894
6886
  runtimeSourcePath: path4.join(__dirname, "../../../runtime"),
6895
6887
  schemaPath: "",
6896
6888
  outputDir: "",
@@ -13,4 +13,4 @@ import { TSClientOptions } from '../TSClient/TSClient';
13
13
  * @param datamodel
14
14
  * @returns
15
15
  */
16
- export declare function buildRuntimeDataModel(datamodel: DMMF.Datamodel, runtimeNameJs: TSClientOptions['runtimeNameJs']): string;
16
+ export declare function buildRuntimeDataModel(datamodel: DMMF.Datamodel, runtimeName: TSClientOptions['runtimeName']): string;
@@ -3,4 +3,4 @@ import { TSClientOptions } from '../TSClient/TSClient';
3
3
  * Builds the necessary glue code to load the query compiler wasm module.
4
4
  * @returns
5
5
  */
6
- export declare function buildQueryCompilerWasmModule(forceEdgeWasmLoader: boolean, runtimeNameJs: TSClientOptions['runtimeNameJs']): "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const { Buffer } = require('node:buffer')\n const { wasm } = require('./query_compiler_bg.wasm-base64.js')\n const queryCompilerWasmFileBytes = Buffer.from(wasm, 'base64')\n\n return new WebAssembly.Module(queryCompilerWasmFileBytes)\n }\n }" | "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const loader = (await import('#wasm-compiler-loader')).default\n const compiler = (await loader).default\n return compiler\n }\n}" | "config.compilerWasm = undefined";
6
+ export declare function buildQueryCompilerWasmModule(forceEdgeWasmLoader: boolean, runtimeName: TSClientOptions['runtimeName']): "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const { Buffer } = require('node:buffer')\n const { wasm } = require('./query_compiler_bg.wasm-base64.js')\n const queryCompilerWasmFileBytes = Buffer.from(wasm, 'base64')\n\n return new WebAssembly.Module(queryCompilerWasmFileBytes)\n }\n }" | "config.compilerWasm = {\n getRuntime: async () => require('./query_compiler_bg.js'),\n getQueryCompilerWasmModule: async () => {\n const loader = (await import('#wasm-compiler-loader')).default\n const compiler = (await loader).default\n return compiler\n }\n}" | "config.compilerWasm = undefined";
@@ -1,4 +1,4 @@
1
1
  import * as ts from '@prisma/ts-builders';
2
- type RuntimeExport = keyof typeof import('@prisma/client/runtime/library') & string;
2
+ type RuntimeExport = keyof typeof import('@prisma/client/runtime/client') & string;
3
3
  export declare function runtimeImportedType(name: RuntimeExport): ts.NamedType;
4
4
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-js",
3
- "version": "6.20.0-integration-next.14",
3
+ "version": "6.20.0-integration-next.16",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,14 +32,14 @@
32
32
  "package-up": "5.0.0",
33
33
  "pluralize": "8.0.0",
34
34
  "ts-pattern": "5.6.2",
35
- "@prisma/client-common": "6.20.0-integration-next.14",
36
- "@prisma/debug": "6.20.0-integration-next.14",
37
- "@prisma/fetch-engine": "6.20.0-integration-next.14",
38
- "@prisma/dmmf": "6.20.0-integration-next.14",
39
- "@prisma/get-platform": "6.20.0-integration-next.14",
40
- "@prisma/generator": "6.20.0-integration-next.14",
41
- "@prisma/ts-builders": "6.20.0-integration-next.14",
42
- "@prisma/internals": "6.20.0-integration-next.14"
35
+ "@prisma/client-common": "6.20.0-integration-next.16",
36
+ "@prisma/debug": "6.20.0-integration-next.16",
37
+ "@prisma/dmmf": "6.20.0-integration-next.16",
38
+ "@prisma/generator": "6.20.0-integration-next.16",
39
+ "@prisma/fetch-engine": "6.20.0-integration-next.16",
40
+ "@prisma/internals": "6.20.0-integration-next.16",
41
+ "@prisma/get-platform": "6.20.0-integration-next.16",
42
+ "@prisma/ts-builders": "6.20.0-integration-next.16"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/pluralize": "0.0.33",