From 2e489516383d03052d0ba31d39d1cbd04a43f997 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Sat, 7 Jan 2023 16:10:34 -0500 Subject: [PATCH] Prepare for release 3.3.0. --- CHANGELOG.md | 16 ++++++++++++++++ docs/index.md | 4 ++-- gradle.properties | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dec0337ee1..542acbf3d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,20 @@ Change Log ========== +## Version 3.3.0 + +_2023-01-07_ + + * Fix: Don't leak resources when `use {}` is used with a non-local return. We introduced this + performance and stability bug by not considering that non-local returns execute neither the + `return` nor `catch` control flows. + * Fix: Use a sealed interface for `BufferedSink` and `BufferedSource`. These were never intended + for end-users to implement, and we're happy that Kotlin now allows us to express that in our API. + * New: Change internal locks from `synchronized` to `ReentrantLock` and `Condition`. We expect this + to improve help when using Okio with Java virtual threads ([Project Loom][loom]). + * Upgrade: [Kotlin 1.8.0][kotlin_1_8_0]. + + ## Version 3.2.0 _2022-06-26_ @@ -809,5 +823,7 @@ _2014-04-08_ [kotlin_1_5_20]: https://github.com/JetBrains/kotlin/releases/tag/v1.5.20 [kotlin_1_5_31]: https://github.com/JetBrains/kotlin/releases/tag/v1.5.31 [kotlin_1_6_20]: https://blog.jetbrains.com/kotlin/2022/04/kotlin-1-6-20-released/ +[kotlin_1_8_0]: https://kotlinlang.org/docs/whatsnew18.html +[loom]: https://wiki.openjdk.org/display/loom/Getting+started [maven_provided]: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html [xor_utf8]: https://github.com/square/okio/blob/bbb29c459e5ccf0f286e0b17ccdcacd7ac4bc2a9/okio/src/main/kotlin/okio/Utf8.kt#L302 diff --git a/docs/index.md b/docs/index.md index 9ac113fe7e..147fc538f5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -95,7 +95,7 @@ Releases Our [change log][changelog] has release history. ```kotlin -implementation("com.squareup.okio:okio:3.2.0") +implementation("com.squareup.okio:okio:3.3.0") ```
@@ -107,7 +107,7 @@ repositories { } dependencies { - implementation("com.squareup.okio:okio:3.2.0") + implementation("com.squareup.okio:okio:3.3.0") } ``` diff --git a/gradle.properties b/gradle.properties index 5247b9d8b6..0d50a31273 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,5 +9,5 @@ kotlin.mpp.stability.nowarn=true kotlin.mpp.enableCompatibilityMetadataVariant=true GROUP=com.squareup.okio -VERSION_NAME=3.3.0-SNAPSHOT +VERSION_NAME=3.3.0 kotlin.mpp.commonizerLogLevel=info