Skip to content
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
1 change: 1 addition & 0 deletions api-reports/2_12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25954,6 +25954,7 @@ package[SO] @js.native @JSGlobal("console") val console: Console
package[SO] lazy val css: DeprecatedCSSAliases.type (@deprecated in 2.0.0)
package[SO] @js.native @JSGlobal("document") val document: html.Document
package[SO] @js.native @JSGlobal("fetch") def fetch(info: RequestInfo, init: RequestInit = null): js.Promise[Response]
package[SO] @js.native @JSGlobal("crypto") val webcrypto: Crypto
package[SO] @js.native @JSGlobal("window") val window: Window
raw[SO] type AbstractWorker = dom.AbstractWorker (@deprecated in 2.0.0)
raw[SO] type AnalyserNode = dom.AnalyserNode (@deprecated in 2.0.0)
Expand Down
1 change: 1 addition & 0 deletions api-reports/2_13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25954,6 +25954,7 @@ package[SO] @js.native @JSGlobal("console") val console: Console
package[SO] lazy val css: DeprecatedCSSAliases.type (@deprecated in 2.0.0)
package[SO] @js.native @JSGlobal("document") val document: html.Document
package[SO] @js.native @JSGlobal("fetch") def fetch(info: RequestInfo, init: RequestInit = null): js.Promise[Response]
package[SO] @js.native @JSGlobal("crypto") val webcrypto: Crypto
package[SO] @js.native @JSGlobal("window") val window: Window
raw[SO] type AbstractWorker = dom.AbstractWorker (@deprecated in 2.0.0)
raw[SO] type AnalyserNode = dom.AnalyserNode (@deprecated in 2.0.0)
Expand Down
8 changes: 8 additions & 0 deletions src/main/scala/org/scalajs/dom/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,12 @@ package object dom {
*/
type HashAlgorithmIdentifier = HashAlgorithm | String

/** This is the same as `crypto` in JS.
*
* To maintain backwards-source-compatibility with scala-js-dom v1, `crypto` in scala-js-dom is retained as a package
* object.
*/
@js.native
@JSGlobal("crypto")
val webcrypto: Crypto = js.native
}