Skip to content

Commit

Permalink
Release 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dennemark committed Nov 28, 2024
1 parent c39c128 commit a7267df
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
}
Expand Down
4 changes: 4 additions & 0 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit a7267df

Please sign in to comment.