From 6b498a856ac33d86583ef73261096a411eae80b3 Mon Sep 17 00:00:00 2001 From: Alexander Sysoev Date: Thu, 26 Sep 2024 13:30:13 +0200 Subject: [PATCH] Migration guide for 0.3.0 --- docs/pages/kotlinx-rpc/rpc.tree | 1 + docs/pages/kotlinx-rpc/topics/0-2-4.topic | 2 +- docs/pages/kotlinx-rpc/topics/0-3-0.topic | 254 ++++++++++++++++++++++ 3 files changed, 256 insertions(+), 1 deletion(-) create mode 100644 docs/pages/kotlinx-rpc/topics/0-3-0.topic diff --git a/docs/pages/kotlinx-rpc/rpc.tree b/docs/pages/kotlinx-rpc/rpc.tree index 034df82ae..23ab1e140 100644 --- a/docs/pages/kotlinx-rpc/rpc.tree +++ b/docs/pages/kotlinx-rpc/rpc.tree @@ -26,6 +26,7 @@ + diff --git a/docs/pages/kotlinx-rpc/topics/0-2-4.topic b/docs/pages/kotlinx-rpc/topics/0-2-4.topic index 5200e14a3..ade09457d 100644 --- a/docs/pages/kotlinx-rpc/topics/0-2-4.topic +++ b/docs/pages/kotlinx-rpc/topics/0-2-4.topic @@ -10,7 +10,7 @@ title="Migration to 0.2.4" id="0-2-4">

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

diff --git a/docs/pages/kotlinx-rpc/topics/0-3-0.topic b/docs/pages/kotlinx-rpc/topics/0-3-0.topic new file mode 100644 index 000000000..9b148744d --- /dev/null +++ b/docs/pages/kotlinx-rpc/topics/0-3-0.topic @@ -0,0 +1,254 @@ + + + + + + +

+ Version 0.3.0 introduces breaking changes. +

+ + This release resolves the issue of kRPC declarations being incorrectly included in non-kRPC artifacts. + All package names have been reviewed and updated to match artifact names and ensure uniqueness across the project. + All APIs were moved permanently without a deprecation cycle due to the size of the change. + The table below contains the full list of the changes. +

Removed declarations

+ + + + + + + + + + + + + + + + + +
0.2.40.3.0
kotlinx.rpc.client.withServiceRemoved (was deprecated in 0.2.4)
kotlinx.rpc.client.awaitFieldInitializationRemoved (was deprecated in 0.2.4)
kotlinx.rpc.client.UninitializedRPCFieldExceptionRemoved (was deprecated in 0.2.4)
+

Declarations that changed the artifact location and package

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
0.2.40.3.0
+ kotlinx.rpc.RPCConfig +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.RPCConfig +

Artifact: kotlinx-rpc-krpc-core

+
+ kotlinx.rpc.RPCConfigBuilder +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.RPCConfigBuilder +

Artifact: kotlinx-rpc-krpc-core

+
+ kotlinx.rpc.rpcClientConfig +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.rpcClientConfig +

Artifact: kotlinx-rpc-krpc-core

+
+ kotlinx.rpc.rpcServerConfig +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.rpcServerConfig +

Artifact: kotlinx-rpc-krpc-core

+
+ kotlinx.rpc.RPCTransport +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.RPCTransport +

Artifact: kotlinx-rpc-krpc-core

+
+ kotlinx.rpc.RPCTransportMessage +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.RPCTransportMessage +

Artifact: kotlinx-rpc-krpc-core

+
+ kotlinx.rpc.invokeOnStreamScopeCompletion +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.invokeOnStreamScopeCompletion +

Artifact: kotlinx-rpc-krpc-core

+
+ kotlinx.rpc.streamScoped +

Artifact: kotlinx-rpc-core

+
+ kotlinx.rpc.krpc.streamScoped +

Artifact: kotlinx-rpc-krpc-core

+
+

Declarations that only changed the package

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
0.2.40.3.0
+ kotlinx.rpc.client.KRPCClient + + kotlinx.rpc.krpc.client.KRPCClient +
+ kotlinx.rpc.client.withService + + kotlinx.rpc.krpc.client.withService +
+ kotlinx.rpc.transport.ktor.client.rpc + + kotlinx.rpc.krpc.ktor.client.rpc +
+ kotlinx.rpc.transport.ktor.client.KtorRPCClient + + kotlinx.rpc.krpc.ktor.client.KtorRPCClient +
+ kotlinx.rpc.transport.ktor.client.RPC + + kotlinx.rpc.krpc.ktor.client.RPC +
+ kotlinx.rpc.transport.ktor.server.RPC + + kotlinx.rpc.krpc.ktor.server.RPC +
+ kotlinx.rpc.transport.ktor.server.rpc + + kotlinx.rpc.krpc.ktor.server.rpc +
+ kotlinx.rpc.transport.ktor.server.RPCRoute + + kotlinx.rpc.krpc.ktor.server.RPCRoute +
+ kotlinx.rpc.serialization.cbor + + kotlinx.rpc.krpc.serialization.cbor.cbor +
+ kotlinx.rpc.serialization.json + + kotlinx.rpc.krpc.serialization.json.json +
+ kotlinx.rpc.serialization.protobuf + + kotlinx.rpc.krpc.serialization.protobuf.protobuf +
+ kotlinx.rpc.serialization.RPCSerialFormat + + kotlinx.rpc.krpc.serialization.RPCSerialFormat +
+ kotlinx.rpc.serialization.RPCSerialFormatBuilder + + kotlinx.rpc.krpc.serialization.RPCSerialFormatBuilder +
+ kotlinx.rpc.serialization.RPCSerialFormatConfiguration + + kotlinx.rpc.krpc.serialization.RPCSerialFormatConfiguration +
+ kotlinx.rpc.server.KRPCServer + + kotlinx.rpc.krpc.server.KRPCServer +
+
+