Skip to content

Commit 4f5b1ea

Browse files
alessandrovaccaroAlessandro Vaccaro
andauthored
upgrade to zio-1.0.1 (#4)
Co-authored-by: Alessandro Vaccaro <alessandro.vaccaro@enernoc.com>
1 parent cc2b9a7 commit 4f5b1ea

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ inThisBuild(List(
4545

4646
lazy val CirceVersion = "0.12.1"
4747
lazy val ScalaTestVersion = "3.1.0"
48-
lazy val Http4sVersion = "0.21.0-M5"
48+
lazy val Http4sVersion = "0.21.15"
4949

5050
lazy val common = project
5151
.in(file("common"))
@@ -105,8 +105,8 @@ lazy val http4sZio = project
105105
"org.scalatest" %% "scalatest" % ScalaTestVersion % "test",
106106
"org.http4s" %% "http4s-dsl" % Http4sVersion % "test",
107107
"org.http4s" %% "http4s-circe" % Http4sVersion % "test",
108-
"dev.zio" %% "zio" % "1.0.0-RC14",
109-
"dev.zio" %% "zio-interop-cats" % "2.0.0.0-RC5"
108+
"dev.zio" %% "zio" % "1.0.1",
109+
"dev.zio" %% "zio-interop-cats" % "2.1.4.0"
110110
)
111111
}
112112
)

http4s-lambda-zio/src/main/scala/io/github/howardjohn/lambda/http4szio/Http4sLambdaHandlerZIO.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import io.github.howardjohn.lambda.ProxyEncoding._
44
import io.github.howardjohn.lambda.http4s.Http4sLambdaHandlerK
55
import org.http4s._
66
import zio._
7+
import zio.Runtime
8+
import zio.internal.Platform
79
import zio.interop.catz._
810

911
class Http4sLambdaHandlerZIO(val service: HttpRoutes[Task]) extends Http4sLambdaHandlerK[Task] {
10-
val runtime: DefaultRuntime = new DefaultRuntime {}
12+
val runtime = Runtime.default
1113

1214
def handleRequest(request: ProxyRequest): ProxyResponse =
1315
parseRequest(request)

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.3.3
1+
sbt.version=1.4.3

0 commit comments

Comments
 (0)