@prisma/client-generator-js 6.19.0-integration-next.4 → 6.19.0-integration-next.5

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.
@@ -4,7 +4,7 @@ import { DMMFHelper } from '../dmmf';
4
4
  import { GenerateClientOptions } from '../generateClient';
5
5
  import { GenericArgsInfo } from '../GenericsArgsInfo';
6
6
  import { type Generable } from './Generable';
7
- type RuntimeName = 'binary' | 'library' | 'wasm-compiler-edge' | 'edge-esm' | 'index-browser' | 'react-native' | 'client' | (string & {});
7
+ type RuntimeName = 'binary' | 'library' | 'wasm-compiler-edge' | 'index-browser' | 'client' | (string & {});
8
8
  export type TSClientOptions = O.Required<GenerateClientOptions, 'runtimeBase'> & {
9
9
  /** More granular way to define JS runtime name */
10
10
  runtimeNameJs: RuntimeName;
package/dist/index.js CHANGED
@@ -2855,8 +2855,7 @@ var package_default = {
2855
2855
  "MSSQL",
2856
2856
  "SQL Server",
2857
2857
  "SQLServer",
2858
- "MongoDB",
2859
- "react-native"
2858
+ "MongoDB"
2860
2859
  ],
2861
2860
  main: "default.js",
2862
2861
  types: "default.d.ts",
@@ -2882,12 +2881,6 @@ var package_default = {
2882
2881
  },
2883
2882
  default: "./default.js"
2884
2883
  },
2885
- "./react-native": {
2886
- types: "./react-native.d.ts",
2887
- require: "./react-native.js",
2888
- import: "./react-native.js",
2889
- default: "./react-native.js"
2890
- },
2891
2884
  "./extension": {
2892
2885
  types: "./extension.d.ts",
2893
2886
  require: "./extension.js",
@@ -2940,12 +2933,6 @@ var package_default = {
2940
2933
  import: "./runtime/wasm-compiler-edge.mjs",
2941
2934
  default: "./runtime/wasm-compiler-edge.mjs"
2942
2935
  },
2943
- "./runtime/react-native": {
2944
- types: "./runtime/react-native.d.ts",
2945
- require: "./runtime/react-native.js",
2946
- import: "./runtime/react-native.js",
2947
- default: "./runtime/react-native.js"
2948
- },
2949
2936
  "./runtime/index-browser": {
2950
2937
  types: "./runtime/index-browser.d.ts",
2951
2938
  require: "./runtime/index-browser.js",
@@ -3009,8 +2996,6 @@ var package_default = {
3009
2996
  "wasm.d.ts",
3010
2997
  "index.js",
3011
2998
  "index.d.ts",
3012
- "react-native.js",
3013
- "react-native.d.ts",
3014
2999
  "default.js",
3015
3000
  "default.d.ts",
3016
3001
  "index-browser.js",
@@ -6290,15 +6275,6 @@ function runCommandRawDefinition(context) {
6290
6275
  `);
6291
6276
  return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
6292
6277
  }
6293
- function applyPendingMigrationsDefinition() {
6294
- if (this.runtimeNameTs !== "react-native") {
6295
- return null;
6296
- }
6297
- const method3 = ts11.method("$applyPendingMigrations").setReturnType(promise(ts11.voidType)).setDocComment(
6298
- ts11.docComment`Tries to apply pending migrations one by one. If a migration fails to apply, the function will stop and throw an error. You are responsible for informing the user and possibly blocking the app as we cannot guarantee the state of the database.`
6299
- );
6300
- return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
6301
- }
6302
6278
  function eventRegistrationMethodDeclaration(runtimeNameTs) {
6303
6279
  if (runtimeNameTs === "binary.js") {
6304
6280
  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;`;
@@ -6373,7 +6349,6 @@ ${[
6373
6349
  interactiveTransactionDefinition(this.context),
6374
6350
  runCommandRawDefinition(this.context),
6375
6351
  metricDefinition(this.context),
6376
- applyPendingMigrationsDefinition.bind(this)(),
6377
6352
  extendsPropertyDefinition()
6378
6353
  ].filter((d) => d !== null).join("\n").trim()}
6379
6354
 
@@ -7190,12 +7165,6 @@ async function buildClient({
7190
7165
  reusedTs: "index",
7191
7166
  reusedJs: "."
7192
7167
  });
7193
- const rnTsClient = new TSClient({
7194
- ...baseClientOptions,
7195
- runtimeNameJs: "react-native",
7196
- runtimeNameTs: "react-native",
7197
- edge: true
7198
- });
7199
7168
  const trampolineTsClient = new TSClient({
7200
7169
  ...nodeClientOptions,
7201
7170
  reusedTs: "index",
@@ -7242,10 +7211,6 @@ async function buildClient({
7242
7211
  fileMap["index-browser.js"] = BrowserJS(nodeClient);
7243
7212
  fileMap["client.js"] = JS(defaultClient);
7244
7213
  fileMap["client.d.ts"] = TS(defaultClient);
7245
- if (generator.previewFeatures.includes("reactNative")) {
7246
- fileMap["react-native.js"] = JS(rnTsClient);
7247
- fileMap["react-native.d.ts"] = TS(rnTsClient);
7248
- }
7249
7214
  fileMap["default.js"] = JS(trampolineTsClient);
7250
7215
  fileMap["default.d.ts"] = TS(trampolineTsClient);
7251
7216
  fileMap["wasm-worker-loader.mjs"] = `export default import('./query_compiler_bg.wasm')`;
@@ -7642,7 +7607,6 @@ async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
7642
7607
  "library.d.ts",
7643
7608
  "index-browser.js",
7644
7609
  "index-browser.d.ts",
7645
- "react-native.js",
7646
7610
  "wasm-compiler-edge.js"
7647
7611
  ];
7648
7612
  files.push(`${runtimeName}.js`);
@@ -7692,7 +7656,7 @@ var import_internals12 = require("@prisma/internals");
7692
7656
  var import_ts_pattern = require("ts-pattern");
7693
7657
 
7694
7658
  // package.json
7695
- var version = "6.19.0-integration-next.4";
7659
+ var version = "6.19.0-integration-next.5";
7696
7660
 
7697
7661
  // src/resolvePrismaClient.ts
7698
7662
  var import_promises3 = __toESM(require("node:fs/promises"));
package/dist/index.mjs CHANGED
@@ -2850,8 +2850,7 @@ var package_default = {
2850
2850
  "MSSQL",
2851
2851
  "SQL Server",
2852
2852
  "SQLServer",
2853
- "MongoDB",
2854
- "react-native"
2853
+ "MongoDB"
2855
2854
  ],
2856
2855
  main: "default.js",
2857
2856
  types: "default.d.ts",
@@ -2877,12 +2876,6 @@ var package_default = {
2877
2876
  },
2878
2877
  default: "./default.js"
2879
2878
  },
2880
- "./react-native": {
2881
- types: "./react-native.d.ts",
2882
- require: "./react-native.js",
2883
- import: "./react-native.js",
2884
- default: "./react-native.js"
2885
- },
2886
2879
  "./extension": {
2887
2880
  types: "./extension.d.ts",
2888
2881
  require: "./extension.js",
@@ -2935,12 +2928,6 @@ var package_default = {
2935
2928
  import: "./runtime/wasm-compiler-edge.mjs",
2936
2929
  default: "./runtime/wasm-compiler-edge.mjs"
2937
2930
  },
2938
- "./runtime/react-native": {
2939
- types: "./runtime/react-native.d.ts",
2940
- require: "./runtime/react-native.js",
2941
- import: "./runtime/react-native.js",
2942
- default: "./runtime/react-native.js"
2943
- },
2944
2931
  "./runtime/index-browser": {
2945
2932
  types: "./runtime/index-browser.d.ts",
2946
2933
  require: "./runtime/index-browser.js",
@@ -3004,8 +2991,6 @@ var package_default = {
3004
2991
  "wasm.d.ts",
3005
2992
  "index.js",
3006
2993
  "index.d.ts",
3007
- "react-native.js",
3008
- "react-native.d.ts",
3009
2994
  "default.js",
3010
2995
  "default.d.ts",
3011
2996
  "index-browser.js",
@@ -6288,15 +6273,6 @@ function runCommandRawDefinition(context) {
6288
6273
  `);
6289
6274
  return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
6290
6275
  }
6291
- function applyPendingMigrationsDefinition() {
6292
- if (this.runtimeNameTs !== "react-native") {
6293
- return null;
6294
- }
6295
- const method3 = ts11.method("$applyPendingMigrations").setReturnType(promise(ts11.voidType)).setDocComment(
6296
- ts11.docComment`Tries to apply pending migrations one by one. If a migration fails to apply, the function will stop and throw an error. You are responsible for informing the user and possibly blocking the app as we cannot guarantee the state of the database.`
6297
- );
6298
- return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
6299
- }
6300
6276
  function eventRegistrationMethodDeclaration(runtimeNameTs) {
6301
6277
  if (runtimeNameTs === "binary.js") {
6302
6278
  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;`;
@@ -6371,7 +6347,6 @@ ${[
6371
6347
  interactiveTransactionDefinition(this.context),
6372
6348
  runCommandRawDefinition(this.context),
6373
6349
  metricDefinition(this.context),
6374
- applyPendingMigrationsDefinition.bind(this)(),
6375
6350
  extendsPropertyDefinition()
6376
6351
  ].filter((d) => d !== null).join("\n").trim()}
6377
6352
 
@@ -7188,12 +7163,6 @@ async function buildClient({
7188
7163
  reusedTs: "index",
7189
7164
  reusedJs: "."
7190
7165
  });
7191
- const rnTsClient = new TSClient({
7192
- ...baseClientOptions,
7193
- runtimeNameJs: "react-native",
7194
- runtimeNameTs: "react-native",
7195
- edge: true
7196
- });
7197
7166
  const trampolineTsClient = new TSClient({
7198
7167
  ...nodeClientOptions,
7199
7168
  reusedTs: "index",
@@ -7240,10 +7209,6 @@ async function buildClient({
7240
7209
  fileMap["index-browser.js"] = BrowserJS(nodeClient);
7241
7210
  fileMap["client.js"] = JS(defaultClient);
7242
7211
  fileMap["client.d.ts"] = TS(defaultClient);
7243
- if (generator.previewFeatures.includes("reactNative")) {
7244
- fileMap["react-native.js"] = JS(rnTsClient);
7245
- fileMap["react-native.d.ts"] = TS(rnTsClient);
7246
- }
7247
7212
  fileMap["default.js"] = JS(trampolineTsClient);
7248
7213
  fileMap["default.d.ts"] = TS(trampolineTsClient);
7249
7214
  fileMap["wasm-worker-loader.mjs"] = `export default import('./query_compiler_bg.wasm')`;
@@ -7640,7 +7605,6 @@ async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
7640
7605
  "library.d.ts",
7641
7606
  "index-browser.js",
7642
7607
  "index-browser.d.ts",
7643
- "react-native.js",
7644
7608
  "wasm-compiler-edge.js"
7645
7609
  ];
7646
7610
  files.push(`${runtimeName}.js`);
@@ -7690,7 +7654,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
7690
7654
  import { match } from "ts-pattern";
7691
7655
 
7692
7656
  // package.json
7693
- var version = "6.19.0-integration-next.4";
7657
+ var version = "6.19.0-integration-next.5";
7694
7658
 
7695
7659
  // src/resolvePrismaClient.ts
7696
7660
  import fs2 from "node:fs/promises";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-js",
3
- "version": "6.19.0-integration-next.4",
3
+ "version": "6.19.0-integration-next.5",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,14 +33,14 @@
33
33
  "package-up": "5.0.0",
34
34
  "pluralize": "8.0.0",
35
35
  "ts-pattern": "5.6.2",
36
- "@prisma/client-common": "6.19.0-integration-next.4",
37
- "@prisma/debug": "6.19.0-integration-next.4",
38
- "@prisma/fetch-engine": "6.19.0-integration-next.4",
39
- "@prisma/dmmf": "6.19.0-integration-next.4",
40
- "@prisma/generator": "6.19.0-integration-next.4",
41
- "@prisma/get-platform": "6.19.0-integration-next.4",
42
- "@prisma/ts-builders": "6.19.0-integration-next.4",
43
- "@prisma/internals": "6.19.0-integration-next.4"
36
+ "@prisma/client-common": "6.19.0-integration-next.5",
37
+ "@prisma/dmmf": "6.19.0-integration-next.5",
38
+ "@prisma/fetch-engine": "6.19.0-integration-next.5",
39
+ "@prisma/debug": "6.19.0-integration-next.5",
40
+ "@prisma/generator": "6.19.0-integration-next.5",
41
+ "@prisma/internals": "6.19.0-integration-next.5",
42
+ "@prisma/get-platform": "6.19.0-integration-next.5",
43
+ "@prisma/ts-builders": "6.19.0-integration-next.5"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/pluralize": "0.0.33",