From ef72228d270c21962ab632b4c5a0dfd7ab4fd661 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Sun, 16 Nov 2025 07:49:24 -0600 Subject: [PATCH] Prepare for release 5.3.1. --- CHANGELOG.md | 11 +++++++++++ README.md | 10 +++++----- build.gradle.kts | 2 +- mockwebserver-junit4/README.md | 2 +- mockwebserver-junit5/README.md | 2 +- mockwebserver/README.md | 2 +- okhttp-brotli/README.md | 2 +- okhttp-dnsoverhttps/README.md | 2 +- okhttp-java-net-cookiejar/README.md | 2 +- okhttp-logging-interceptor/README.md | 2 +- okhttp-sse/README.md | 2 +- okhttp-tls/README.md | 2 +- okhttp-urlconnection/README.md | 2 +- okhttp-zstd/README.md | 2 +- 14 files changed, 28 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a9e39315..141dd47bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ Change Log See [4.x Change log](https://square.github.io/okhttp/changelogs/changelog_4x/) for the stable version changelogs. +## Version 5.3.1 + +_2025-11-16_ + +* Fix: Don't delay triggering timeouts. In Okio 3.16.0 we introduced a regression that caused + timeouts to fire later than they were supposed to. + +* Upgrade: [Okio 3.16.3][okio_3_16_3]. + + ## Version 5.3.0 _2025-10-30_ @@ -754,6 +764,7 @@ release is the version name. [okio_3_16_0]: https://square.github.io/okio/changelog/#version-3160 [okio_3_16_1]: https://square.github.io/okio/changelog/#version-3161 [okio_3_16_2]: https://square.github.io/okio/changelog/#version-3162 +[okio_3_16_3]: https://square.github.io/okio/changelog/#version-3163 [okio_3_1_0]: https://square.github.io/okio/changelog/#version-310 [okio_3_2_0]: https://square.github.io/okio/changelog/#version-320 [okio_3_7_0]: https://square.github.io/okio/changelog/#version-370 diff --git a/README.md b/README.md index 22faf11b4..89f9c3f42 100644 --- a/README.md +++ b/README.md @@ -123,10 +123,10 @@ Releases Our [change log][changelog] has release history. -The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/5.3.0/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/5.3.1/jar). ```kotlin -implementation("com.squareup.okhttp3:okhttp:5.3.0") +implementation("com.squareup.okhttp3:okhttp:5.3.1") ``` Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available. @@ -136,7 +136,7 @@ Also, we have a [bill of materials (BOM)][bom] available to help you keep OkHttp ```kotlin dependencies { // define a BOM and its version - implementation(platform("com.squareup.okhttp3:okhttp-bom:5.3.0")) + implementation(platform("com.squareup.okhttp3:okhttp-bom:5.3.1")) // define any required OkHttp artifacts without version implementation("com.squareup.okhttp3:okhttp") @@ -191,10 +191,10 @@ MockWebServer OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients. -The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/5.3.0/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/5.3.1/jar). ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver3:5.3.0") +testImplementation("com.squareup.okhttp3:mockwebserver3:5.3.1") ``` MockWebServer is used for firstly for internal testing, and for basic testing of apps using OkHttp client. diff --git a/build.gradle.kts b/build.gradle.kts index 0b338d4dc..bdb70655d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,7 +51,7 @@ configure { allprojects { group = "com.squareup.okhttp3" - version = "5.3.0" + version = "5.3.1" repositories { mavenCentral() diff --git a/mockwebserver-junit4/README.md b/mockwebserver-junit4/README.md index 4eab5b441..4756e1dbb 100644 --- a/mockwebserver-junit4/README.md +++ b/mockwebserver-junit4/README.md @@ -6,7 +6,7 @@ This module integrates mockwebserver3.MockWebServer with JUnit 4. To use, first add this library as a test dependency: ``` -testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:5.3.0") +testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:5.3.1") ``` Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation: diff --git a/mockwebserver-junit5/README.md b/mockwebserver-junit5/README.md index 9052709e1..10faaa572 100644 --- a/mockwebserver-junit5/README.md +++ b/mockwebserver-junit5/README.md @@ -6,7 +6,7 @@ This module integrates mockwebserver3.MockWebServer with JUnit 5. To use, first add this library as a test dependency: ``` -testImplementation("com.squareup.okhttp3:mockwebserver3-junit5:5.3.0") +testImplementation("com.squareup.okhttp3:mockwebserver3-junit5:5.3.1") ``` Annotate fields in test classes with `@StartStop`. The server will be started and shut down diff --git a/mockwebserver/README.md b/mockwebserver/README.md index f044a4593..83a52b3e4 100644 --- a/mockwebserver/README.md +++ b/mockwebserver/README.md @@ -270,7 +270,7 @@ server.dispatcher = dispatcher ### Download ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver3:5.3.0") +testImplementation("com.squareup.okhttp3:mockwebserver3:5.3.1") ``` ### License diff --git a/okhttp-brotli/README.md b/okhttp-brotli/README.md index 6431395fe..cb36a4565 100644 --- a/okhttp-brotli/README.md +++ b/okhttp-brotli/README.md @@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder() ``` ```kotlin -implementation("com.squareup.okhttp3:okhttp-brotli:5.3.0") +implementation("com.squareup.okhttp3:okhttp-brotli:5.3.1") ``` [1]: https://github.com/google/brotli diff --git a/okhttp-dnsoverhttps/README.md b/okhttp-dnsoverhttps/README.md index 85d6168a7..fc71a0173 100644 --- a/okhttp-dnsoverhttps/README.md +++ b/okhttp-dnsoverhttps/README.md @@ -6,7 +6,7 @@ This module is an implementation of [DNS over HTTPS][1] using OkHttp. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.3.0") +testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.3.1") ``` ### Usage diff --git a/okhttp-java-net-cookiejar/README.md b/okhttp-java-net-cookiejar/README.md index 58b3f1915..ef18f5f22 100644 --- a/okhttp-java-net-cookiejar/README.md +++ b/okhttp-java-net-cookiejar/README.md @@ -7,5 +7,5 @@ This used to be part of `okhttp-urlconnection` ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:5.3.0") +testImplementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:5.3.1") ``` diff --git a/okhttp-logging-interceptor/README.md b/okhttp-logging-interceptor/README.md index 4e95578ed..ea88dd372 100644 --- a/okhttp-logging-interceptor/README.md +++ b/okhttp-logging-interceptor/README.md @@ -37,7 +37,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:logging-interceptor:5.3.0") +implementation("com.squareup.okhttp3:logging-interceptor:5.3.1") ``` diff --git a/okhttp-sse/README.md b/okhttp-sse/README.md index 6ad6c5fd6..1adc36914 100644 --- a/okhttp-sse/README.md +++ b/okhttp-sse/README.md @@ -7,5 +7,5 @@ API is not considered stable and may change at any time. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-sse:5.3.0") +testImplementation("com.squareup.okhttp3:okhttp-sse:5.3.1") ``` diff --git a/okhttp-tls/README.md b/okhttp-tls/README.md index ec00f8e39..8bb2e953a 100644 --- a/okhttp-tls/README.md +++ b/okhttp-tls/README.md @@ -225,7 +225,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:okhttp-tls:5.3.0") +implementation("com.squareup.okhttp3:okhttp-tls:5.3.1") ``` [held_certificate]: https://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/ diff --git a/okhttp-urlconnection/README.md b/okhttp-urlconnection/README.md index 3615615eb..fd12e8bec 100644 --- a/okhttp-urlconnection/README.md +++ b/okhttp-urlconnection/README.md @@ -8,5 +8,5 @@ This module is obsolete; prefer `okhttp-java-net-cookiejar`. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-urlconnection:5.3.0") +testImplementation("com.squareup.okhttp3:okhttp-urlconnection:5.3.1") ``` diff --git a/okhttp-zstd/README.md b/okhttp-zstd/README.md index 76f97513b..7d439a735 100644 --- a/okhttp-zstd/README.md +++ b/okhttp-zstd/README.md @@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder() ``` ```kotlin -implementation("com.squareup.okhttp3:okhttp-zstd:5.3.0") +implementation("com.squareup.okhttp3:okhttp-zstd:5.3.1") ``` [1]: https://github.com/facebook/zstd