Skip to content

Commit d46dfd3

Browse files
authored
Update ZIO libraries (zio#437)
1 parent 04cf9c5 commit d46dfd3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build.sbt

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ lazy val example =
6666
.settings(
6767
publish / skip := true,
6868
libraryDependencies ++= Seq(
69-
"com.softwaremill.sttp.client3" %% "async-http-client-backend-zio" % "3.3.11",
70-
"com.softwaremill.sttp.client3" %% "zio-json" % "3.3.11",
69+
"com.softwaremill.sttp.client3" %% "async-http-client-backend-zio" % "3.3.14",
70+
"com.softwaremill.sttp.client3" %% "zio-json" % "3.3.14",
7171
"dev.zio" %% "zio-streams" % Zio,
7272
"dev.zio" %% "zio-config-magnolia" % "1.0.6",
7373
"dev.zio" %% "zio-config-typesafe" % "1.0.6",
74-
"dev.zio" %% "zio-prelude" % "1.0.0-RC5",
74+
"dev.zio" %% "zio-prelude" % "1.0.0-RC6",
7575
"dev.zio" %% "zio-json" % "0.1.5",
7676
"io.d11" %% "zhttp" % "1.0.0.0-RC17",
77-
"io.github.kitlangton" %% "zio-magic" % "0.3.6"
77+
"io.github.kitlangton" %% "zio-magic" % "0.3.8"
7878
)
7979
)

example/src/main/scala/example/api/Api.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object Api {
1313
case Method.GET -> Root / "repositories" / owner / name / "contributors" =>
1414
ZIO
1515
.serviceWith[ContributorsCache.Service](_.fetchAll(Repository(Owner(owner), Name(name))))
16-
.bimap(ApiError.errorResponse, r => Response.jsonString(r.toJson))
16+
.mapBoth(ApiError.errorResponse, r => Response.jsonString(r.toJson))
1717
.merge
1818
}
1919

project/BuildHelper.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object BuildHelper {
2323

2424
val Scala212: String = versions("2.12")
2525
val Scala213: String = versions("2.13")
26-
val Zio: String = "1.0.9"
26+
val Zio: String = "1.0.11"
2727

2828
def buildInfoSettings(packageName: String) =
2929
List(

0 commit comments

Comments
 (0)