Skip to content

Commit

Permalink
Update to sjs-dom 2.0.0 final (#511)
Browse files Browse the repository at this point in the history
* Update to sjs-dom 2.0.0-RC1

* Formatting

* Bump to sjs-dom 2.0.0 final
  • Loading branch information
armanbilge authored Oct 23, 2021
1 parent 7dc8b6d commit b1dd3f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sbt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
scalajs: ["0.6.33", "1.0.0"]
scalajs: ["0.6.33", "1.5.1"]
es2015_enabled: ["false", "true"]
steps:
- name: Configure git to disable Windows line feeds
Expand Down
7 changes: 6 additions & 1 deletion history/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ enablePlugins(ScalaJSPlugin)

name := "slinky-history"

libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "1.1.0"
libraryDependencies += {
if (scalaJSVersion.startsWith("0.6."))
"org.scala-js" %%% "scalajs-dom" % "1.1.0"
else
"org.scala-js" %%% "scalajs-dom" % "2.0.0"
}

scalacOptions ++= {
if (scalaJSVersion.startsWith("0.6.")) Seq("-P:scalajs:sjsDefinedByDefault")
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ libraryDependencies ++= {

{
if (scalaJSVersion.startsWith("0.6.")) addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler-sjs06" % "0.19.0")
else Seq(addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.17.0"))
else Seq(addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.20.0"))
}

libraryDependencies ++= {
Expand Down
7 changes: 6 additions & 1 deletion web/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ enablePlugins(ScalaJSPlugin)

name := "slinky-web"

libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "1.0.0"
libraryDependencies += {
if (scalaJSVersion.startsWith("0.6."))
"org.scala-js" %%% "scalajs-dom" % "1.0.0"
else
"org.scala-js" %%% "scalajs-dom" % "2.0.0"
}

scalacOptions -= "-Xfatal-warnings"

0 comments on commit b1dd3f4

Please sign in to comment.