Skip to content

Commit

Permalink
Merge pull request #12 from randm-ch/master
Browse files Browse the repository at this point in the history
Upgrade Laminar to 17.0.0
  • Loading branch information
kitlangton authored Aug 13, 2024
2 parents 8a731c2 + 7b27991 commit 55197e0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
12 changes: 5 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
lazy val Scala213 = "2.13.8"
lazy val Scala212 = "2.12.15"
lazy val Scala3 = "3.0.0"
lazy val Scala213 = "2.13.14"
lazy val supportedScalaVersions = List(Scala213)

ThisBuild / scalaVersion := Scala213
Expand Down Expand Up @@ -54,7 +52,7 @@ lazy val core = project
name := "formula",
scalacOptions ++= Seq("-Ymacro-annotations"),
libraryDependencies ++= Seq(
"com.raquo" %%% "laminar" % "15.0.0",
"com.raquo" %%% "laminar" % "17.0.0",
"com.softwaremill.magnolia1_2" %%% "magnolia" % "1.1.2",
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided
),
Expand All @@ -69,9 +67,9 @@ lazy val examples = project
.settings(
name := "formula-examples",
libraryDependencies ++= Seq(
"com.raquo" %%% "laminar" % "15.0.0",
"io.github.cquiroz" %%% "scala-java-time" % "2.4.0",
"io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.4.0"
"com.raquo" %%% "laminar" % "17.0.0",
"io.github.cquiroz" %%% "scala-java-time" % "2.6.0",
"io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.6.0"
),
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.ESModule) },
scalaJSLinkerConfig ~= { _.withSourceMap(false) },
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/formula/Form.scala
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ object Form {
}

override def signal: L.Signal[Validation[String, List[A]]] =
variables.signal.flatMap {
variables.signal.flatMapSwitch {
_.foldLeft[L.Signal[Validation[String, List[A]]]](Val(Validation(List.empty[A]))) { (acc, v) =>
acc.combineWithFn(v.signal) { case (l, r) =>
l.zip(r).map { case (as, a) => as.appended(a) }
Expand Down Expand Up @@ -221,7 +221,7 @@ object Form {
varA.get zip bFormVar.now().variable.get

override def signal: Signal[Validation[String, (Any, Any)]] =
bFormVar.signal.flatMap { bForm =>
bFormVar.signal.flatMapSwitch { bForm =>
varA.signal.combineWithFn(bForm.variable.signal)(_ zip _)
}
}
Expand Down Expand Up @@ -273,7 +273,7 @@ object Form {
formVar.now().variable.get

override def signal: Signal[Validation[String, A]] =
formVar.signal.flatMap(_.variable.signal)
formVar.signal.flatMapSwitch(_.variable.signal)
}

val node =
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.8.2
sbt.version = 1.10.1
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1")
Expand Down

0 comments on commit 55197e0

Please sign in to comment.