diff --git a/CHANGELOG.md b/CHANGELOG.md index f8da494186c..1a7d29a3cd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 0.9.14 +* `Versions`: + * `Klock`: `2.6.2` -> `2.6.3` + * `Ktor`: `1.6.7` -> `1.6.8` * `Ktor`: * Add temporal files uploading functionality (for clients to upload and for server to receive) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 980aeb0c1a3..9490cefd914 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -8,10 +8,10 @@ jb-compose = "1.1.1" jb-exposed = "0.37.3" jb-dokka = "1.6.10" -klock = "2.6.2" +klock = "2.6.3" uuid = "0.4.0" -ktor = "1.6.7" +ktor = "1.6.8" gh-release = "2.2.12" diff --git a/ktor/common/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/common/TemporalFiles.kt b/ktor/common/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/common/TemporalFiles.kt index cabeffa5bdb..5398a9edf54 100644 --- a/ktor/common/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/common/TemporalFiles.kt +++ b/ktor/common/src/commonMain/kotlin/dev/inmo/micro_utils/ktor/common/TemporalFiles.kt @@ -1,8 +1,10 @@ package dev.inmo.micro_utils.ktor.common import kotlin.jvm.JvmInline +import kotlinx.serialization.Serializable const val DefaultTemporalFilesSubPath = "temp_upload" +@Serializable @JvmInline value class TemporalFileId(val string: String) diff --git a/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt b/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt index 5fd9357630e..a31acf31ea8 100644 --- a/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt +++ b/ktor/server/src/jvmMain/kotlin/dev/inmo/micro_utils/ktor/server/ServerRoutingShortcuts.kt @@ -94,7 +94,8 @@ class UnifiedRouter( } companion object { - val default = defaultUnifiedRouter + val default + get() = defaultUnifiedRouter } }