Skip to content

Commit

Permalink
Update version in docs + a few improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr committed May 10, 2020
1 parent 2efe7cb commit f84c75c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 24 deletions.
18 changes: 9 additions & 9 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ To run the examples without the rest of the project, add this to your build.sbt:

```scala
libraryDependencies ++= Seq(
"com.github.ghostdogpr" %% "caliban" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-http4s" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-akka-http" % "0.7.7",
"com.github.ghostdogpr" %% "caliban" % "0.7.8",
"com.github.ghostdogpr" %% "caliban-http4s" % "0.7.8",
"com.github.ghostdogpr" %% "caliban-akka-http" % "0.7.8",
"de.heikoseeberger" %% "akka-http-circe" % "1.31.0",
"com.github.ghostdogpr" %% "caliban-cats" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-monix" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-finch" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-uzhttp" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-federation" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-tapir" % "0.7.7",
"com.github.ghostdogpr" %% "caliban-cats" % "0.7.8",
"com.github.ghostdogpr" %% "caliban-monix" % "0.7.8",
"com.github.ghostdogpr" %% "caliban-finch" % "0.7.8",
"com.github.ghostdogpr" %% "caliban-uzhttp" % "0.7.8",
"com.github.ghostdogpr" %% "caliban-federation" % "0.7.8",
"com.github.ghostdogpr" %% "caliban-tapir" % "0.7.8",
"com.softwaremill.sttp.tapir" %% "tapir-json-circe" % "0.14.3",
"io.circe" %% "circe-generic" % "0.13.0"
)
Expand Down
16 changes: 8 additions & 8 deletions vuepress/docs/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ Caliban can also be used to build GraphQL frontends: see the [dedicated section]
To use `caliban`, add the following line in your `build.sbt` file:

```
libraryDependencies += "com.github.ghostdogpr" %% "caliban" % "0.7.7"
libraryDependencies += "com.github.ghostdogpr" %% "caliban" % "0.7.8"
```

The following modules are optional:

```
libraryDependencies += "com.github.ghostdogpr" %% "caliban-http4s" % "0.7.7" // routes for http4s
libraryDependencies += "com.github.ghostdogpr" %% "caliban-akka-http" % "0.7.7" // routes for akka-http
libraryDependencies += "com.github.ghostdogpr" %% "caliban-finch" % "0.7.7" // routes for finch
libraryDependencies += "com.github.ghostdogpr" %% "caliban-uzhttp" % "0.7.7" // routes for uzhttp
libraryDependencies += "com.github.ghostdogpr" %% "caliban-cats" % "0.7.7" // interop with cats effect
libraryDependencies += "com.github.ghostdogpr" %% "caliban-monix" % "0.7.7" // interop with monix
libraryDependencies += "com.github.ghostdogpr" %% "caliban-federation" % "0.7.7" // interop with apollo federation
libraryDependencies += "com.github.ghostdogpr" %% "caliban-http4s" % "0.7.8" // routes for http4s
libraryDependencies += "com.github.ghostdogpr" %% "caliban-akka-http" % "0.7.8" // routes for akka-http
libraryDependencies += "com.github.ghostdogpr" %% "caliban-finch" % "0.7.8" // routes for finch
libraryDependencies += "com.github.ghostdogpr" %% "caliban-uzhttp" % "0.7.8" // routes for uzhttp
libraryDependencies += "com.github.ghostdogpr" %% "caliban-cats" % "0.7.8" // interop with cats effect
libraryDependencies += "com.github.ghostdogpr" %% "caliban-monix" % "0.7.8" // interop with monix
libraryDependencies += "com.github.ghostdogpr" %% "caliban-federation" % "0.7.8" // interop with apollo federation
```

## A simple example
Expand Down
4 changes: 2 additions & 2 deletions vuepress/docs/docs/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Just like Caliban, `caliban-client` offers a purely functional interface and kee
To use `caliban-client`, add the following line in your `build.sbt` file:

```
libraryDependencies += "com.github.ghostdogpr" %% "caliban-client" % "0.7.7"
libraryDependencies += "com.github.ghostdogpr" %% "caliban-client" % "0.7.8"
```

Caliban-client is available for ScalaJS.
Expand All @@ -24,7 +24,7 @@ The first step for building GraphQL queries with `caliban-client` is to generate
To use this feature, add the `caliban-codegen-sbt` sbt plugin to your project and enable it.

```scala
addSbtPlugin("com.github.ghostdogpr" % "caliban-codegen-sbt" % "0.7.7")
addSbtPlugin("com.github.ghostdogpr" % "caliban-codegen-sbt" % "0.7.8")
enablePlugins(CodegenPlugin)
```
Then call the `calibanGenClient` sbt command.
Expand Down
2 changes: 1 addition & 1 deletion vuepress/docs/docs/federation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
To use, add the following line to your `build.sbt` file:

```
libraryDependencies += "com.github.ghostdogpr" %% "caliban-federation" % "0.7.7"
libraryDependencies += "com.github.ghostdogpr" %% "caliban-federation" % "0.7.8"
```

## Federating
Expand Down
6 changes: 3 additions & 3 deletions vuepress/docs/docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ The table below shows how common Scala types are converted to GraphQL types.
| Either[A, B] | Object with 2 nullable fields `left` and `right` |
| Map[A, B] | List of Object with 2 fields `key` and `value` |
| ZIO[R, Nothing, A] | A |
| ZIO[R, E, A] | Nullable A |
| ZIO[R, Throwable, A] | Nullable A |
| Future[A] | Nullable A |
| ZStream[R, E, A] | A (subscription) or List of A (query, mutation) |
| ZStream[R, Throwable, A] | A (subscription) or List of A (query, mutation) |
| Json (from [Circe](https://github.com/circe/circe)) | Json (custom scalar, need `import caliban.interop.circe.json._`) |
| Json (from [play-json](https://github.com/playframework/play-json)) | Json (custom scalar, need `import caliban.interop.play.json._`) |

Expand Down Expand Up @@ -198,7 +198,7 @@ Caliban can automatically generate Scala code from a GraphQL schema.
In order to use this feature, add the `caliban-codegen-sbt` sbt plugin to your project and enable it.

```scala
addSbtPlugin("com.github.ghostdogpr" % "caliban-codegen-sbt" % "0.7.7")
addSbtPlugin("com.github.ghostdogpr" % "caliban-codegen-sbt" % "0.7.8")
enablePlugins(CodegenPlugin)
```
Then call the `calibanGenSchema` sbt command.
Expand Down
7 changes: 6 additions & 1 deletion vuepress/docs/resources/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Resources

## Talks
- [A Tour of Caliban](https://www.youtube.com/watch?v=lgxUKsOH65k) by Pierre Ricadat at [SF Scala](https://www.meetup.com/SF-Scala/) in April 2020
- [Caliban: Designing a Functional GraphQL Library](https://www.youtube.com/watch?v=OC8PbviYUlQ) by Pierre Ricadat at [Functional Scala](https://www.functionalscala.com/) in December 2019 (slides available [here](https://www.slideshare.net/PierreRicadat/designing-a-functional-graphql-library-204680947))

## Blog Articles
Expand All @@ -10,4 +11,8 @@
- [Part 1: Turn a simple API into GraphQL](https://medium.com/@ghostdogpr/graphql-in-scala-with-caliban-part-1-8ceb6099c3c2)
- [Part 2: Query optimization](https://medium.com/@ghostdogpr/graphql-in-scala-with-caliban-part-2-c7762110c0f9)
- [Part 3: Customization using wrappers](https://medium.com/@ghostdogpr/graphql-in-scala-with-caliban-part-3-8962a02d5d64)
- [Authentication in Caliban](http://fokot.github.io/post/caliban-auth.html) by František Kocun (December 2019)
- [Authentication in Caliban](http://fokot.github.io/post/caliban-auth.html) by František Kocun (December 2019)

## Related Projects

- [zio-akka-quickstart](https://github.com/ScalaConsultants/zio-akka-quickstart.g8): a Giter8 template for a basic Scala application built using ZIO, Akka HTTP, Slick and Caliban!

0 comments on commit f84c75c

Please sign in to comment.