Releases: gaelrenoux/tranzactio
v5.2.0
Two new features in this version:
- The
transactionOrDieStream
andautoCommitStream
now let you provide theConnection
to aZStream
without converting it to aZIO
first, staying in streaming mode (#35). Thanks @xQwexx for the help! - Introduction of the
DatabaseT[M]
type, that lets you handle multiple databases in the same ZIO environment (#51).
v5.1.0
This version bumps the following dependency versions:
- Scala to 2.13.12 and 3.3.1
- ZIO to 2.0.21
- Doobie to 1.0.0-RC5 (thank you @strokyl)
It also contains a small improvement on error handling: when the transaction fails AND the rollback (or the commit if commit-on-failure was used) fails, the resulting error cause will now contain both failures: the initial failure, and the rollback failure.
v5.0.1
Fix sbt version, required for publication.
v5.0.0
Massive changes in this version.
Multiple artifacts
Starting from this version, and thanks to some great work by @thanhbv, Transzactio now produces separate artifacts for Doobie and Anorm, avoiding unnecessary transitive dependencies. See migration notes for details.
Latest versions
This version depends on the latest versions for Scala 2 and 3, ZIO, and Doobie.
Introduction of the DbContext
In order to be able to handle query-logging in Doobie (through the LogHandler
and its new behavior in Doobie 1.0.0-RC4), I've introduced the DbContext
class. Generally, this class will be used to pass any library-specific information to the wrapped library. Right now, it's only used for the LogHandler (see here for an example).
v4.2.0
Upgrade on all Scala versions, ZIO version and zio-interop-cats version.
v4.1.0
Adds Scala 3 support (by @endertunc). Also updates a few versions (ZIO and Anorm).
v4.0.0
ZIO 2.0.0 is out, so here's the corresponding Tranzactio version. Note that we are still running on Doobie 1.0.0-RC2, which has been out since January.
v4.0.0-M4
Upgrades TranzactIO for ZIO 2.0.0-RC6.
Note: there is no M3 release, I screwed up a little bit when creating the M3 tag.
v3.0.0
No change compared to 3.0.0-M3, but I've decided to remove the milestone and make it a proper version. Two reasons:
- The RC2 of Doobie 1.0.0 has been out since January.
- I've released a 4.0.0 version for ZIO 2.0.0 and it seemed confusing to keep the milestone on the 3.0.0 and not on the 4.0.0.
v4.0.0-M2
Applies ZIO 2 guidelines:
- Most parameters are now by-name.
- Added implicit ZTRaceElements on appropriate methods.
Also fixes a bug on exponential retries (max-delay was always 10 seconds).