Skip to content

Commit 60a6b59

Browse files
committed
Merge branch 'master' into HEAD
2 parents 00dccef + b613096 commit 60a6b59

File tree

275 files changed

+5031
-3123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+5031
-3123
lines changed

api-reports/2_12.txt

+1,488-1,283
Large diffs are not rendered by default.

api-reports/2_13.txt

+1,488-1,283
Large diffs are not rendered by default.

project/Lib.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ object Lib {
1414
"-deprecation",
1515
"-feature",
1616
),
17-
scalacOptions ++= (if (!inCI) Seq.empty else Seq(
17+
scalacOptions ++= (if (!inCI || CrossVersion.partialVersion(scalaVersion.value).contains(2, 11)) Seq.empty else Seq(
1818
"-Xfatal-warnings",
1919
)),
2020
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "1.1.1"
33

44
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.31")
55
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
6-
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.9")
6+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
77
addSbtPlugin("com.lihaoyi" % "scalatex-sbt-plugin" % "0.3.11")
88
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1")
99
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
@js.native
6+
sealed trait AppendMode extends js.Any
7+
8+
object AppendMode {
9+
val segments: AppendMode = "segments".asInstanceOf[AppendMode]
10+
val sequence: AppendMode = "sequence".asInstanceOf[AppendMode]
11+
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.experimental.serviceworkers
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
@js.native
6+
sealed trait EndOfStreamError extends js.Any
7+
8+
object EndOfStreamError {
9+
val decode: EndOfStreamError = "decode".asInstanceOf[EndOfStreamError]
10+
val network: EndOfStreamError = "network".asInstanceOf[EndOfStreamError]
11+
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.experimental.serviceworkers
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

src/main/scala/org/scalajs/dom/IDBCursorDirection.scala renamed to src/main/scala-2/org/scalajs/dom/IDBCursorDirection.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ object IDBCursorDirection {
1616
/** The cursor shows all records, including duplicates. It starts at the upper bound of the key range and moves
1717
* downwards (monotonically decreasing in the order of keys).
1818
*/
19-
@inline def prev: IDBCursorDirection = "prev".asInstanceOf[IDBCursorDirection]
19+
val prev: IDBCursorDirection = "prev".asInstanceOf[IDBCursorDirection]
2020

2121
/** The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first
2222
* one iterated is retrieved. It starts at the upper bound of the key range and moves downwards.
2323
*/
24-
@inline def prevunique: IDBCursorDirection = "prevunique".asInstanceOf[IDBCursorDirection]
24+
val prevunique: IDBCursorDirection = "prevunique".asInstanceOf[IDBCursorDirection]
2525

2626
/** The cursor shows all records, including duplicates. It starts at the lower bound of the key range and moves
2727
* upwards (monotonically increasing in the order of keys).
2828
*/
29-
@inline def next: IDBCursorDirection = "next".asInstanceOf[IDBCursorDirection]
29+
val next: IDBCursorDirection = "next".asInstanceOf[IDBCursorDirection]
3030

3131
/** The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first
3232
* one iterated is retrieved. It starts at the lower bound of the key range and moves upwards.
3333
*/
34-
@inline def nextunique: IDBCursorDirection = "nextunique".asInstanceOf[IDBCursorDirection]
34+
val nextunique: IDBCursorDirection = "nextunique".asInstanceOf[IDBCursorDirection]
3535
}

src/main/scala/org/scalajs/dom/IDBTransactionDurability.scala renamed to src/main/scala-2/org/scalajs/dom/IDBTransactionDurability.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import scala.scalajs.js
1212
sealed trait IDBTransactionDurability extends js.Any
1313

1414
object IDBTransactionDurability {
15-
@inline def default: IDBTransactionDurability = "default".asInstanceOf[IDBTransactionDurability]
16-
@inline def strict: IDBTransactionDurability = "strict".asInstanceOf[IDBTransactionDurability]
17-
@inline def relaxed: IDBTransactionDurability = "relaxed".asInstanceOf[IDBTransactionDurability]
15+
val default: IDBTransactionDurability = "default".asInstanceOf[IDBTransactionDurability]
16+
val strict: IDBTransactionDurability = "strict".asInstanceOf[IDBTransactionDurability]
17+
val relaxed: IDBTransactionDurability = "relaxed".asInstanceOf[IDBTransactionDurability]
1818
}

src/main/scala/org/scalajs/dom/IDBTransactionMode.scala renamed to src/main/scala-2/org/scalajs/dom/IDBTransactionMode.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ sealed trait IDBTransactionMode extends js.Any
1717
object IDBTransactionMode {
1818

1919
/** Allows data to be read but not changed. It is the default transaction mode. */
20-
@inline def readonly: IDBTransactionMode = "readonly".asInstanceOf[IDBTransactionMode]
20+
val readonly: IDBTransactionMode = "readonly".asInstanceOf[IDBTransactionMode]
2121

2222
/** Allows any operation to be performed, including ones that delete and create object stores and indexes. This mode
2323
* is for updating the version number of transactions that were started using the setVersion() method of IDBDatabase
2424
* objects. Transactions of this mode cannot run concurrently with other transactions.
2525
*/
26-
@inline def versionchange: IDBTransactionMode = "versionchange".asInstanceOf[IDBTransactionMode]
26+
val versionchange: IDBTransactionMode = "versionchange".asInstanceOf[IDBTransactionMode]
2727

2828
/** Allows reading and writing of data in existing data stores to be changed. */
29-
@inline def readwrite: IDBTransactionMode = "readwrite".asInstanceOf[IDBTransactionMode]
29+
val readwrite: IDBTransactionMode = "readwrite".asInstanceOf[IDBTransactionMode]
3030
}

src/main/scala/org/scalajs/dom/crypto/KeyFormat.scala renamed to src/main/scala-2/org/scalajs/dom/KeyFormat.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.crypto
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

src/main/scala/org/scalajs/dom/crypto/KeyType.scala renamed to src/main/scala-2/org/scalajs/dom/KeyType.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.crypto
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

src/main/scala/org/scalajs/dom/crypto/KeyUsage.scala renamed to src/main/scala-2/org/scalajs/dom/KeyUsage.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.crypto
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */
2-
package org.scalajs.dom.experimental.mediastream
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */
2-
package org.scalajs.dom.experimental.mediastream
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
@js.native
6+
sealed trait PermissionName extends js.Any
7+
8+
object PermissionName {
9+
val geolocation: PermissionName = "geolocation".asInstanceOf[PermissionName]
10+
val midi: PermissionName = "midi".asInstanceOf[PermissionName]
11+
val notifications: PermissionName = "notifications".asInstanceOf[PermissionName]
12+
val push: PermissionName = "push".asInstanceOf[PermissionName]
13+
14+
val `persistent-storage` =
15+
"persistent-storage".asInstanceOf[PermissionName]
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
@js.native
6+
sealed trait PermissionState extends js.Any
7+
8+
object PermissionState {
9+
val granted: PermissionState = "granted".asInstanceOf[PermissionState]
10+
val denied: PermissionState = "denied".asInstanceOf[PermissionState]
11+
val prompt: PermissionState = "prompt".asInstanceOf[PermissionState]
12+
}

src/main/scala/org/scalajs/dom/experimental/push/PushEncryptionKeyName.scala renamed to src/main/scala-2/org/scalajs/dom/PushEncryptionKeyName.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.experimental.push
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

src/main/scala/org/scalajs/dom/experimental/push/PushPermissionState.scala renamed to src/main/scala-2/org/scalajs/dom/PushPermissionState.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.experimental.push
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCBundlePolicy.scala renamed to src/main/scala-2/org/scalajs/dom/RTCBundlePolicy.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCDataChannelState.scala renamed to src/main/scala-2/org/scalajs/dom/RTCDataChannelState.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCIceConnectionState.scala renamed to src/main/scala-2/org/scalajs/dom/RTCIceConnectionState.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCIceGatheringState.scala renamed to src/main/scala-2/org/scalajs/dom/RTCIceGatheringState.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCIceTransportPolicy.scala renamed to src/main/scala-2/org/scalajs/dom/RTCIceTransportPolicy.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCSdpType.scala renamed to src/main/scala-2/org/scalajs/dom/RTCSdpType.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCSignalingState.scala renamed to src/main/scala-2/org/scalajs/dom/RTCSignalingState.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

src/main/scala/org/scalajs/dom/experimental/webrtc/RTCStatsType.scala renamed to src/main/scala-2/org/scalajs/dom/RTCStatsType.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */
2-
package org.scalajs.dom.experimental.webrtc
2+
package org.scalajs.dom
33

44
import scala.scalajs.js
55

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
@js.native
6+
sealed trait ReadyState extends js.Any
7+
8+
object ReadyState {
9+
val closed: ReadyState = "closed".asInstanceOf[ReadyState]
10+
val ended: ReadyState = "ended".asInstanceOf[ReadyState]
11+
val open: ReadyState = "open".asInstanceOf[ReadyState]
12+
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.scalajs.dom.experimental.serviceworkers
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
@js.native
6+
sealed trait TextTrackMode extends js.Any
7+
8+
object TextTrackMode {
9+
val disabled: TextTrackMode = "disabled".asInstanceOf[TextTrackMode]
10+
val hidden: TextTrackMode = "hidden".asInstanceOf[TextTrackMode]
11+
val showing: TextTrackMode = "showing".asInstanceOf[TextTrackMode]
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package org.scalajs.dom
2+
3+
opaque type AppendMode = String
4+
5+
object AppendMode {
6+
val segments: AppendMode = "segments"
7+
val sequence: AppendMode = "sequence"
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
opaque type ClientType = String
6+
7+
object ClientType {
8+
val window: ClientType = "window"
9+
10+
val worker: ClientType = "worker"
11+
12+
val sharedworker: ClientType = "sharedworker"
13+
14+
val all: ClientType = "all"
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package org.scalajs.dom
2+
3+
opaque type EndOfStreamError = String
4+
5+
object EndOfStreamError {
6+
val decode: EndOfStreamError = "decode"
7+
val network: EndOfStreamError = "network"
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package org.scalajs.dom
2+
3+
import scala.scalajs.js
4+
5+
opaque type FrameType = String
6+
7+
/** part of ServiceWorker
8+
* [[https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/#client-frametype ¶4.2.2 frameType]] of
9+
* serviceWorker spec
10+
*/
11+
object FrameType {
12+
13+
/** The window client's global object's browsing context is an auxiliary browsing context. */
14+
val auxiliary: FrameType = "auxiliary"
15+
16+
/** The window client's global object's browsing context is a top-level browsing context. */
17+
val `top-level`: FrameType = "top-level"
18+
19+
/** The window client's global object's browsing context is a nested browsing context. */
20+
val nested: FrameType = "nested"
21+
22+
val none: FrameType = "none"
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API
2+
* and available under the Creative Commons Attribution-ShareAlike v2.5 or later.
3+
* http://creativecommons.org/licenses/by-sa/2.5/
4+
*
5+
* Everything else is under the MIT License http://opensource.org/licenses/MIT
6+
*/
7+
package org.scalajs.dom
8+
9+
import scala.scalajs.js
10+
11+
opaque type IDBCursorDirection = js.Any
12+
13+
object IDBCursorDirection {
14+
15+
/** The cursor shows all records, including duplicates. It starts at the upper bound of the key range and moves
16+
* downwards (monotonically decreasing in the order of keys).
17+
*/
18+
val prev: IDBCursorDirection = "prev"
19+
20+
/** The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first
21+
* one iterated is retrieved. It starts at the upper bound of the key range and moves downwards.
22+
*/
23+
val prevunique: IDBCursorDirection = "prevunique"
24+
25+
/** The cursor shows all records, including duplicates. It starts at the lower bound of the key range and moves
26+
* upwards (monotonically increasing in the order of keys).
27+
*/
28+
val next: IDBCursorDirection = "next"
29+
30+
/** The cursor shows all records, excluding duplicates. If multiple records exist with the same key, only the first
31+
* one iterated is retrieved. It starts at the lower bound of the key range and moves upwards.
32+
*/
33+
val nextunique: IDBCursorDirection = "nextunique"
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API
2+
* and available under the Creative Commons Attribution-ShareAlike v2.5 or later.
3+
* http://creativecommons.org/licenses/by-sa/2.5/
4+
*
5+
* Everything else is under the MIT License http://opensource.org/licenses/MIT
6+
*/
7+
package org.scalajs.dom
8+
9+
import scala.scalajs.js
10+
11+
opaque type IDBTransactionDurability = String
12+
13+
object IDBTransactionDurability {
14+
val default: IDBTransactionDurability = "default"
15+
val strict: IDBTransactionDurability = "strict"
16+
val relaxed: IDBTransactionDurability = "relaxed"
17+
}

0 commit comments

Comments
 (0)