Skip to content

Commit 2653a44

Browse files
authored
Update dependencies (#192)
1 parent bce68b7 commit 2653a44

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
build:
1818
strategy:
1919
matrix:
20-
scalaVersion: ["2.13.12", "3.3.1"]
20+
scalaVersion: ["2.13.15", "3.5.2"]
2121
runs-on: ubuntu-22.04
2222

2323
steps:

build.sbt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Global / onChangedBuildSource := IgnoreSourceChanges // not working well with we
22

33
name := "Formidable"
44
ThisBuild / organization := "com.github.fdietze"
5-
ThisBuild / crossScalaVersions := Seq("2.13.12", "3.3.1")
6-
ThisBuild / scalaVersion := "2.13.12"
5+
ThisBuild / crossScalaVersions := Seq("2.13.15", "3.5.2")
6+
ThisBuild / scalaVersion := crossScalaVersions.value.head
77

88
inThisBuild(
99
List(
@@ -14,7 +14,7 @@ inThisBuild(
1414
Developer(
1515
"fdietze",
1616
"Felix Dietze",
17-
"mail@felx.me",
17+
"github@felx.me",
1818
url("https://github.com/fdietze"),
1919
)
2020
),
@@ -56,7 +56,6 @@ lazy val commonSettings = Seq(
5656
scalacOptions ++= (if (isScala3.value) Nil
5757
else Seq("-Vimplicits", "-Vtype-diffs")), // better error messages for implicit resolution
5858
scalacOptions ++= (if (isScala3.value) Seq("-Yretain-trees") else Nil), // recursive data structures with Scala 3
59-
scalacOptions ++= (if (isScala3.value) Seq("-scalajs") else Nil), // needed for Scala3 + ScalaJS
6059
)
6160

6261
lazy val formidable = project

formidable/src/main/scala-3/Form-Scala3.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trait FormDerivation extends AutoDerivation[Form] {
2121
ctx.params
2222
.zip(subStates)
2323
.map { case (param, subState) =>
24-
val subForm = (param.typeclass.render _).asInstanceOf[(Var[Any], FormConfig) => VMod]
24+
val subForm = (param.typeclass.render).asInstanceOf[(Var[Any], FormConfig) => VMod]
2525
val label = param.annotations.collectFirst { case Label(l) => l }.getOrElse(param.label + ":")
2626
label -> subForm(subState, config)
2727
}
@@ -36,16 +36,16 @@ trait FormDerivation extends AutoDerivation[Form] {
3636
defaultSubtype.typeclass.default
3737
}
3838
override def render(selectedValue: Var[T], config: FormConfig): VMod = {
39-
val selectedSubtype: Var[SealedTrait.Subtype[Form, T, _]] =
40-
selectedValue.imap[SealedTrait.Subtype[Form, T, _]](subType => subType.typeclass.default)(value =>
39+
val selectedSubtype: Var[SealedTrait.Subtype[Form, T, ?]] =
40+
selectedValue.imap[SealedTrait.Subtype[Form, T, ?]](subType => subType.typeclass.default)(value =>
4141
ctx.choose(value)(_.subtype)
4242
)
4343

4444
def labelForSubtype[Type, SType](subtype: SealedTrait.Subtype[Form, Type, SType]): String =
4545
subtype.annotations.collectFirst { case Label(l) => l }.getOrElse(subtype.typeInfo.short)
4646

4747
config.unionSubform(
48-
config.selectInput[SealedTrait.Subtype[Form, T, _]](
48+
config.selectInput[SealedTrait.Subtype[Form, T, ?]](
4949
options = ctx.subtypes,
5050
selectedValue = selectedSubtype,
5151
show = labelForSubtype,

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.9.6
1+
sbt.version=1.9.9

project/plugins.sbt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.17.0")
22
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.1")
33

4-
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.1")
5-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
4+
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
5+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
66

77
// for reading npmDependencies from package.json
8-
libraryDependencies ++= Seq("com.lihaoyi" %% "upickle" % "4.0.2")
8+
libraryDependencies ++= Seq("com.lihaoyi" %% "upickle" % "3.3.1")
99

10-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
10+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.9.0")

0 commit comments

Comments
 (0)