Skip to content

v0.7.3

Compare
Choose a tag to compare
@ghostdogpr ghostdogpr released this 25 Mar 23:57
8366580

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 your build.sbt, because now it's optional for caliban-akka-http. Luckily, compiler will detect if it's missing.
  • Use adapter instead of AkkaHttpAdapter 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)

#292 #296 by @vpavkin

Other Changes