From 642c2c9d0e2122c3ae5e227f9d9f12560392824f Mon Sep 17 00:00:00 2001 From: Yongshun Shreck Ye Date: Thu, 14 Nov 2024 18:38:05 +0800 Subject: [PATCH] Bump Arrow to v2.0.0-beta.1 --- buildSrc/src/main/kotlin/VersionsAndDependencies.kt | 2 +- core/src/commonMain/kotlin/com/huanshankeji/InternalApi.kt | 4 ++++ .../src/main/kotlin/com/huanshankeji/exposed/Statements.kt | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 core/src/commonMain/kotlin/com/huanshankeji/InternalApi.kt diff --git a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt index 5c1775c..88b80a2 100644 --- a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt +++ b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt @@ -4,7 +4,7 @@ import com.huanshankeji.CommonVersions val projectVersion = "0.6.0-SNAPSHOT" -val commonVersions = CommonVersions(arrow = "2.0.0-alpha.4") // for Wasm JS +val commonVersions = CommonVersions(arrow = "2.0.0-beta.1") // for Wasm JS val commonDependencies = CommonDependencies(commonVersions) val commonGradleClasspathDependencies = CommonGradleClasspathDependencies(commonVersions) diff --git a/core/src/commonMain/kotlin/com/huanshankeji/InternalApi.kt b/core/src/commonMain/kotlin/com/huanshankeji/InternalApi.kt new file mode 100644 index 0000000..1698bd2 --- /dev/null +++ b/core/src/commonMain/kotlin/com/huanshankeji/InternalApi.kt @@ -0,0 +1,4 @@ +package com.huanshankeji + +@RequiresOptIn("This API is internal in Huanshankeji Kotlin Common and should not be used. It may be changed or removed in the future without notice.") +annotation class InternalApi \ No newline at end of file diff --git a/exposed/src/main/kotlin/com/huanshankeji/exposed/Statements.kt b/exposed/src/main/kotlin/com/huanshankeji/exposed/Statements.kt index d32e687..bddcfe7 100644 --- a/exposed/src/main/kotlin/com/huanshankeji/exposed/Statements.kt +++ b/exposed/src/main/kotlin/com/huanshankeji/exposed/Statements.kt @@ -1,9 +1,13 @@ +@file:OptIn(InternalApi::class) + package com.huanshankeji.exposed +import com.huanshankeji.InternalApi import org.jetbrains.exposed.sql.* import org.jetbrains.exposed.sql.statements.* -private const val SELECT_DSL_DEPRECATION_MESSAGE = +@InternalApi +const val SELECT_DSL_DEPRECATION_MESSAGE = "As part of Exposed SELECT DSL design changes, this will be removed in future releases." // The select queries are not executed eagerly so just use them directly.