From 32bd698f03cd7db536f29257310c1e69acb2ccf8 Mon Sep 17 00:00:00 2001 From: dennemark Date: Fri, 9 Aug 2024 09:20:47 +0200 Subject: [PATCH] Release 0.5.4 --- CHANGELOG.md | 7 +++++++ dist/index.d.mts | 16 +++------------- dist/index.d.ts | 16 +++------------- package.json | 2 +- 4 files changed, 14 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a13882f..30b1640 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ +## [0.5.4](https://github.com/dennemark/prisma-extension-casl/compare/0.5.3...0.5.4) (2024-08-09) + + +### Bug Fixes + +* :bug: use prisma version 5.14.0 ([16f783f](https://github.com/dennemark/prisma-extension-casl/commit/16f783f35259014d210c7f45a54b130384e570c3)) + ## [0.5.3](https://github.com/dennemark/prisma-extension-casl/compare/0.5.2...0.5.3) (2024-08-09) diff --git a/dist/index.d.mts b/dist/index.d.mts index b6bd698..e5daccb 100644 --- a/dist/index.d.mts +++ b/dist/index.d.mts @@ -1,7 +1,8 @@ +import * as _prisma_client_runtime_library from '@prisma/client/runtime/library'; +import { DynamicClientExtensionThis, InternalArgs } from '@prisma/client/runtime/library'; import { PureAbility, AbilityTuple, AbilityBuilder } from '@casl/ability'; import { PrismaQuery } from '@casl/prisma'; import { Prisma } from '@prisma/client'; -import { DynamicClientExtensionThis, InternalArgs } from '@prisma/client/runtime/library'; type PrismaCaslOperation = 'create' | 'createMany' | 'createManyAndReturn' | 'upsert' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'findUnique' | 'findUniqueOrThrow' | 'aggregate' | 'count' | 'groupBy' | 'update' | 'updateMany' | 'delete' | 'deleteMany'; @@ -22,17 +23,6 @@ declare function applyCaslToQuery(operation: PrismaCaslOperation, args: any, abi mask: undefined; }; -type CaslExtensionType = DynamicClientExtensionThis, Prisma.TypeMapCb, { - result: {}; - model: {}; - query: {}; - client: {}; -}, {}>; /** * enrich a prisma client to check for CASL abilities even in nested queries * @@ -52,7 +42,7 @@ declare function useCaslAbilities(getAbilityFactory: () => AbilityBuilder (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => CaslExtensionType; + $casl: () => (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>; }; }; }; diff --git a/dist/index.d.ts b/dist/index.d.ts index b6bd698..e5daccb 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,7 +1,8 @@ +import * as _prisma_client_runtime_library from '@prisma/client/runtime/library'; +import { DynamicClientExtensionThis, InternalArgs } from '@prisma/client/runtime/library'; import { PureAbility, AbilityTuple, AbilityBuilder } from '@casl/ability'; import { PrismaQuery } from '@casl/prisma'; import { Prisma } from '@prisma/client'; -import { DynamicClientExtensionThis, InternalArgs } from '@prisma/client/runtime/library'; type PrismaCaslOperation = 'create' | 'createMany' | 'createManyAndReturn' | 'upsert' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'findUnique' | 'findUniqueOrThrow' | 'aggregate' | 'count' | 'groupBy' | 'update' | 'updateMany' | 'delete' | 'deleteMany'; @@ -22,17 +23,6 @@ declare function applyCaslToQuery(operation: PrismaCaslOperation, args: any, abi mask: undefined; }; -type CaslExtensionType = DynamicClientExtensionThis, Prisma.TypeMapCb, { - result: {}; - model: {}; - query: {}; - client: {}; -}, {}>; /** * enrich a prisma client to check for CASL abilities even in nested queries * @@ -52,7 +42,7 @@ declare function useCaslAbilities(getAbilityFactory: () => AbilityBuilder (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => CaslExtensionType; + $casl: () => (extendFactory: (factory: AbilityBuilder>) => AbilityBuilder>) => DynamicClientExtensionThis, Prisma.TypeMapCb, _prisma_client_runtime_library.DefaultArgs, {}>; }; }; }; diff --git a/package.json b/package.json index 0a68321..877c412 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prisma-extension-casl", - "version": "0.5.3", + "version": "0.5.4", "description": "Enforce casl abilities on prisma client ", "main": "dist/index.js", "types": "dist/index.d.ts",