Skip to content

Release notes 0.3.0 #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
# CHANGELOG
## 0.3.0
> Published 13 Sep 2023

### Features
- Enabled Wasm target [#164](https://github.com/Kotlin/kotlinx-io/issues/164)
- Added Sink/Source integration with Apple's NSInputStream and NSOutputStream ([#174](https://github.com/Kotlin/kotlinx-io/pull/174))
- Added extension functions integrating ByteString with Base64 and HexFormat APIs ([#149](https://github.com/Kotlin/kotlinx-io/issues/149))
- Added extension functions to read and write floating point numbers ([#167](https://github.com/Kotlin/kotlinx-io/issues/167))
- Extended filesystems support by adding functions to create and delete files and directories, check their existence,
perform atomic move, and get file size ([#211](https://github.com/Kotlin/kotlinx-io/issues/211),
[#214](https://github.com/Kotlin/kotlinx-io/issues/214)).
Also extended Path's API to request Path's parent and to get file's name
([#206](https://github.com/Kotlin/kotlinx-io/issues/206), [#212](https://github.com/Kotlin/kotlinx-io/issues/212)).
- Updated Kotlin version to 1.9.10

### Bugfixes
- Fixed undefined behavior in the ByteString's hashCode computation on native targets ([#190](https://github.com/Kotlin/kotlinx-io/issues/190))
- Fixed compatibility issues with Android API 25 and below ([#202](https://github.com/Kotlin/kotlinx-io/issues/202))

## 0.2.1
> Published 11 Jul 2023
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Kotlin Alpha](https://kotl.in/badges/alpha.svg)](https://kotlinlang.org/docs/components-stability.html)
[![JetBrains incubator project](https://jb.gg/badges/incubator.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-io-core?versionSuffix=0.2.1)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-io-core/0.2.1)
[![Download](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-io-core)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-io-core/)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.10-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![TeamCity build](https://img.shields.io/teamcity/build/s/KotlinTools_KotlinxIo_BuildAggregated.svg?server=http%3A%2F%2Fteamcity.jetbrains.com)](https://teamcity.jetbrains.com/viewType.html?buildTypeId=KotlinTools_KotlinxIo_BuildAggregated&guest=1)
[![KDoc link](https://img.shields.io/badge/API_reference-KDoc-blue)](https://fzhinkin.github.io/kotlinx-io-dokka-docs-preview/)
Expand All @@ -22,7 +22,7 @@ The library also provides interfaces representing data sources and destinations
In addition to `Buffer`, the library provides an immutable sequence of bytes - `ByteString`.

Also, there's an experimental filesystem support provided by `kotlinx.io.files` package.
The package includes `FileSystem` interface and its implementation - `SystemFileSystem`.
The package includes `FileSystem` interface and its implementation - `SystemFileSystem`.

`FileSystem` provides basic operations for working with files and directories.

Expand All @@ -48,7 +48,7 @@ repositories {
Add the library to dependencies:
```kotlin
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.2.1")
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.3.0")
}
```

Expand All @@ -58,7 +58,7 @@ kotlin {
sourceSets {
commonMain {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.2.1")
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.3.0")
}
}
}
Expand All @@ -72,7 +72,7 @@ Add the library to dependencies:
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-io-core-jvm</artifactId>
<version>0.2.1</version>
<version>0.3.0</version>
</dependency>
```

Expand All @@ -95,6 +95,6 @@ kotlinx-io is licensed under the [Apache 2.0 License](LICENSE).

Thanks to everyone involved in the project.

A honorable mention goes to the developers of [Okio](https://square.github.io/okio/)
An honorable mention goes to the developers of [Okio](https://square.github.io/okio/)
that served as the foundation for `kotlinx-io` and to [Jesse Wilson](https://github.com/swankjesse),
for the help with `Okio` adaption, his suggestions, assistance and guidance with `kotlinx-io` development.
4 changes: 2 additions & 2 deletions core/common/src/files/Paths.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public fun Path(base: Path, vararg parts: String): Path {
/**
* Returns [RawSource] for the given file or throws if path is not a file or does not exist
*
* Use of this method is deprecated with warning since kotlinx-io 0.2.3. The method will be removed in 0.3.0.
* Use of this method is deprecated with warning since kotlinx-io 0.3.0. The method will be removed in 0.4.0.
*/
@Deprecated(
message = "Use FileSystem.source instead",
Expand All @@ -116,7 +116,7 @@ public fun Path.source(): Source = SystemFileSystem.source(this).buffered()
* Returns [RawSink] for the given path, creates file if it doesn't exist, throws if it's a directory,
* overwrites contents.
*
* Use of this method is deprecated with warning since kotlinx-io 0.2.3. The method will be removed in 0.3.0.
* Use of this method is deprecated with warning since kotlinx-io 0.3.0. The method will be removed in 0.4.0.
*/
@Deprecated(
message = "Use FileSystem.sink instead",
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

group=org.jetbrains.kotlinx
version=0.2.1-SNAPSHOT
version=0.3.1-SNAPSHOT
kotlin.code.style=official
org.gradle.jvmargs=-Xmx4G
nativeBenchmarksEnabled=false