Skip to content

[0.29.0] Fixes for sealed trait codecs

Choose a tag to compare

@valentiay valentiay released this 16 Nov 17:39
· 16 commits to master since this release
e0c382f

⚠️ This release partially reverts the behavior of codecs for sealed traits introduced in 0.21.0. Since 0.21.0, codecs for sealed trait children were automatically derived, but this did not allow for any configuration of codecs for children classes (#46) and it generally was not intuitive. After this release, codecs for sealed trait children must be explicitly derived for each sealed trait child class.

Note that the behavior for enums has not changed: the automatic derivation of codecs still applies to enum children and they cannot be configured.

What's Changed

  • Properly handle case object decoding in scala3 by @mpipalovic in #50
  • Summon sealed trait children definitions for Element Encoder/Decoder instead of auto-deriving by @mpipalovic in #51
  • Bump version and update dependencies by @valentiay in #52

New Contributors

Full Changelog: 0.28.0...0.29.0