Skip to content

Commit

Permalink
Merge branch 'master' into update/scala-library-2.12.19
Browse files Browse the repository at this point in the history
  • Loading branch information
kciesielski committed Apr 12, 2024
2 parents 17c6f66 + d26b635 commit fad13b3
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.8.1
499baded20f959dca86ad7a24d2244b7241de8c3
5 changes: 4 additions & 1 deletion .scala-steward.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ updates.ignore = [
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "2.13."},
{groupId = "org.scala-lang", artifactId = "scala-compiler", version = "3."}
]
updates.pin = [{ groupId = "com.typesafe.akka", version = "2.6." }]
updates.pin = [
{groupId = "org.scala-lang", artifactId = "scala3-library", version = "3.3."},
{groupId = "com.typesafe.akka", version = "2.6."}
]
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
runner.dialect = scala3
version = 3.7.17
version = 3.8.1
maxColumn = 120
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import com.typesafe.tools.mima.core._

val scala2_11 = "2.11.12"
val scala2_12 = "2.12.19"
val scala2_13 = "2.13.12"
val scala2_13 = "2.13.13"
val scala2 = List(scala2_11, scala2_12, scala2_13)
val scala2alive = List(scala2_12, scala2_13)
val scala3 = List("3.3.1")
val scala3 = List("3.3.3")
val akkaVersion = "2.6.20"
val pekkoVersion = "1.0.2"
val sttpModelVersion = "1.6.0"
Expand All @@ -20,8 +20,8 @@ val fs2_2_version: Option[(Long, Long)] => String = {
case Some((2, 11)) => "2.1.0"
case _ => "2.5.9"
}
val fs2_3_version = "3.9.4"
val armeriaVersion = "1.27.1"
val fs2_3_version = "3.10.0"
val armeriaVersion = "1.27.3"

excludeLintKeys in Global ++= Set(ideSkipProject)

Expand Down Expand Up @@ -276,7 +276,7 @@ lazy val vertx = (projectMatrix in file("vertx"))
.jvmPlatform(
scalaVersions = List(scala2_12, scala2_13) ++ scala3,
settings = commonJvmSettings ++ Seq(
libraryDependencies += "io.vertx" % "vertx-core" % "4.4.4"
libraryDependencies += "io.vertx" % "vertx-core" % "4.5.7"
)
)
.dependsOn(core)
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ object PekkoStreams extends PekkoStreams {
def limitBytes(stream: Source[ByteString, Any], maxBytes: Long): Source[ByteString, Any] = {
stream
.limitWeighted(maxBytes)(_.length.toLong)
.mapError {
case _: pekko.stream.StreamLimitReachedException => StreamMaxLengthExceededException(maxBytes)
.mapError { case _: pekko.stream.StreamLimitReachedException =>
StreamMaxLengthExceededException(maxBytes)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ class PekkoStreamsTest extends AnyFlatSpec with Matchers with BeforeAndAfterAll
val stream = PekkoStreams.limitBytes(inputStream, maxBytes)

// then
stream.fold(0L)((acc, bs) => acc + bs.length).runWith(TestSink[Long]()).request(1).expectNext(inputByteCount.toLong).expectComplete()
stream
.fold(0L)((acc, bs) => acc + bs.length)
.runWith(TestSink[Long]())
.request(1)
.expectNext(inputByteCount.toLong)
.expectComplete()
}

it should "Fail stream if limit is exceeded" in {
Expand All @@ -51,7 +56,7 @@ class PekkoStreamsTest extends AnyFlatSpec with Matchers with BeforeAndAfterAll
Source.fromIterator(() => iterator.grouped(chunkSize).map(group => ByteString(group.toArray)))

// when
val stream = PekkoStreams.limitBytes(inputStream, maxBytes)
val stream = PekkoStreams.limitBytes(inputStream, maxBytes)
val probe = stream.runWith(TestSink[ByteString]())
val _ = for (_ <- 1 to 31) yield probe.requestNext()

Expand Down
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "1.1.1"
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.15.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.9.2")
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.10.0")

val sbtSoftwareMillVersion = "2.0.18"
val sbtSoftwareMillVersion = "2.0.20"
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-common" % sbtSoftwareMillVersion)
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-publish" % sbtSoftwareMillVersion)
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-browser-test-js" % sbtSoftwareMillVersion)
Expand Down

0 comments on commit fad13b3

Please sign in to comment.