Skip to content

v0.12.0

Compare
Choose a tag to compare
@tpolecat tpolecat released this 09 Mar 19:23
8dc67e8

This release removes Scala 3.0.0-M2 and adds Scala 3.0.0-RC1.

Note that we refer below to changes since v0.10.0. The 0.11 series was never released.

Default java.time instances for PostgreSQL in doobie.postgres.implicits._

Confusion around which date time instances to use has been a constant issues to Doobie users, and in this release we aim to make this easier.

If you're using PostgreSQL, import doobie.postgres.implicits._ will now provide you with the correct Meta instances for java.time types, based on pgjdbc's native support for them. You should remove any doobie.implicits.javatime or doobie.implicits.legacy imports as they will likely cause ambiguous implicits error.

If you're using other databases, you can keep using the current instances that you explicitly import. You can also submit a PR with a similar setup as the postgres module to make everyone life easier :)

If you see deprecation warnings about import doobie.implicits.javatime._, you can change it to import doobie.implicits.javatimedrivernative._ (Same behaviour and instances - just a better name for clarity)

Other changes:

  • Library updates.
  • Fix a crash in IOAnalysisMatchers (Dmitry Polienko)
  • Make Update#apply take logHandler implicitly (Eugene Platonov)
  • Add Adopters list to documentation (Eugene Platonov)
  • Add postgres java.time meta instances specifically for pgjdbc driver (Jacob Wang)
  • Doc improvements (Jacob Wang, Saskia Gennrich)
  • Make Query#executeQuery cancelable (Michael Tkachev)
  • Expose fragment internals (Rob Norris)