Skip to content

Commit 387e710

Browse files
committed
Build for Scala 2.12.0
1 parent 5548ef9 commit 387e710

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sudo: false
33

44
scala:
55
- 2.11.8
6+
- 2.12.0
67

78
jdk:
89
- oraclejdk8

core/src/main/scala/japgolly/scalajs/react/Callback.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import CallbackTo.MapGuard
1616
*
1717
* @see CallbackTo
1818
*/
19-
object Callback {
19+
object Callback_TempHack {
2020
@implicitNotFound("You're wrapping a ${A} in a Callback which will discard without running it. Instead use CallbackTo(…).flatten or Callback{,To}.lazily(…).")
21-
final class ResultGuard[A] private[Callback]()
21+
final class ResultGuard[A] private[Callback_TempHack]()
2222
object ResultGuard {
23-
final class Proof[A] private[Callback]()
23+
final class Proof[A] private[Callback_TempHack]()
2424
object Proof {
2525
implicit def preventCallback1[A]: Proof[CallbackTo[A]] = ???
2626
implicit def preventCallback2[A]: Proof[CallbackTo[A]] = ???

core/src/main/scala/japgolly/scalajs/react/package.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ package object react extends ReactEventAliases {
1414

1515
type Callback = CallbackTo[Unit]
1616
type CallbackB = CallbackTo[Boolean]
17+
val Callback = Callback_TempHack
1718

1819
@deprecated("Use CompState.AccessD.", "0.10.2")
1920
type StateAccessDirect[S] = CompState.AccessD[S]

doc/changelog/0.11.3.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
* Generalize `ref(scope).tryFocus()` to `ref(scope).tryTo(HTMLElement => Unit)`.
44
* Upgrade Scala.JS to v0.6.13.
5-
* Upgrade SBT to 0.13.13.
5+
* Build for Scala 2.12.0.
6+
* Upgrade Monocle to 1.3.2.
7+
* Upgrade Scalaz to 7.2.7.

project/Build.scala

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ object ScalajsReact {
99

1010
object Ver {
1111
val Scala211 = "2.11.8"
12+
val Scala212 = "2.12.0"
1213
val ScalaJsDom = "0.9.1"
1314
val ReactJs = "15.3.2"
14-
val Monocle = "1.2.2"
15-
val Scalaz72 = "7.2.6"
16-
val MTest = "0.4.3"
15+
val Monocle = "1.3.2"
16+
val Scalaz72 = "7.2.7"
17+
val MTest = "0.4.4"
1718
val MacroParadise = "2.1.0"
1819
val SizzleJs = "2.3.0"
19-
val Nyaya = "0.7.2"
20+
val Nyaya = "0.8.1"
2021
}
2122

2223
type PE = Project => Project
@@ -30,7 +31,7 @@ object ScalajsReact {
3031
homepage := Some(url("https://github.com/japgolly/scalajs-react")),
3132
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")),
3233
scalaVersion := Ver.Scala211,
33-
// crossScalaVersions := Seq("2.10.4", Scala211), https://github.com/japgolly/scalajs-react/issues/39
34+
crossScalaVersions := Seq(Ver.Scala211, Ver.Scala212),
3435
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature",
3536
"-language:postfixOps", "-language:implicitConversions",
3637
"-language:higherKinds", "-language:existentials"),
@@ -123,8 +124,8 @@ object ScalajsReact {
123124
_.settings(
124125
scalacOptions += "-language:experimental.macros",
125126
libraryDependencies ++= Seq(
126-
"org.scala-lang" % "scala-reflect" % Ver.Scala211,
127-
"org.scala-lang" % "scala-compiler" % Ver.Scala211 % "provided"))
127+
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
128+
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided"))
128129

129130
def macroParadisePlugin =
130131
compilerPlugin("org.scalamacros" % "paradise" % Ver.MacroParadise cross CrossVersion.full)

0 commit comments

Comments
 (0)