From a300d7d1b809dbab74e9437d0a774db89af123f2 Mon Sep 17 00:00:00 2001 From: scala-steward Date: Fri, 6 Nov 2026 00:33:00 +0000 Subject: [PATCH 1/2] Update fs2-reactive-streams to 3.14.0 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 5a444516f..ad7c3a637 100644 --- a/build.sbt +++ b/build.sbt @@ -154,7 +154,7 @@ val fs2_3_version = "3.14.0" val catsEffect_2_version = "2.5.5" -val fs2_2_version = "2.5.13" +val fs2_2_version = "3.14.0" val akkaHttp = "com.typesafe.akka" %% "akka-http" % "10.2.10" val akkaStreamVersion = "2.6.20" From ba7a78e2940a4ec7912200e6becb58263d0a038c Mon Sep 17 00:00:00 2001 From: scala-steward Date: Fri, 6 Nov 2026 00:50:20 +0000 Subject: [PATCH 2/2] Failed Scalafix rule(s) replace:fs2.text.utf8Decode/fs2.text.utf8.decode, replace:fs2.text.utf8DecodeC/fs2.text.utf8.decodeC, replace:fs2.text.utf8Encode/fs2.text.utf8.encode, replace:fs2.text.utf8EncodeC/fs2.text.utf8.encodeC --- .../main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala | 3 ++- .../test/scala/sttp/client4/impl/fs2/Fs2StreamingTest.scala | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala b/effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala index 4de61997a..79487d059 100644 --- a/effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala +++ b/effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala @@ -2,11 +2,12 @@ package sttp.client4.impl.fs2 import fs2.text import sttp.model.sse.ServerSentEvent +import fs2.text.utf8 object Fs2ServerSentEvents { def parse[F[_]]: fs2.Pipe[F, Byte, ServerSentEvent] = { response => response - .through(text.utf8Decode[F]) + .through(utf8.decode[F]) .through(text.lines[F]) .split(_.isEmpty) .filter(_.nonEmpty) diff --git a/effects/fs2/src/test/scala/sttp/client4/impl/fs2/Fs2StreamingTest.scala b/effects/fs2/src/test/scala/sttp/client4/impl/fs2/Fs2StreamingTest.scala index e38b508de..54028b539 100644 --- a/effects/fs2/src/test/scala/sttp/client4/impl/fs2/Fs2StreamingTest.scala +++ b/effects/fs2/src/test/scala/sttp/client4/impl/fs2/Fs2StreamingTest.scala @@ -7,6 +7,7 @@ import sttp.capabilities.fs2.Fs2Streams import sttp.client4.impl.cats.CatsTestBase import sttp.model.sse.ServerSentEvent import sttp.client4.testing.streaming.StreamingTest +import fs2.text trait Fs2StreamingTest extends StreamingTest[IO, Fs2Streams[IO]] with CatsTestBase { override val streams: Fs2Streams[IO] = new Fs2Streams[IO] {} @@ -19,7 +20,7 @@ trait Fs2StreamingTest extends StreamingTest[IO, Fs2Streams[IO]] with CatsTestBa override def bodyConsumer(stream: fs2.Stream[IO, Byte]): IO[String] = stream - .through(fs2.text.utf8Decode) + .through(text.utf8.decode) .compile .foldMonoid