diff --git a/build.gradle b/build.gradle index 1eca4523..76b3f28a 100644 --- a/build.gradle +++ b/build.gradle @@ -53,10 +53,10 @@ afterEvaluate { } dependencies { - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4' implementation 'com.squareup.okhttp3:okhttp:4.10.0' implementation 'com.squareup.okio:okio:3.2.0' - implementation 'org.jsoup:jsoup:1.15.1' + implementation 'org.jsoup:jsoup:1.15.2' implementation 'org.json:json:20220320' implementation 'androidx.collection:collection-ktx:1.2.0' @@ -65,7 +65,7 @@ dependencies { testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2' testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2' testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2' - testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.3' + testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4' testImplementation 'io.webfolder:quickjs:1.1.0' } diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/Jsoup.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/Jsoup.kt index a88de519..b4c0d1db 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/Jsoup.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/Jsoup.kt @@ -90,6 +90,7 @@ fun Element.styleValueOrNull(property: String): String? { return css.substringAfter(':').removeSuffix(';').trim() } +@Deprecated("Now implemented in Jsoup", ReplaceWith("expectFirst(cssQuery)")) fun Element.selectFirstOrThrow(cssQuery: String): Element { return Selector.selectFirst(cssQuery, this) ?: throw ParseException("Cannot find \"$cssQuery\"") }