Skip to content

Commit dee09be

Browse files
committed
Move experimental.Notification to dom.*.
1 parent a5b0afc commit dee09be

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

src/main/scala/org/scalajs/dom/experimental/Notification.scala renamed to src/main/scala/org/scalajs/dom/Notification.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
package org.scalajs.dom.experimental
1+
package org.scalajs.dom
22

33
import scala.scalajs.js
44
import scala.scalajs.js.annotation._
55

6-
import org.scalajs.dom.EventTarget
7-
86
@js.native
97
trait NotificationOptions extends js.Object {
108

src/main/scala/org/scalajs/dom/experimental/package.scala

+13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package org.scalajs.dom
33
import scala.scalajs.js
44
import scala.scalajs.js.|
55

6+
import org.scalajs.dom
7+
68
package object experimental {
79

810
/**
@@ -46,4 +48,15 @@ package object experimental {
4648
* API git repo, as this is not clearly defined
4749
*/
4850
type OpenEndedDictionary[T] = js.Dictionary[T]
51+
52+
// old Notification.scala
53+
54+
@deprecated("use dom.Notification instead", "2.0.0")
55+
type Notification = dom.Notification
56+
57+
@deprecated("use dom.Notification instead", "2.0.0")
58+
lazy val Notification: dom.Notification.type = dom.Notification
59+
60+
@deprecated("use dom.NotificationOptions instead", "2.0.0")
61+
type NotificationOptions = dom.NotificationOptions
4962
}

src/main/scala/org/scalajs/dom/experimental/serviceworkers/ServiceWorkers.scala

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import scala.scalajs.js.|
66

77
import org.scalajs.dom.{
88
ErrorEvent, Event, EventInit, EventTarget, MessageEvent, MessagePort,
9-
WorkerGlobalScope
10-
}
11-
import org.scalajs.dom.experimental.{
12-
Notification, NotificationOptions, Request, RequestInfo, Response, Sequence
9+
Notification, NotificationOptions, WorkerGlobalScope
1310
}
11+
import org.scalajs.dom.experimental.{Request, RequestInfo, Response, Sequence}
1412
import org.scalajs.dom.webgl.RenderingContext
1513

1614
@js.native

0 commit comments

Comments
 (0)