@prisma/client-generator-ts 6.14.0-dev.13 → 6.14.0-dev.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.
package/dist/index.js CHANGED
@@ -3465,6 +3465,7 @@ function buildGetWasmModule({
3465
3465
  moduleFormat
3466
3466
  }) {
3467
3467
  const capitalizedComponent = (0, import_client_common11.capitalize)(component);
3468
+ const extension = (0, import_ts_pattern.match)(moduleFormat).with("esm", () => "mjs").with("cjs", () => "js").exhaustive();
3468
3469
  const buildNonEdgeLoader = (0, import_ts_pattern.match)(runtimeName).with("library", () => component === "engine" && !!process.env.PRISMA_CLIENT_FORCE_WASM).with("client", () => component === "compiler").otherwise(() => false);
3469
3470
  const buildNodeJsLoader = (0, import_ts_pattern.match)({ runtimeName, target }).with({ target: "nodejs" }, () => buildNonEdgeLoader).otherwise(() => false);
3470
3471
  const buildEdgeLoader = usesEdgeWasmRuntime(component, runtimeName);
@@ -3481,7 +3482,7 @@ function buildGetWasmModule({
3481
3482
  wasmModulePath = `${wasmPathBase}.wasm`;
3482
3483
  }
3483
3484
  if (buildNodeJsLoader) {
3484
- const extension = (0, import_ts_pattern.match)(moduleFormat).with("esm", () => "mjs").with("cjs", () => "cjs").exhaustive();
3485
+ wasmBindingsPath = `${wasmPathBase}.${extension}`;
3485
3486
  wasmModulePath = `${wasmPathBase}.wasm-base64.${extension}`;
3486
3487
  return `
3487
3488
  async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
@@ -3834,13 +3835,6 @@ export interface PrismaClient<
3834
3835
  */
3835
3836
  $disconnect(): runtime.Types.Utils.JsPromise<void>;
3836
3837
 
3837
- /**
3838
- * Add a middleware
3839
- * @deprecated since 4.16.0. For new code, prefer client extensions instead.
3840
- * @see https://pris.ly/d/extensions
3841
- */
3842
- $use(cb: Prisma.Middleware): void
3843
-
3844
3838
  ${[
3845
3839
  executeRawDefinition(this.context),
3846
3840
  queryRawDefinition(this.context),
@@ -5841,25 +5835,6 @@ export type PrismaAction =
5841
5835
  | 'findRaw'
5842
5836
  | 'groupBy'
5843
5837
 
5844
- /**
5845
- * These options are being passed into the middleware as "params"
5846
- */
5847
- export type MiddlewareParams = {
5848
- model?: ModelName
5849
- action: PrismaAction
5850
- args: any
5851
- dataPath: string[]
5852
- runInTransaction: boolean
5853
- }
5854
-
5855
- /**
5856
- * The \`T\` type makes sure, that the \`return proceed\` is not forgotten in the middleware implementation
5857
- */
5858
- export type Middleware<T = any> = (
5859
- params: MiddlewareParams,
5860
- next: (params: MiddlewareParams) => runtime.Types.Utils.JsPromise<T>,
5861
- ) => runtime.Types.Utils.JsPromise<T>
5862
-
5863
5838
  /**
5864
5839
  * \`PrismaClient\` proxy available in interactive transactions.
5865
5840
  */
@@ -6618,7 +6593,7 @@ var import_get_tsconfig = require("get-tsconfig");
6618
6593
  var import_ts_pattern2 = require("ts-pattern");
6619
6594
 
6620
6595
  // package.json
6621
- var version = "6.14.0-dev.13";
6596
+ var version = "6.14.0-dev.15";
6622
6597
 
6623
6598
  // src/module-format.ts
6624
6599
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -3464,6 +3464,7 @@ function buildGetWasmModule({
3464
3464
  moduleFormat
3465
3465
  }) {
3466
3466
  const capitalizedComponent = capitalize6(component);
3467
+ const extension = match(moduleFormat).with("esm", () => "mjs").with("cjs", () => "js").exhaustive();
3467
3468
  const buildNonEdgeLoader = match(runtimeName).with("library", () => component === "engine" && !!process.env.PRISMA_CLIENT_FORCE_WASM).with("client", () => component === "compiler").otherwise(() => false);
3468
3469
  const buildNodeJsLoader = match({ runtimeName, target }).with({ target: "nodejs" }, () => buildNonEdgeLoader).otherwise(() => false);
3469
3470
  const buildEdgeLoader = usesEdgeWasmRuntime(component, runtimeName);
@@ -3480,7 +3481,7 @@ function buildGetWasmModule({
3480
3481
  wasmModulePath = `${wasmPathBase}.wasm`;
3481
3482
  }
3482
3483
  if (buildNodeJsLoader) {
3483
- const extension = match(moduleFormat).with("esm", () => "mjs").with("cjs", () => "cjs").exhaustive();
3484
+ wasmBindingsPath = `${wasmPathBase}.${extension}`;
3484
3485
  wasmModulePath = `${wasmPathBase}.wasm-base64.${extension}`;
3485
3486
  return `
3486
3487
  async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
@@ -3833,13 +3834,6 @@ export interface PrismaClient<
3833
3834
  */
3834
3835
  $disconnect(): runtime.Types.Utils.JsPromise<void>;
3835
3836
 
3836
- /**
3837
- * Add a middleware
3838
- * @deprecated since 4.16.0. For new code, prefer client extensions instead.
3839
- * @see https://pris.ly/d/extensions
3840
- */
3841
- $use(cb: Prisma.Middleware): void
3842
-
3843
3837
  ${[
3844
3838
  executeRawDefinition(this.context),
3845
3839
  queryRawDefinition(this.context),
@@ -5840,25 +5834,6 @@ export type PrismaAction =
5840
5834
  | 'findRaw'
5841
5835
  | 'groupBy'
5842
5836
 
5843
- /**
5844
- * These options are being passed into the middleware as "params"
5845
- */
5846
- export type MiddlewareParams = {
5847
- model?: ModelName
5848
- action: PrismaAction
5849
- args: any
5850
- dataPath: string[]
5851
- runInTransaction: boolean
5852
- }
5853
-
5854
- /**
5855
- * The \`T\` type makes sure, that the \`return proceed\` is not forgotten in the middleware implementation
5856
- */
5857
- export type Middleware<T = any> = (
5858
- params: MiddlewareParams,
5859
- next: (params: MiddlewareParams) => runtime.Types.Utils.JsPromise<T>,
5860
- ) => runtime.Types.Utils.JsPromise<T>
5861
-
5862
5837
  /**
5863
5838
  * \`PrismaClient\` proxy available in interactive transactions.
5864
5839
  */
@@ -6617,7 +6592,7 @@ import { getTsconfig } from "get-tsconfig";
6617
6592
  import { match as match2 } from "ts-pattern";
6618
6593
 
6619
6594
  // package.json
6620
- var version = "6.14.0-dev.13";
6595
+ var version = "6.14.0-dev.15";
6621
6596
 
6622
6597
  // src/module-format.ts
6623
6598
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "6.14.0-dev.13",
3
+ "version": "6.14.0-dev.15",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,14 +34,14 @@
34
34
  "pkg-up": "3.1.0",
35
35
  "pluralize": "8.0.0",
36
36
  "ts-pattern": "5.6.2",
37
- "@prisma/client-common": "6.14.0-dev.13",
38
- "@prisma/debug": "6.14.0-dev.13",
39
- "@prisma/dmmf": "6.14.0-dev.13",
40
- "@prisma/generator": "6.14.0-dev.13",
41
- "@prisma/fetch-engine": "6.14.0-dev.13",
42
- "@prisma/get-platform": "6.14.0-dev.13",
43
- "@prisma/ts-builders": "6.14.0-dev.13",
44
- "@prisma/internals": "6.14.0-dev.13"
37
+ "@prisma/client-common": "6.14.0-dev.15",
38
+ "@prisma/debug": "6.14.0-dev.15",
39
+ "@prisma/dmmf": "6.14.0-dev.15",
40
+ "@prisma/fetch-engine": "6.14.0-dev.15",
41
+ "@prisma/get-platform": "6.14.0-dev.15",
42
+ "@prisma/generator": "6.14.0-dev.15",
43
+ "@prisma/internals": "6.14.0-dev.15",
44
+ "@prisma/ts-builders": "6.14.0-dev.15"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",