Skip to content

Commit

Permalink
chore: bump laminar (to 17.2.0)
Browse files Browse the repository at this point in the history
(and laminext to 0.17.1)
  • Loading branch information
MartinHH committed Dec 22, 2024
1 parent d2abffe commit 9ba7f22
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ lazy val client =
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % Versions.scalaJsDomVersion,
"com.raquo" %%% "laminar" % Versions.laminarVersion,
"io.laminext" %%% "core" % Versions.laminextVersion,
"io.laminext" %%% "websocket" % Versions.laminextVersion,
"io.laminext" %%% "websocket-circe" % Versions.laminextVersion
"dev.laminext" %%% "core" % Versions.laminextVersion,
"dev.laminext" %%% "websocket" % Versions.laminextVersion,
"dev.laminext" %%% "websocket-circe" % Versions.laminextVersion
)
)
.dependsOn(shared.js % "compile->compile;test->test", sharedCirce.js)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ object Tables:
val names: Signal[List[String]] =
teamScore
.map(_.team.toList)
.flatMap { t =>
.flatMapSwitch { t =>
playerNames.map(pn => t.map(p => pn(p)))
}(SwitchSignalStrategy)
}
stringsWithLineBreaks(names)

// TODO: translation instead of hardcoded titles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private def observeClicksWithActions[Action](
val clickEventStream = new EventBus[org.scalajs.dom.MouseEvent]
val clickActions: Observable[Action] =
actionOpt
.flatMap(a => clickEventStream.toObservable.map(_ => a))(SwitchStreamStrategy)
.flatMapSwitch(a => clickEventStream.toObservable.map(_ => a))
.collect { case Some(a) => a }
Seq(
onClick --> clickEventStream,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object ConfigurableCountdown {
intervalMs: Int = 1000
): Signal[Option[Int]] = {
activeTimeOut.toObservable
.flatMap {
.flatMapSwitch {
case Some(to) =>
EventStream.periodic(intervalMs, resetOnStop = true).map { tick =>
Some(math.max(to - tick, 0))
Expand Down
4 changes: 2 additions & 2 deletions project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ object Versions {
val log4CatsVersion = "2.7.0"
val circeVersion = "0.14.10"
val scalaJsDomVersion = "2.8.0"
val laminarVersion = "16.0.0"
val laminextVersion = "0.16.2"
val laminarVersion = "17.2.0"
val laminextVersion = "0.17.1"
val munitVersion = "1.0.3"
val munitScalacheckVersion = "1.0.0"
val scalacheckDerivedVersion = "0.5.0"
Expand Down

0 comments on commit 9ba7f22

Please sign in to comment.