Release Notes
Akka Http Adapter
There are some minor breaking changes to akka-http adapter API.
With this release AkkaHttpAdapter
doesn't lock you up with circe
, but lets you choose a json backend between circe
and play-json
.
The simplest way to keep previous behavior is to:
- mixin
AkkaHttpCirceAdapter
trait to your endpoint definition wrapper - add
"de.heikoseeberger" %% "akka-http-circe" % "1.31.0"
dependency to yourbuild.sbt
, because now it's optional forcaliban-akka-http
. Luckily, compiler will detect if it's missing. - Use
adapter
instead ofAkkaHttpAdapter
to create routes.
You can see an example of this simple migration here.
A more composable and recommended way to create caliban adapter would be this (this time it's play-json):
val adapter = AkkaHttpAdapter(new PlayJsonBackend)
Other Changes
- Fixed an issue in
ZQuery
causing some effects to be evaluated twice #291 by @adamgfraser - Added
ZQuery#optional
#293 by @adamgfraser - Added
Schema
instances forSeq
andVector
#297 by @ghostdogpr - Added
Schema
instance for PlayJson
#294 by @vpavkin