File tree 2 files changed +9
-3
lines changed
src/main/scala/org/scalajs/dom/ext
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ import scala.scalajs.js.typedarray.ArrayBufferView
10
10
import scala .scalajs .js .typedarray .TypedArrayBufferOps ._
11
11
12
12
/** Wraps an XMLHttpRequest to provide an easy one-line way of making an Ajax call, returning a Future. */
13
- @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
13
+ @ deprecated(
14
+ " scalajs-dom no longer includes custom utilities, only facades. Try using dom.fetch API which doesn't require additional utilities." ,
15
+ " 2.0.0" )
14
16
object Ajax {
15
17
16
18
/** Supported data formats for Ajax are implicitly converted to InputData */
Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import org.scalajs.dom
5
5
/** Thrown when `Ajax.get` or `Ajax.post` receives a non-20X response code. Contains the XMLHttpRequest that resulted in
6
6
* that response
7
7
*/
8
- @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
8
+ @ deprecated(
9
+ " scalajs-dom no longer includes custom utilities, only facades. Try using dom.fetch API which doesn't require additional utilities." ,
10
+ " 2.0.0" )
9
11
case class AjaxException (xhr : dom.XMLHttpRequest ) extends Exception {
10
12
def isTimeout : Boolean = xhr.status == 0 && xhr.readyState == 4
11
13
}
12
14
13
15
// This is just there to work around some weird warnings in Scala 3.x
14
- @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
16
+ @ deprecated(
17
+ " scalajs-dom no longer includes custom utilities, only facades. Try using dom.fetch API which doesn't require additional utilities." ,
18
+ " 2.0.0" )
15
19
object AjaxException extends (dom.XMLHttpRequest => AjaxException )
You can’t perform that action at this time.
0 commit comments