Skip to content

Upgrade Scala.js and Scala #535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
scalaversion: ["2.11.12", "2.12.12", "2.13.4", "3.0.1"]
scalaversion: ["2.11.12", "2.12.14", "2.13.6", "3.0.1"]
steps:

- uses: actions/checkout@v2
Expand Down
15 changes: 8 additions & 7 deletions api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ crypto/Pbkdf2Params[JT] var iterations: Double
crypto/Pbkdf2Params[JT] var name: String
crypto/Pbkdf2Params[JT] var salt: BufferSource
crypto/Pbkdf2Params[SO] def apply(name: String, salt: BufferSource, iterations: Long, hash: HashAlgorithmIdentifier): Pbkdf2Params
crypto/RSAPublicKey[JT] @js.native def e: String
crypto/RSAPublicKey[JT] @js.native def n: String
crypto/RSAPublicKey[JT] def e: String
crypto/RSAPublicKey[JT] def n: String
crypto/RsaHashedImportParams[JT] var hash: HashAlgorithmIdentifier
crypto/RsaHashedImportParams[JT] var name: String
crypto/RsaHashedImportParams[SO] def apply(name: String, hash: HashAlgorithmIdentifier): RsaHashedImportParams
Expand Down Expand Up @@ -2097,14 +2097,14 @@ ext/TouchEvents[JT] var ontouchstart: js.Function1[raw.TouchEvent, _]
ext/TouchEvents[SO] implicit def HTMLDocumentToTouchEvents(html: raw.HTMLDocument): TouchEvents
ext/TouchEvents[SO] implicit def WindowToTouchEvents(window: raw.Window): TouchEvents
ext/package[SO] def cast[T] = x.asInstanceOf[T]
ext/package[SO] implicit def color2String(c: Color) = c.toString
ext/package[SO] implicit def color2String(c: Color): String
ext/package[SO] def fillCircle(x: Double, y: Double, r: Double) = { prepCircle(x, y, r) ctx.fill() }
ext/package[SO] def fillPath(points: (Double, Double)*) = { prepPath(points) ctx.fill() }
ext/package[SO] implicit def pimpAnimatedLength(x: svg.AnimatedLength) = x.baseVal.value
ext/package[SO] implicit def pimpAnimatedNumber(x: svg.AnimatedNumber) = x.baseVal
ext/package[SO] implicit def pimpAnimatedLength(x: svg.AnimatedLength): Double
ext/package[SO] implicit def pimpAnimatedNumber(x: svg.AnimatedNumber): Double
ext/package[SO] implicit def pimpNamedNodeMap(namedNodeMap: NamedNodeMap): NamedNodeMapMap
ext/package[SO] implicit def pimpRichAnimatedLength(x: svg.AnimatedLength) = x.baseVal.value: runtime.RichDouble
ext/package[SO] implicit def pimpRichAnimatedNumber(x: svg.AnimatedNumber) = x.baseVal: runtime.RichDouble
ext/package[SO] implicit def pimpRichAnimatedLength(x: svg.AnimatedLength): runtime.RichDouble
ext/package[SO] implicit def pimpRichAnimatedNumber(x: svg.AnimatedNumber): runtime.RichDouble
ext/package[SO] def prepCircle(x: Double, y: Double, r: Double) = { ctx.beginPath() ctx.arc(x, y, r, 0, math.Pi * 2) }
ext/package[SO] def prepPath(points: Seq[(Double, Double)], closed: Boolean = true) = { ctx.beginPath() if (closed) ctx.moveTo(points.last._1, points.last._2) for (p <- points) { ctx.lineTo(p._1, p._2) } }
ext/package[SO] def strokeCircle(x: Double, y: Double, r: Double) = { prepCircle(x, y, r) ctx.stroke() }
Expand Down Expand Up @@ -24681,6 +24681,7 @@ raw/Window[JC] def cancelAnimationFrame(handle: Int): Unit
raw/Window[JC] def clearInterval(handle: Int): Unit
raw/Window[JC] def clearTimeout(handle: Int): Unit
raw/Window[JC] def close(): Unit
raw/Window[JC] def closed: Boolean
raw/Window[JC] def confirm(message: String?): Boolean
raw/Window[JC] var console: Console
raw/Window[JC] def createImageBitmap(image: CreateImageBitmapInput): js.Promise[ImageBitmap]
Expand Down
15 changes: 8 additions & 7 deletions api-reports/2_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ crypto/Pbkdf2Params[JT] var iterations: Double
crypto/Pbkdf2Params[JT] var name: String
crypto/Pbkdf2Params[JT] var salt: BufferSource
crypto/Pbkdf2Params[SO] def apply(name: String, salt: BufferSource, iterations: Long, hash: HashAlgorithmIdentifier): Pbkdf2Params
crypto/RSAPublicKey[JT] @js.native def e: String
crypto/RSAPublicKey[JT] @js.native def n: String
crypto/RSAPublicKey[JT] def e: String
crypto/RSAPublicKey[JT] def n: String
crypto/RsaHashedImportParams[JT] var hash: HashAlgorithmIdentifier
crypto/RsaHashedImportParams[JT] var name: String
crypto/RsaHashedImportParams[SO] def apply(name: String, hash: HashAlgorithmIdentifier): RsaHashedImportParams
Expand Down Expand Up @@ -2097,14 +2097,14 @@ ext/TouchEvents[JT] var ontouchstart: js.Function1[raw.TouchEvent, _]
ext/TouchEvents[SO] implicit def HTMLDocumentToTouchEvents(html: raw.HTMLDocument): TouchEvents
ext/TouchEvents[SO] implicit def WindowToTouchEvents(window: raw.Window): TouchEvents
ext/package[SO] def cast[T] = x.asInstanceOf[T]
ext/package[SO] implicit def color2String(c: Color) = c.toString
ext/package[SO] implicit def color2String(c: Color): String
ext/package[SO] def fillCircle(x: Double, y: Double, r: Double) = { prepCircle(x, y, r) ctx.fill() }
ext/package[SO] def fillPath(points: (Double, Double)*) = { prepPath(points) ctx.fill() }
ext/package[SO] implicit def pimpAnimatedLength(x: svg.AnimatedLength) = x.baseVal.value
ext/package[SO] implicit def pimpAnimatedNumber(x: svg.AnimatedNumber) = x.baseVal
ext/package[SO] implicit def pimpAnimatedLength(x: svg.AnimatedLength): Double
ext/package[SO] implicit def pimpAnimatedNumber(x: svg.AnimatedNumber): Double
ext/package[SO] implicit def pimpNamedNodeMap(namedNodeMap: NamedNodeMap): NamedNodeMapMap
ext/package[SO] implicit def pimpRichAnimatedLength(x: svg.AnimatedLength) = x.baseVal.value: runtime.RichDouble
ext/package[SO] implicit def pimpRichAnimatedNumber(x: svg.AnimatedNumber) = x.baseVal: runtime.RichDouble
ext/package[SO] implicit def pimpRichAnimatedLength(x: svg.AnimatedLength): runtime.RichDouble
ext/package[SO] implicit def pimpRichAnimatedNumber(x: svg.AnimatedNumber): runtime.RichDouble
ext/package[SO] def prepCircle(x: Double, y: Double, r: Double) = { ctx.beginPath() ctx.arc(x, y, r, 0, math.Pi * 2) }
ext/package[SO] def prepPath(points: Seq[(Double, Double)], closed: Boolean = true) = { ctx.beginPath() if (closed) ctx.moveTo(points.last._1, points.last._2) for (p <- points) { ctx.lineTo(p._1, p._2) } }
ext/package[SO] def strokeCircle(x: Double, y: Double, r: Double) = { prepCircle(x, y, r) ctx.stroke() }
Expand Down Expand Up @@ -24681,6 +24681,7 @@ raw/Window[JC] def cancelAnimationFrame(handle: Int): Unit
raw/Window[JC] def clearInterval(handle: Int): Unit
raw/Window[JC] def clearTimeout(handle: Int): Unit
raw/Window[JC] def close(): Unit
raw/Window[JC] def closed: Boolean
raw/Window[JC] def confirm(message: String?): Boolean
raw/Window[JC] var console: Console
raw/Window[JC] def createImageBitmap(image: CreateImageBitmapInput): js.Promise[ImageBitmap]
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ lazy val root = project

name := "Scala.js DOM"

ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.12", "2.13.4", "3.0.1")
ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.14", "2.13.6", "3.0.1")
ThisBuild / scalaVersion := crossScalaVersions.value.find(_.startsWith("2.13.")).get

val inCI = Option(System.getenv("CI")).exists(_.contains("1"))
Expand Down
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.5.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1")

addSbtPlugin("com.lihaoyi" % "scalatex-sbt-plugin" % "0.3.11")

Expand Down