github ghostdogpr/caliban v0.7.3

latest releases: v2.9.0, v2.8.1, v2.8.0...
4 years ago

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

Don't miss a new caliban release

NewReleases is sending notifications on new releases.