Skip to content

Commit ff2d46e

Browse files
committed
Added missing aliases for migration (#254)
1 parent d892030 commit ff2d46e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

core/src/commonMain/kotlin/kotlinx/rpc/RpcCall.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
/*
2-
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.rpc
66

77
import kotlinx.rpc.descriptor.RpcServiceDescriptor
88

9+
@Deprecated("Use RpcCall instead", ReplaceWith("RpcCall"), level = DeprecationLevel.ERROR)
10+
public typealias RPCCall = RpcCall
11+
912
/**
1013
* Represents a method or field call of an RPC service.
1114
*

core/src/commonMain/kotlin/kotlinx/rpc/RpcClient.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.rpc
@@ -8,6 +8,9 @@ import kotlinx.coroutines.CoroutineScope
88
import kotlinx.coroutines.Deferred
99
import kotlin.coroutines.CoroutineContext
1010

11+
@Deprecated("Use RpcClient instead", ReplaceWith("RpcClient"), level = DeprecationLevel.ERROR)
12+
public typealias RPCClient = RpcClient
13+
1114
/**
1215
* [RpcClient] represents an abstraction of an RPC client, that can handle requests from several RPC services,
1316
* transform them, send to the server and handle responses and errors.

0 commit comments

Comments
 (0)