You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package will no longer throw an error when it tries to release a savepoint that doesn't exist which may happen in rare cases in which not all Prisma calls are awaited
This should prevent ERROR: savepoint "..." does not exist errors
Using .then(...) without a second (reject) parameter on a Promise returned by the proxy Prisma Client no longer throws a reject is not a function error (#20) (thank you @yamatatsu for the PR)
Calling const transformedData = await prisma.someTable.findMany().then(data => someTransformation(data)) now correctly returns the transformed data instead of directly returning the findMany result (#13)
Added a warning when the transaction changes (startNewTransaction is called) while executing a query
(e.g. you forgot to await a query in your test, and the next test gets executed while the query is still running)
Fixed
Savepoints will now always execute on the correct transaction, even if the query is not awaited and the transaction changes (i.e. startNewTransaction is called while a query is executed)
The proxied function return values now also provide .catch and .finally, allowing you to use
⚠️ This is an update to the old version if you can't or don't want to upgrade to v1 yet. This is the last supported major Prisma version upgrade for v0.