From 50c4e5d0a6feda40dd41e6211b027557090735bd Mon Sep 17 00:00:00 2001 From: Alexander Sysoev Date: Mon, 19 Aug 2024 14:39:33 +0200 Subject: [PATCH] Migration guide to 0.2.3 (KRPC-112) --- docs/pages/kotlinx-rpc/rpc.tree | 1 + docs/pages/kotlinx-rpc/topics/0-2-3.topic | 55 +++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 docs/pages/kotlinx-rpc/topics/0-2-3.topic diff --git a/docs/pages/kotlinx-rpc/rpc.tree b/docs/pages/kotlinx-rpc/rpc.tree index 78de9b6b..30864a08 100644 --- a/docs/pages/kotlinx-rpc/rpc.tree +++ b/docs/pages/kotlinx-rpc/rpc.tree @@ -26,6 +26,7 @@ + \ No newline at end of file diff --git a/docs/pages/kotlinx-rpc/topics/0-2-3.topic b/docs/pages/kotlinx-rpc/topics/0-2-3.topic new file mode 100644 index 00000000..32712ce1 --- /dev/null +++ b/docs/pages/kotlinx-rpc/topics/0-2-3.topic @@ -0,0 +1,55 @@ + + + + +

+ Version 0.2.3 does introduce any breaking changes. + However, it includes some updates that may require additional modifications in user projects. +

+ + If your project uses Kotlin 2.0, + you are no longer required to add KSP Gradle plugin to your build files: + + plugins { + kotlin("jvm") version "2.0.10" + kotlin("plugin.serialization") version "2.0.10" + id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.3" + + // KSP can be removed + // id("com.google.devtools.ksp") version "2.0.10-1.0.24" + } + + This change brings one more benefit: + without KSP, projects that use kotlinx.rpc + can now use Gradle configuration + caches. + + + Some client APIs were moved from kotlinx-rpc-krpc-client artifact (and package) + into kotlinx-rpc-core module (and package). These APIs are not kRPC specific hence the move. +

List of API changes:

+ + + + + + + + + + + + + + + + + +
0.2.20.2.3
kotlinx.rpc.client.withServicekotlinx.rpc.withService
kotlinx.rpc.client.awaitFieldInitializationkotlinx.rpc.awaitFieldInitialization
kotlinx.rpc.client.UninitializedRPCFieldExceptionkotlinx.rpc.UninitializedRPCFieldException
+ Old declaration and marked with @Deprecated(WARNING) + and will be removed in 2 minor releases. +
+
\ No newline at end of file