Skip to content

Commit

Permalink
Merge pull request #321 from harana-oss/master
Browse files Browse the repository at this point in the history
Updated to latest Scala.js + Scala versions
  • Loading branch information
cquiroz authored Dec 7, 2024
2 parents 147f6fd + 831dd34 commit fa029f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ThisBuild / scalafmtOnCompile := true

Global / onChangedBuildSource := ReloadOnSourceChanges

ThisBuild / scalaVersion := "2.13.8"
ThisBuild / crossScalaVersions := Seq("2.13.8", "3.1.3")
ThisBuild / scalaVersion := "2.13.15"
ThisBuild / crossScalaVersions := Seq("2.13.15", "3.1.3")

val commonSettings = Seq(
scalacOptions := Seq(
Expand Down
8 changes: 4 additions & 4 deletions diode-core/shared/src/main/scala-2/diode/macros/GenLens.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ object GenLens {
*/
object SelectChain {
def unapply(tree: Tree): Option[(Name, Seq[(Type, TermName)])] = tree match {
case Select(tail @ Ident(termUseName), field: TermName) =>
Some((termUseName, Seq(tail.tpe.widen -> field)))
case Select(tail, field: TermName) =>
case Select(tail @ Ident(termUseName), termName: TermName) =>
Some((termUseName, Seq(tail.tpe.widen -> termName)))
case Select(tail, termName: TermName) =>
SelectChain
.unapply(tail)
.map(t => t.copy(_2 = t._2 :+ (tail.tpe.widen -> field)))
.map(t => t.copy(_2 = t._2 :+ (tail.tpe.widen -> termName)))
case _ => None
}
}
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.7.1
sbt.version=1.10.6
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
val scalaJSVersion = sys.env.getOrElse("SCALAJS_VERSION", "1.10.1")
val scalaJSVersion = sys.env.getOrElse("SCALAJS_VERSION", "1.17.0")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)

addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.2.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.3.2")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")

Expand Down

0 comments on commit fa029f9

Please sign in to comment.