Skip to content

Commit c2ff370

Browse files
committed
Release 0.5.0
1 parent be2bfca commit c2ff370

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# CHANGELOG
22

3+
## 0.5.0
4+
> Published 12 July 2024
5+
6+
### Features
7+
- Provided an API allowing direct access to Buffer and Segment internals [#135](https://github.com/Kotlin/kotlinx-io/issues/135), [#166](https://github.com/Kotlin/kotlinx-io/issues/166)
8+
9+
The API is unsafe, delisted from public docs and requires explicit opt-in. It's recommended to
10+
avoid this API unless you're working on integration with other APIs (like, `java.nio` or
11+
`io_uring`, for example).
12+
13+
- Improved the way segment pooling is working on JVM [#352](https://github.com/Kotlin/kotlinx-io/pull/352)
14+
15+
Now sharing a segment won't make an original segment and all its copies recyclable.
16+
Instead, the last remaining copy will be placed back into the pool when recycled.
17+
Segments are no longer allocated or lost when taking or recycling a segment from pool
18+
under a high contention due to concurrent requests.
19+
Size of the segment pool on the JVM could now be statically configured by setting a system property
20+
`kotlinx.io.pool.size.bytes`.
21+
322
## 0.4.0
423
> Published 6 June 2024
524

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repositories {
4848
Add the library to dependencies:
4949
```kotlin
5050
dependencies {
51-
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.4.0")
51+
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.5.0")
5252
}
5353
```
5454

@@ -58,7 +58,7 @@ kotlin {
5858
sourceSets {
5959
commonMain {
6060
dependencies {
61-
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.4.0")
61+
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.5.0")
6262
}
6363
}
6464
}
@@ -72,7 +72,7 @@ Add the library to dependencies:
7272
<dependency>
7373
<groupId>org.jetbrains.kotlinx</groupId>
7474
<artifactId>kotlinx-io-core-jvm</artifactId>
75-
<version>0.4.0</version>
75+
<version>0.5.0</version>
7676
</dependency>
7777
```
7878

core/common/src/files/Paths.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public fun Path(base: Path, vararg parts: String): Path {
100100
/**
101101
* Returns [RawSource] for the given file or throws if path is not a file or does not exist
102102
*
103-
* Use of this method is deprecated with warning since kotlinx-io 0.3.0. The method will be removed in 0.4.0.
103+
* Use of this method is deprecated with warning since kotlinx-io 0.3.0. The method will be removed in 0.6.0.
104104
*/
105105
@Deprecated(
106106
message = "Use FileSystem.source instead",
@@ -117,7 +117,7 @@ public fun Path.source(): Source = SystemFileSystem.source(this).buffered()
117117
* Returns [RawSink] for the given path, creates file if it doesn't exist, throws if it's a directory,
118118
* overwrites contents.
119119
*
120-
* Use of this method is deprecated with warning since kotlinx-io 0.3.0. The method will be removed in 0.4.0.
120+
* Use of this method is deprecated with warning since kotlinx-io 0.3.0. The method will be removed in 0.6.0.
121121
*/
122122
@Deprecated(
123123
message = "Use FileSystem.sink instead",

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
group=org.jetbrains.kotlinx
7-
version=0.4.0-SNAPSHOT
7+
version=0.6.0-SNAPSHOT
88
kotlin.code.style=official
99
org.gradle.jvmargs=-Xmx4G
1010
nativeBenchmarksEnabled=true

0 commit comments

Comments
 (0)