Increase deprecation level for previously deprecated API
- unsupported common exceptions - common 'synchronized' - jquery API - experimental kotlin.time API - js Math object - DefaultAsserter constructor-like fun
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
@file: Suppress("DEPRECATION")
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file: Suppress("DEPRECATION_ERROR")
|
||||
package jquery
|
||||
|
||||
import org.w3c.dom.Element
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public external class JQuery() {
|
||||
public fun addClass(className: String): JQuery
|
||||
public fun addClass(f: (Int, String) -> String): JQuery
|
||||
@@ -44,7 +49,7 @@ public external class JQuery() {
|
||||
public fun `val`(): String?
|
||||
}
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
open public external class MouseEvent() {
|
||||
public val pageX: Double
|
||||
public val pageY: Double
|
||||
@@ -52,26 +57,26 @@ open public external class MouseEvent() {
|
||||
public fun isDefaultPrevented(): Boolean
|
||||
}
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public external class MouseClickEvent() : MouseEvent {
|
||||
public val which: Int
|
||||
}
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
@JsName("$")
|
||||
public external fun jq(selector: String): JQuery
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
@JsName("$")
|
||||
public external fun jq(selector: String, context: Element): JQuery
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
@JsName("$")
|
||||
public external fun jq(callback: () -> Unit): JQuery
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
@JsName("$")
|
||||
public external fun jq(obj: JQuery): JQuery
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
@JsName("$")
|
||||
public external fun jq(el: Element): JQuery
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
@JsName("$")
|
||||
public external fun jq(): JQuery
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
@file: Suppress("DEPRECATION")
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file: Suppress("DEPRECATION_ERROR")
|
||||
package jquery.ui
|
||||
|
||||
|
||||
@@ -6,32 +11,32 @@ package jquery.ui
|
||||
import jquery.JQuery
|
||||
import kotlin.js.Json
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.buttonset(): JQuery = asDynamic().buttonset()
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.dialog(): JQuery = asDynamic().dialog()
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.dialog(params: Json): JQuery = asDynamic().dialog(params)
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.dialog(mode: String, param: String): Any? = asDynamic().dialog(mode, param)
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.dialog(mode: String): JQuery = asDynamic().dialog(mode)
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.dialog(mode: String, param: String, value: Any?): JQuery = asDynamic().dialog(mode, param, value)
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.button(): JQuery = asDynamic().button()
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.accordion(): JQuery = asDynamic().accordion()
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.draggable(params: Json): JQuery = asDynamic().draggable(params)
|
||||
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.")
|
||||
@Deprecated("Use declarations from 'https://bintray.com/kotlin/js-externals/kotlin-js-jquery' package instead.", level = DeprecationLevel.ERROR)
|
||||
public inline fun JQuery.selectable(): JQuery = asDynamic().selectable()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -8,11 +8,11 @@ package kotlin.js
|
||||
/**
|
||||
* Exposes the JavaScript [Math object](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Math) to Kotlin.
|
||||
*/
|
||||
@Deprecated("Use top-level functions from kotlin.math package instead.", level = DeprecationLevel.WARNING)
|
||||
@Deprecated("Use top-level functions from kotlin.math package instead.", level = DeprecationLevel.ERROR)
|
||||
public external object Math {
|
||||
@Deprecated("Use kotlin.math.PI instead.", ReplaceWith("PI", "kotlin.math.PI"), level = DeprecationLevel.ERROR)
|
||||
public val PI: Double
|
||||
@Deprecated("Use Random.nextDouble instead", ReplaceWith("kotlin.random.Random.nextDouble()", "kotlin.random.Random"), level = DeprecationLevel.WARNING)
|
||||
@Deprecated("Use Random.nextDouble instead", ReplaceWith("kotlin.random.Random.nextDouble()", "kotlin.random.Random"), level = DeprecationLevel.ERROR)
|
||||
public fun random(): Double
|
||||
@Deprecated("Use kotlin.math.abs instead.", ReplaceWith("abs(value)", "kotlin.math.abs"), level = DeprecationLevel.ERROR)
|
||||
public fun abs(value: Double): Double
|
||||
@@ -95,13 +95,13 @@ public external object Math {
|
||||
/**
|
||||
* Returns the smaller of two values.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
@Deprecated("Use minOf or kotlin.math.min instead", ReplaceWith("minOf(a, b)"), level = DeprecationLevel.ERROR)
|
||||
public fun Math.min(a: Long, b: Long): Long = if (a <= b) a else b
|
||||
|
||||
/**
|
||||
* Returns the greater of two values.
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
@Deprecated("Use maxOf or kotlin.math.max instead", ReplaceWith("maxOf(a, b)"), level = DeprecationLevel.ERROR)
|
||||
public fun Math.max(a: Long, b: Long): Long = if (a >= b) a else b
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
@file:Suppress("DEPRECATION", "DEPRECATION_ERROR")
|
||||
@file:Suppress("DEPRECATION_ERROR")
|
||||
package kotlin.math
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@@ -59,7 +59,7 @@ public actual fun Int.countOneBits(): Int {
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@Suppress("DEPRECATION")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
@kotlin.internal.InlineOnly
|
||||
public actual inline fun Int.countLeadingZeroBits(): Int = kotlin.js.Math.clz32(this)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user