Skip to content

Commit

Permalink
Prepare for release 3.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
swankjesse committed Jan 7, 2023
1 parent bc7e735 commit 2e48951
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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_
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
```

<details>
Expand All @@ -107,7 +107,7 @@ repositories {
}

dependencies {
implementation("com.squareup.okio:okio:3.2.0")
implementation("com.squareup.okio:okio:3.3.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2e48951

Please sign in to comment.