Releases: Tinkoff/phobos
Releases · Tinkoff/phobos
[v0.21.0] Support for enums
Key changes
- Implemented support for enums and case objects in scala 3 (issues - #199 and #281, pr - #283).
⚠️ This is a breaking change! Codecs for sealed trait / enum children are now derived automatically, if codec is derived for parent. - Updated dependency versions.
What's Changed
- Update scalafmt-core to 3.7.3 by @scala-steward in #279
- Update refined to 0.10.3 by @scala-steward in #278
- Update sbt-sonatype to 3.9.18 by @scala-steward in #277
- Update diffx-scalatest-should to 0.8.3 by @scala-steward in #280
- Update sbt-sonatype to 3.9.20 by @scala-steward in #282
- Scala 3. Derivation for enums. Better derivation for sealed traits by @susliko in #283
Full Changelog: v0.20.0...v0.21.0
[v0.20.0] Safer errors
Key changes
- Fixed some cases, where encoder and decoder could throw errors (#273).
⚠️ This is a breaking change! Return type of XmlEncoder methods was changed. Now those methods return Either, because encoding still may fail. - Added new codec instances for java.time (#274).
- Updated dependency versions.
What's Changed
- Update scalactic to 3.2.15 by @scala-steward in #264
- Update scalatest to 3.2.15 by @scala-steward in #265
- Update fs2-core, fs2-io to 3.6.1 by @scala-steward in #272
- Update scala3-library to 3.2.2 by @scala-steward in #270
- Update sbt-sonatype to 3.9.17 by @scala-steward in #269
- Update scalafmt-core to 3.7.1 by @scala-steward in #268
- More secure encoding by @valentiay in #273
- More java.time instances by @valentiay in #274
Full Changelog: v0.19.2...v0.20.0
[v0.19.2] Fixed higher-kinded data in scala 3
Key changes
What's Changed
- Update sbt to 1.8.2 by @scala-steward in #262
- Fix support for HKD in scala 3 by @valentiay in #263
Full Changelog: v0.19.1...v0.19.2
[v0.19.1] Fixed scope namespaces
Key changes
- Fixed scope namespaces in list decoders (pr - #261).
- Updated dependency versions.
What's Changed
- Update sbt-pgp to 2.2.1 by @scala-steward in #259
- Update enumeratum to 1.7.2 by @scala-steward in #257
- Update sbt-git to 2.0.1 by @scala-steward in #258
- Fix scope namespaces for lists by @valentiay in #261
Full Changelog: v0.19.0...v0.19.1
[v.0.19.0] Scope default namespaces
Key changes
- Added capability to configure scope default namespcaces (pr - #256).
- Added documentation for
ElementCodecConfig
(pr - #256). - Updated dependency versions.
What's Changed
- Update fs2-core, fs2-io to 3.4.0 by @scala-steward in #254
- Update sbt-sonatype to 3.9.15 by @scala-steward in #255
- Add scope default namespaces + more documentation for ElementCodecConfig by @valentiay in #256
Full Changelog: v0.18.0...v0.19.0
[v0.18.0] More beautiful encoding
Key changes
- Added capability to configure namespace prefixes (issue - #230, pr - #252).
- Added capability to pretty print XML (pr - #253).
- Updated dependency versions.
What's Changed
- Update sbt to 1.8.0 by @scala-steward in #248
- Update scala3 library 3.2.1 by @valentiay in #250
- Update cats-core to 2.9.0 by @valentiay in #251
- Customization of namespace prefixes by @valentiay in #252
- XML pretty printing by @valentiay in #253
Full Changelog: v0.17.0...v0.18.0
[v0.17.0] Better codec consistency
Key changes
- Changed the behavior of decoder for options (issue - #222, pr - #227).
⚠️ This is a breaking change! Elements without children elements and attribures<bar/>
were previously decoded asNone
, now they are decoded asSome[_]
. - Changed the behavior of encoders and decoders for
Unit
types (issue - #231, pr - #246).
⚠️ This is a breaking change!Unit
was previously ignored in encoder. Now it is encoded as empty element.
Previously:Foo(bar: Unit)
→<foo/>
. Now:Foo(bar: Unit)
→<foo><bar/></foo>
.Unit
decoder was previously bugged,Unit
could not be decoded successfully. NowUnit
can be decoded from empty element.
Previously:<foo><bar/></foo>
asFoo(bar: Unit)
→Error: Element is already decoded
. Now:<foo><bar/></foo>
asFoo(bar: Unit)
→Foo(())
.
- Updated dependency versions.
What's Changed
- Update akka-http to 10.2.10 by @scala-steward in #224
- Update fs2-core, fs2-io to 3.2.14 by @scala-steward in #223
- Update akka-stream, akka-testkit to 2.6.20 by @scala-steward in #225
- Fixed option decoding for empty tags by @FrancisToth in #227
- Update fs2-core, fs2-io to 3.3.0 by @scala-steward in #232
- Update scala-library, scala-reflect to 2.12.17 by @scala-steward in #234
- Update sbt-pgp to 2.2.0 by @scala-steward in #237
- Update diffx-scalatest-should to 0.8.2 by @scala-steward in #238
- Update sbt to 1.7.3 by @scala-steward in #239
- Update scalactic to 3.2.14 by @scala-steward in #241
- Update scalafmt-core to 3.6.1 by @scala-steward in #242
- Fix tests for #222 by @valentiay in #245
- Update scala-library, scala-reflect to 2.13.10 by @scala-steward in #235
- Update scalacheck to 1.17.0 by @scala-steward in #240
- Update scalatest to 3.2.14 by @scala-steward in #243
- Update sbt-sonatype to 3.9.14 by @scala-steward in #244
- Change codecs for Unit by @valentiay in #246
New Contributors
- @FrancisToth made their first contribution in #227
Full Changelog: v0.16.0...v0.17.0
[v0.16.0] Better akka http instances
[v0.15.1] Decoder improvements
[v0.15.0] Support for Scala 3
- Added support for Scala 3 (#197)
- Updated dependency versions