prisma 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.
Files changed (39) hide show
  1. package/build/index.js +92 -144
  2. package/build/query_compiler_bg.cockroachdb.js +2 -0
  3. package/build/query_compiler_bg.mysql.js +2 -0
  4. package/build/query_compiler_bg.postgresql.js +2 -0
  5. package/build/query_compiler_bg.sqlite.js +2 -0
  6. package/build/query_compiler_bg.sqlserver.js +2 -0
  7. package/build/query_engine_bg.cockroachdb.js +2 -0
  8. package/build/query_engine_bg.mysql.js +2 -0
  9. package/build/query_engine_bg.postgresql.js +2 -0
  10. package/build/query_engine_bg.sqlite.js +2 -0
  11. package/build/query_engine_bg.sqlserver.js +2 -0
  12. package/package.json +14 -14
  13. package/prisma-client/generator-build/index.js +2 -28
  14. package/prisma-client/package.json +1 -1
  15. package/prisma-client/runtime/binary.js +64 -64
  16. package/prisma-client/runtime/binary.js.map +4 -4
  17. package/prisma-client/runtime/binary.mjs +64 -64
  18. package/prisma-client/runtime/binary.mjs.map +4 -4
  19. package/prisma-client/runtime/client.d.mts +1 -18
  20. package/prisma-client/runtime/client.d.ts +1 -18
  21. package/prisma-client/runtime/client.js +30 -30
  22. package/prisma-client/runtime/client.js.map +4 -4
  23. package/prisma-client/runtime/client.mjs +30 -30
  24. package/prisma-client/runtime/client.mjs.map +4 -4
  25. package/prisma-client/runtime/edge-esm.js +15 -15
  26. package/prisma-client/runtime/edge-esm.js.map +4 -4
  27. package/prisma-client/runtime/edge.d.ts +1 -18
  28. package/prisma-client/runtime/edge.js +15 -15
  29. package/prisma-client/runtime/edge.js.map +4 -4
  30. package/prisma-client/runtime/library.d.mts +1 -18
  31. package/prisma-client/runtime/library.d.ts +1 -18
  32. package/prisma-client/runtime/library.js +42 -42
  33. package/prisma-client/runtime/library.js.map +4 -4
  34. package/prisma-client/runtime/library.mjs +42 -42
  35. package/prisma-client/runtime/library.mjs.map +4 -4
  36. package/prisma-client/runtime/react-native.d.ts +1 -18
  37. package/prisma-client/runtime/react-native.js +26 -26
  38. package/prisma-client/runtime/react-native.js.map +4 -4
  39. package/prisma-client/scripts/default-index.js +1 -1
@@ -709,7 +709,7 @@ export declare function defineDmmfProperty(target: object, runtimeDataModel: Run
709
709
 
710
710
  declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Client)): (client: Client) => Client;
711
711
 
712
- declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
712
+ declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$extends"];
713
713
 
714
714
  declare type Deprecation = ReadonlyDeep_2<{
715
715
  sinceVersion: string;
@@ -1314,7 +1314,6 @@ declare type ExtendedSpanOptions = SpanOptions & {
1314
1314
  /** The name of the span */
1315
1315
  name: string;
1316
1316
  internal?: boolean;
1317
- middleware?: boolean;
1318
1317
  /** Whether it propagates context (?=true) */
1319
1318
  active?: boolean;
1320
1319
  /** The context to append the span to */
@@ -1576,7 +1575,6 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1576
1575
  _clientVersion: string;
1577
1576
  _errorFormat: ErrorFormat;
1578
1577
  _tracingHelper: TracingHelper;
1579
- _middlewares: MiddlewareHandler<QueryMiddleware>;
1580
1578
  _previewFeatures: string[];
1581
1579
  _activeProvider: string;
1582
1580
  _globalOmit?: GlobalOmitOptions | undefined;
@@ -1591,11 +1589,6 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1591
1589
  */
1592
1590
  _appliedParent: any;
1593
1591
  _createPrismaPromise: PrismaPromiseFactory;
1594
- /**
1595
- * Hook a middleware into the client
1596
- * @param middleware to hook
1597
- */
1598
- $use(middleware: QueryMiddleware): void;
1599
1592
  $on<E extends ExtendedEventType>(eventType: E, callback: EventCallback<E>): any;
1600
1593
  $connect(): Promise<void>;
1601
1594
  /**
@@ -2289,14 +2282,6 @@ declare type MiddlewareArgsMapper<RequestArgs, MiddlewareArgs> = {
2289
2282
  middlewareArgsToRequestArgs(middlewareArgs: MiddlewareArgs): RequestArgs;
2290
2283
  };
2291
2284
 
2292
- declare class MiddlewareHandler<M extends Function> {
2293
- private _middlewares;
2294
- use(middleware: M): void;
2295
- get(id: number): M | undefined;
2296
- has(id: number): boolean;
2297
- length(): number;
2298
- }
2299
-
2300
2285
  declare type Model = ReadonlyDeep_2<{
2301
2286
  name: string;
2302
2287
  dbName: string | null;
@@ -2822,8 +2807,6 @@ declare type QueryEventType = 'query';
2822
2807
 
2823
2808
  declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
2824
2809
 
2825
- declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
2826
-
2827
2810
  declare type QueryMiddlewareParams = {
2828
2811
  /** The model this is executed on */
2829
2812
  model?: string;