Skip to content

Commit

Permalink
Update http4s-circe, http4s-client, ... to 1.0.0-M30 (#2401)
Browse files Browse the repository at this point in the history
* Update http4s-circe, http4s-client, ... to 1.0.0-M30

* Fix compile errors

Co-authored-by: Frank S. Thomas <frank@timepit.eu>
  • Loading branch information
scala-steward and fthomas committed Dec 12, 2021
1 parent 7028973 commit 9616f7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -70,13 +70,13 @@ final class HttpJsonClient[F[_]](implicit
request[A](PATCH, uri, modify)

def postWithBody[A: Decoder, B: Encoder](uri: Uri, body: B, modify: ModReq): F[A] =
post[A](uri, modify.compose(_.withEntity(body)(jsonEncoderOf[F, B])))
post[A](uri, modify.compose(_.withEntity(body)(jsonEncoderOf[B])))

def putWithBody[A: Decoder, B: Encoder](uri: Uri, body: B, modify: ModReq): F[A] =
put[A](uri, modify.compose(_.withEntity(body)(jsonEncoderOf[F, B])))
put[A](uri, modify.compose(_.withEntity(body)(jsonEncoderOf[B])))

def patchWithBody[A: Decoder, B: Encoder](uri: Uri, body: B, modify: ModReq): F[A] =
patch[A](uri, modify.compose(_.withEntity(body)(jsonEncoderOf[F, B])))
patch[A](uri, modify.compose(_.withEntity(body)(jsonEncoderOf[B])))

private[this] def requestWithHeader[A, H](
method: Method,
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Expand Up @@ -22,7 +22,7 @@ object Dependencies {
val disciplineMunit = "org.typelevel" %% "discipline-munit" % "1.0.9"
val fs2Core = "co.fs2" %% "fs2-core" % "3.2.3"
val fs2Io = "co.fs2" %% "fs2-io" % fs2Core.revision
val http4sCore = "org.http4s" %% "http4s-core" % "1.0.0-M29"
val http4sCore = "org.http4s" %% "http4s-core" % "1.0.0-M30"
val http4sCirce = "org.http4s" %% "http4s-circe" % http4sCore.revision
val http4sClient = "org.http4s" %% "http4s-client" % http4sCore.revision
val http4sDsl = "org.http4s" %% "http4s-dsl" % http4sCore.revision
Expand Down

0 comments on commit 9616f7b

Please sign in to comment.