Skip to content

Commit 0c3a1d3

Browse files
authored
Release 0.2.4 (#171)
1 parent ceb9083 commit 0c3a1d3

File tree

31 files changed

+121
-39
lines changed

31 files changed

+121
-39
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
ALGOLIA_INDEX_NAME: 'prod_kotlin_rpc'
2121
ALGOLIA_KEY: '${{ secrets.ALGOLIA_KEY }}'
2222
CONFIG_JSON_PRODUCT: 'kotlinx-rpc'
23-
CONFIG_JSON_VERSION: '0.2.2'
23+
CONFIG_JSON_VERSION: '0.2.4'
2424

2525
jobs:
2626
build:

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# 0.2.4
2+
> Published 20 August 2024
3+
4+
### Features
5+
* KRPC-18 Add K2 and IR code generation plugins, preserve KSP for K1 by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/105
6+
* Added 1.9.25 and 2.0.10 Kotlin Versions by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/168
7+
8+
### Bug fixes
9+
* KRPC-101 Check if the entire stream is not already closed. by @pikinier20 in https://github.com/Kotlin/kotlinx-rpc/pull/158
10+
* KRPC-119 Exception Deserialization by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/170
11+
* Fix compilation on Kotlin/Native by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/172
12+
13+
### Infra
14+
* Add issue templates by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/167
15+
16+
## New Contributors
17+
* @pikinier20 made their first contribution in https://github.com/Kotlin/kotlinx-rpc/pull/158
18+
19+
**Full Changelog**: https://github.com/Kotlin/kotlinx-rpc/compare/0.2.2...0.2.4
20+
121
# 0.2.2
222
> Published 5 August 2024
323

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Example of plugins setup in a project's `build.gradle.kts`:
9292
plugins {
9393
kotlin("jvm") version "2.0.10"
9494
kotlin("plugin.serialization") version "2.0.10"
95-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.2"
95+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
9696
}
9797
```
9898

@@ -106,7 +106,7 @@ plugins {
106106
kotlin("jvm") version "1.9.25"
107107
kotlin("plugin.serialization") version "1.9.25"
108108
id("com.google.devtools.ksp") version "1.9.25-1.0.20"
109-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.2"
109+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
110110
}
111111
```
112112
### Runtime dependencies
@@ -166,11 +166,11 @@ based on the project's Kotlin version:
166166
```kotlin
167167
plugins {
168168
kotlin("jvm") version "2.0.10"
169-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.2"
169+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
170170
}
171171

172172
dependencies {
173-
// version 0.2.2 is set by the Gradle plugin
173+
// version 0.2.4 is set by the Gradle plugin
174174
implementation("org.jetbrains.kotlinx:kotlinx-rpc-core")
175175
}
176176
```

docs/pages/kotlinx-rpc/.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pages/kotlinx-rpc/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[
2-
{"version":"0.2.2","url":"/kotlinx-rpc/0.2.2/","isCurrent":true}
2+
{"version":"0.2.4","url":"/kotlinx-rpc/0.2.4/","isCurrent":true}
33
]

docs/pages/kotlinx-rpc/rpc.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
</toc-element>
2727
<toc-element topic="versions.topic"/>
2828
<toc-element toc-title="Migration guides">
29+
<toc-element topic="0-2-4.topic"/>
2930
<toc-element topic="0-2-1.topic"/>
3031
</toc-element>
3132
</instance-profile>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
- Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
4+
-->
5+
6+
<!DOCTYPE topic
7+
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
8+
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
10+
title="Migration to 0.2.4" id="0-2-4">
11+
12+
<p>
13+
Version <code>0.2.4</code> does introduce any breaking changes.
14+
However, it includes some updates that may require additional modifications in user projects.
15+
</p>
16+
<chapter title="Removal of KSP plugin for Kotlin 2.0" id="removal-of-ksp-plugin-for-kotlin-2-0">
17+
If your project uses Kotlin 2.0,
18+
you are no longer required to add KSP Gradle plugin to your build files:
19+
<code-block lang="kotlin">
20+
plugins {
21+
kotlin("jvm") version "2.0.10"
22+
kotlin("plugin.serialization") version "2.0.10"
23+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
24+
25+
// KSP can be removed
26+
// id("com.google.devtools.ksp") version "2.0.10-1.0.24"
27+
}
28+
</code-block>
29+
This change brings one more benefit:
30+
without KSP, projects that use <code>kotlinx.rpc</code>
31+
can now use <a href="https://docs.gradle.org/current/userguide/configuration_cache.html">Gradle configuration
32+
caches</a>.
33+
</chapter>
34+
<chapter title="Moving of client APIs" id="moving-of-client-apis">
35+
Some client APIs were moved from <code>kotlinx-rpc-krpc-client</code> artifact (and package)
36+
into <code>kotlinx-rpc-core</code> module (and package). These APIs are not kRPC specific hence the move.
37+
<p>List of API changes:</p>
38+
<table>
39+
<tr>
40+
<td><code>0.2.2</code></td>
41+
<td><code>0.2.4</code></td>
42+
</tr>
43+
<tr>
44+
<td><code>kotlinx.rpc.client.withService</code></td>
45+
<td><code>kotlinx.rpc.withService</code></td>
46+
</tr>
47+
<tr>
48+
<td><code>kotlinx.rpc.client.awaitFieldInitialization</code></td>
49+
<td><code>kotlinx.rpc.awaitFieldInitialization</code></td>
50+
</tr>
51+
<tr>
52+
<td><code>kotlinx.rpc.client.UninitializedRPCFieldException</code></td>
53+
<td><code>kotlinx.rpc.UninitializedRPCFieldException</code></td>
54+
</tr>
55+
</table>
56+
Old declaration and marked with <code>@Deprecated(WARNING)</code>
57+
and will be removed in 2 minor releases.
58+
</chapter>
59+
</topic>

docs/pages/kotlinx-rpc/v.list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<var name="host" value="https://kotlin.github.io"/>
1515

1616
<!-- Library versions -->
17-
<var name="kotlinx-rpc-version" value="0.2.2"/>
17+
<var name="kotlinx-rpc-version" value="0.2.4"/>
1818
<var name="kotlin-version" value="2.0.10"/>
1919
<var name="ksp-version" value="1.9.25-1.0.20"/>
2020
</vars>

docs/pages/kotlinx-rpc/writerside.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
<images dir="images" web-path="images/"/>
1313
<categories src="c.list"/>
1414
<vars src="v.list"/>
15-
<instance src="rpc.tree" version="0.2.2" web-path="/kotlinx-rpc/"/>
15+
<instance src="rpc.tree" version="0.2.4" web-path="/kotlinx-rpc/"/>
1616
</ihp>

0 commit comments

Comments
 (0)