summaryrefslogtreecommitdiff
path: root/ir/src/main/scala/scala/scalajs/ir/ScalaJSVersions.scala
blob: 2690939bc86d4e7768f68bcdda82c3d62df169b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package scala.scalajs.ir

object ScalaJSVersions {

  /** the Scala.js version of this build */
  final val current = "0.6.0-SNAPSHOT"

  /** true iff the Scala.js version of this build is a snapshot version. */
  final val currentIsSnapshot = current endsWith "-SNAPSHOT"

  /** Version of binary IR this Scala.js version emits
   *
   *  This should be either of:
   *  - a prior release version (i.e. "0.5.0", *not* "0.5.0-SNAPSHOT")
   *  - `current`
   */
  final val binaryEmitted = current

  /** Versions whose binary files we can support (used by deserializer) */
  val binarySupported: Set[String] = Set(binaryEmitted)

  // Just to be extra safe
  assert(binarySupported contains binaryEmitted)

}