Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cats Effect (3.5.x) and FS2 #689

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ lazy val root = project

val zioVersion = "2.0.21"
val catsVersion = "2.9.0"
val catsEffectVersion = "3.4.8"
val catsEffectVersion = "3.5.3"
val catsMtlVersion = "1.3.0"
val disciplineScalaTestVersion = "2.2.0"
val fs2Version = "3.6.1"
val fs2Version = "3.9.4"
val scalaJavaTimeVersion = "2.5.0"

lazy val zioInteropTracer = crossProject(JSPlatform, JVMPlatform)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object fs2StreamSpec extends ZIOSpecDefault {
val exception: Throwable = new Exception("Failed")

def fs2StreamFromChunk[A](chunk: Chunk[A]) =
fs2.Stream.chunk[Task, A](fs2.Chunk.indexedSeq(chunk))
fs2.Stream.chunk[Task, A](fs2.Chunk.from(chunk))

def assertEqual[A](actual: fs2.Stream[Task, A], expected: fs2.Stream[Task, A]) =
for {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ZStreamSyntax[R, E, A](private val stream: ZStream[R, E, A]) extends AnyVa

fs2.Stream.resource(Resource.scopedZIO[R, E, ZIO[R, Option[E], Chunk[A]]](stream.toPull)).flatMap { pull =>
fs2.Stream.repeatEval(pull.unsome).unNoneTerminate.flatMap { chunk =>
fs2.Stream.chunk(fs2.Chunk.indexedSeq(chunk))
fs2.Stream.chunk(fs2.Chunk.from(chunk))
}
}
}
Expand Down
Loading