Advance kotlin.browser and kotlin.dom packages deprecation level to ERROR #KT-39330
This commit is contained in:
committed by
Space
parent
93833f7db2
commit
9a5a3bfdfb
@@ -13,7 +13,7 @@ import kotlin.internal.LowPriorityInOverloadResolution
|
||||
replaceWith = ReplaceWith("window", "kotlinx.browser.window")
|
||||
)
|
||||
@LowPriorityInOverloadResolution
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public external val window: Window
|
||||
|
||||
@Deprecated(
|
||||
@@ -21,7 +21,7 @@ public external val window: Window
|
||||
replaceWith = ReplaceWith("document", "kotlinx.browser.document")
|
||||
)
|
||||
@LowPriorityInOverloadResolution
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public external val document: Document
|
||||
|
||||
@Deprecated(
|
||||
@@ -29,7 +29,7 @@ public external val document: Document
|
||||
replaceWith = ReplaceWith("localStorage", "kotlinx.browser.localStorage")
|
||||
)
|
||||
@LowPriorityInOverloadResolution
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public external val localStorage: Storage
|
||||
|
||||
@Deprecated(
|
||||
@@ -37,6 +37,6 @@ public external val localStorage: Storage
|
||||
replaceWith = ReplaceWith("sessionStorage", "kotlinx.browser.sessionStorage")
|
||||
)
|
||||
@LowPriorityInOverloadResolution
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public external val sessionStorage: Storage
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import kotlinx.dom.createElement as newCreateElement
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.createElement' instead.",
|
||||
replaceWith = ReplaceWith("this.createElement(name, init)", "kotlinx.dom.createElement")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public inline fun Document.createElement(name: String, noinline init: Element.() -> Unit): Element = this.newCreateElement(name, init)
|
||||
|
||||
/**
|
||||
@@ -34,6 +34,6 @@ public inline fun Document.createElement(name: String, noinline init: Element.()
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.appendElement' instead.",
|
||||
replaceWith = ReplaceWith("this.appendElement(name, init)", "kotlinx.dom.appendElement")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public inline fun Element.appendElement(name: String, noinline init: Element.() -> Unit): Element = this.newAppendElement(name, init)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import kotlinx.dom.removeClass as newRemoveClass
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.hasClass' instead.",
|
||||
replaceWith = ReplaceWith("this.hasClass(cssClass)", "kotlinx.dom.hasClass")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
inline fun Element.hasClass(cssClass: String): Boolean = this.newHasClass(cssClass)
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ inline fun Element.hasClass(cssClass: String): Boolean = this.newHasClass(cssCla
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.addClass' instead.",
|
||||
replaceWith = ReplaceWith("this.addClass(cssClasses)", "kotlinx.dom.addClass")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
inline fun Element.addClass(vararg cssClasses: String): Boolean = this.newAddClass(*cssClasses)
|
||||
|
||||
/**
|
||||
@@ -43,5 +43,5 @@ inline fun Element.addClass(vararg cssClasses: String): Boolean = this.newAddCla
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.removeClass' instead.",
|
||||
replaceWith = ReplaceWith("this.removeClass(cssClasses)", "kotlinx.dom.removeClass")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
inline fun Element.removeClass(vararg cssClasses: String): Boolean = this.newRemoveClass(*cssClasses)
|
||||
@@ -19,7 +19,7 @@ import kotlinx.dom.isText as newIsText
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.isText' instead.",
|
||||
replaceWith = ReplaceWith("this.isText", "kotlinx.dom.isText")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public val Node.isText: Boolean
|
||||
inline get() = this.newIsText
|
||||
|
||||
@@ -31,6 +31,6 @@ public val Node.isText: Boolean
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.isElement' instead.",
|
||||
replaceWith = ReplaceWith("this.isElement", "kotlinx.dom.isElement")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public val Node.isElement: Boolean
|
||||
inline get() = this.newIsElement
|
||||
|
||||
@@ -17,7 +17,7 @@ import kotlinx.dom.clear as newClear
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.clear' instead.",
|
||||
replaceWith = ReplaceWith("this.clear()", "kotlinx.dom.clear")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
public inline fun Node.clear() = this.newClear()
|
||||
|
||||
/**
|
||||
@@ -30,5 +30,5 @@ public inline fun Node.clear() = this.newClear()
|
||||
message = "This API is moved to another package, use 'kotlinx.dom.appendText' instead.",
|
||||
replaceWith = ReplaceWith("this.appendText(text)", "kotlinx.dom.appendText")
|
||||
)
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
|
||||
inline fun Element.appendText(text: String): Element = this.newAppendText(text)
|
||||
|
||||
Reference in New Issue
Block a user