From a7267df0cb2a09a9b01c808ffbe50fa07550b92f Mon Sep 17 00:00:00 2001 From: dennemark Date: Thu, 28 Nov 2024 18:19:28 +0100 Subject: [PATCH] Release 1.1.2 --- CHANGELOG.md | 6 ++++++ dist/index.js | 4 ++++ dist/index.mjs | 4 ++++ package.json | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e1efe4..0469aa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ +## [1.1.2](https://github.com/dennemark/prisma-extension-casl/compare/1.1.1...1.1.2) (2024-11-28) + +### Bug Fixes + +* :bug: possible fix for prisma transaction connection timeout ([c39c128](https://github.com/dennemark/prisma-extension-casl/commit/c39c128e7507a24fe218d5bbd58eb987486e0337)) + ## [1.1.1](https://github.com/dennemark/prisma-extension-casl/compare/1.1.0...1.1.1) (2024-11-27) ### Bug Fixes diff --git a/dist/index.js b/dist/index.js index 49bd519..36ba80b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1588,6 +1588,10 @@ function useCaslAbilities(getAbilityFactory, opts) { } else { return client.$transaction(async (tx) => { return transactionQuery(tx); + }, { + //https://github.com/prisma/prisma/issues/20015 + maxWait: 1e4 + // default prisma pool timeout. would be better to get it from client }); } } diff --git a/dist/index.mjs b/dist/index.mjs index d1dca88..db652ea 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1563,6 +1563,10 @@ function useCaslAbilities(getAbilityFactory, opts) { } else { return client.$transaction(async (tx) => { return transactionQuery(tx); + }, { + //https://github.com/prisma/prisma/issues/20015 + maxWait: 1e4 + // default prisma pool timeout. would be better to get it from client }); } } diff --git a/package.json b/package.json index 89abd5b..d5ce319 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prisma-extension-casl", - "version": "1.1.1", + "version": "1.1.2", "description": "Enforce casl abilities on prisma client ", "main": "dist/index.js", "types": "dist/index.d.ts",