From 79ddfaf9bda6218e5d35a6b1b2d4ee2fb187682d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 2 Jan 2022 12:34:12 +0600 Subject: [PATCH 1/3] start 0.5.0 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 310a736..48f1dca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.5.0 + ## 0.4.1 Temporal update for compatibility with java 1.8 diff --git a/gradle.properties b/gradle.properties index 9c32541..02f852e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,4 +19,4 @@ sqlite_version=3.36.0.3 github_release_plugin_version=2.2.12 group=dev.inmo -version=0.4.1 +version=0.5.0 From 4113fb2cc17b54bba1238cb78409a26b90936441 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 2 Jan 2022 12:41:15 +0600 Subject: [PATCH 2/3] update dependencies --- .../dev/inmo/plagubot/config/PluginsConfiguration.kt | 12 ++++++------ gradle.properties | 12 ++++++------ .../kotlin/dev/inmo/plagubot/PluginSerializer.kt | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/bot/src/main/kotlin/dev/inmo/plagubot/config/PluginsConfiguration.kt b/bot/src/main/kotlin/dev/inmo/plagubot/config/PluginsConfiguration.kt index c94ada7..c110de2 100644 --- a/bot/src/main/kotlin/dev/inmo/plagubot/config/PluginsConfiguration.kt +++ b/bot/src/main/kotlin/dev/inmo/plagubot/config/PluginsConfiguration.kt @@ -63,7 +63,7 @@ internal class InternalPluginSerializer( ) : KSerializer { override val descriptor: SerialDescriptor = PluginSerializer.descriptor - @InternalSerializationApi + @OptIn(InternalSerializationApi::class) override fun deserialize(decoder: Decoder): Plugin { val asJson = JsonElement.serializer().deserialize(decoder) @@ -75,7 +75,7 @@ internal class InternalPluginSerializer( } } - @InternalSerializationApi + @OptIn(InternalSerializationApi::class) override fun serialize(encoder: Encoder, value: Plugin) { params.keys.firstOrNull { params[it] === value } ?.also { encoder.encodeString(it) @@ -90,7 +90,7 @@ internal class InternalModuleSerializer( ) : KSerializer { override val descriptor: SerialDescriptor = PluginSerializer.descriptor - @InternalSerializationApi + @OptIn(InternalSerializationApi::class) override fun deserialize(decoder: Decoder): Module { val asJson = JsonElement.serializer().deserialize(decoder) @@ -101,7 +101,7 @@ internal class InternalModuleSerializer( } } - @InternalSerializationApi + @OptIn(InternalSerializationApi::class) override fun serialize(encoder: Encoder, value: Module) = DefaultModuleSerializer.serialize(encoder, value) } @@ -119,7 +119,7 @@ internal object PluginsConfigurationSerializer : KSerializer { private val polymorphic = PolymorphicSerializer(Plugin::class) override val descriptor: SerialDescriptor = JsonObject.serializer().descriptor - @InternalSerializationApi + @OptIn(InternalSerializationApi::class) override fun deserialize(decoder: Decoder): Plugin { val format = (decoder as? JsonDecoder) ?.json ?: defaultJson val asJson = JsonElement.serializer().deserialize(decoder) @@ -45,9 +45,9 @@ object PluginSerializer : KSerializer { } } - @InternalSerializationApi + @OptIn(InternalSerializationApi::class) override fun serialize(encoder: Encoder, value: Plugin) { val serializer = (value::class.serializerOrNull() ?: polymorphic) as KSerializer serializer.serialize(encoder, value) } -} \ No newline at end of file +} From 2fde3206e7f8281b7ac0bd7100a3f1a6fddb0a0d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 2 Jan 2022 12:42:41 +0600 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48f1dca..51ccb56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## 0.5.0 +* `Versions` + * `kotlin`: `1.6.10` + * `coroutines`: `1.6.0` + * `serialization`: `1.3.2` + * `exposed`: `0.37.2` + * `tgbotapi`: `0.38.0` + * `microutils`: `0.9.0` + ## 0.4.1 Temporal update for compatibility with java 1.8