Skip to content

Commit 61423f4

Browse files
committed
Prepare for release 5.4.0.
1 parent d7e6eff commit 61423f4

15 files changed

Lines changed: 37 additions & 19 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
Change Log
22
==========
33

4+
## Version 5.4.0
5+
6+
_2026-06-08_
7+
8+
* New: Add superpowers to interceptors. Interceptors can now override anything settable on
9+
`OkHttpClient.Builder`, such as the cache, connection pool, socket factory, and DNS. We expect
10+
this will allow most users to use interceptors everywhere, insted of mixing and matching
11+
interceptors with custom `Call.Factory` wrappers.
12+
* Fix: Limit each HTTP/2 response to 256 KiB of total headers.
13+
* Upgrade: [kotlinx.coroutines 1.11.0][coroutines_1_11_0]. This is used by the optional
14+
`okhttp-coroutines` artifact.
15+
* Upgrade: [GraalVM 25.0.3][graalvm_25].
16+
* Upgrade: [Okio 3.17.0][okio_3_17_0].
17+
18+
419
## Version 5.3.2
520

621
_2025-11-18_
@@ -765,11 +780,13 @@ See [4.x Change log](https://square.github.io/okhttp/changelogs/changelog_4x/) f
765780
[annotation_1_9_1]: https://developer.android.com/jetpack/androidx/releases/annotation#annotation-1.9.1
766781
[assertk]: https://github.com/willowtreeapps/assertk
767782
[coroutines_1_10_2]: https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.10.2
783+
[coroutines_1_11_0]: https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.11.0
768784
[curl]: https://curl.se/
769785
[elf_alignment]: https://developer.android.com/guide/practices/page-sizes
770786
[graalvm]: https://www.graalvm.org/
771787
[graalvm_21]: https://www.graalvm.org/release-notes/21_0/
772788
[graalvm_22]: https://www.graalvm.org/release-notes/22_2/
789+
[graalvm_25]: https://www.graalvm.org/release-notes/JDK_25/
773790
[idna_15_1_0]: https://www.unicode.org/reports/tr46/#Modifications
774791
[kotlin_1_4_20]: https://github.com/JetBrains/kotlin/releases/tag/v1.4.20
775792
[kotlin_1_5_31]: https://github.com/JetBrains/kotlin/releases/tag/v1.5.31
@@ -793,6 +810,7 @@ See [4.x Change log](https://square.github.io/okhttp/changelogs/changelog_4x/) f
793810
[okio_3_16_2]: https://square.github.io/okio/changelog/#version-3162
794811
[okio_3_16_3]: https://square.github.io/okio/changelog/#version-3163
795812
[okio_3_16_4]: https://square.github.io/okio/changelog/#version-3164
813+
[okio_3_17_0]: https://square.github.io/okio/changelog/#version-3170
796814
[okio_3_1_0]: https://square.github.io/okio/changelog/#version-310
797815
[okio_3_2_0]: https://square.github.io/okio/changelog/#version-320
798816
[okio_3_7_0]: https://square.github.io/okio/changelog/#version-370

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ Releases
123123

124124
Our [change log][changelog] has release history.
125125

126-
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/5.3.0/jar).
126+
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/5.4.0/jar).
127127

128128
```kotlin
129-
implementation("com.squareup.okhttp3:okhttp:5.3.0")
129+
implementation("com.squareup.okhttp3:okhttp:5.4.0")
130130
```
131131

132132
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
136136
```kotlin
137137
dependencies {
138138
// define a BOM and its version
139-
implementation(platform("com.squareup.okhttp3:okhttp-bom:5.3.0"))
139+
implementation(platform("com.squareup.okhttp3:okhttp-bom:5.4.0"))
140140

141141
// define any required OkHttp artifacts without version
142142
implementation("com.squareup.okhttp3:okhttp")
@@ -191,10 +191,10 @@ MockWebServer
191191

192192
OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients.
193193

194-
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/5.3.0/jar).
194+
The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/5.4.0/jar).
195195

196196
```kotlin
197-
testImplementation("com.squareup.okhttp3:mockwebserver3:5.3.0")
197+
testImplementation("com.squareup.okhttp3:mockwebserver3:5.4.0")
198198
```
199199

200200
MockWebServer is used for firstly for internal testing, and for basic testing of apps using OkHttp client.

build-logic/src/main/kotlin/okhttp.base-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
77
val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
88

99
group = "com.squareup.okhttp3"
10-
version = "5.4.0-SNAPSHOT"
10+
version = "5.4.0"
1111

1212
val platform = project.platform
1313
val testJavaVersion = project.testJavaVersion

docs/releasing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Releasing
1515
```
1616
sed -i "" \
1717
"s/version = \".*\"/version = \"$RELEASE_VERSION\"/g" \
18-
build.gradle.kts
18+
build-logic/src/main/kotlin/okhttp.base-conventions.gradle.kts
1919
sed -i "" \
2020
"s/\"com.squareup.okhttp3:\([^\:]*\):[^\"]*\"/\"com.squareup.okhttp3:\1:$RELEASE_VERSION\"/g" \
2121
`find . -name "README.md"`
@@ -29,7 +29,7 @@ Releasing
2929
3030
sed -i "" \
3131
"s/version = \".*\"/version = \"$NEXT_VERSION\"/g" \
32-
build.gradle.kts
32+
build-logic/src/main/kotlin/okhttp.base-conventions.gradle.kts
3333
git commit -am "Prepare next development version."
3434
git push
3535
```

mockwebserver-junit4/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module integrates mockwebserver3.MockWebServer with JUnit 4.
66
To use, first add this library as a test dependency:
77

88
```
9-
testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:5.3.0")
9+
testImplementation("com.squareup.okhttp3:mockwebserver3-junit4:5.4.0")
1010
```
1111

1212
Then in tests annotated `@org.junit.Test`, you may declare a field with the `@Rule` annotation:

mockwebserver-junit5/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module integrates mockwebserver3.MockWebServer with JUnit 5.
66
To use, first add this library as a test dependency:
77

88
```
9-
testImplementation("com.squareup.okhttp3:mockwebserver3-junit5:5.3.0")
9+
testImplementation("com.squareup.okhttp3:mockwebserver3-junit5:5.4.0")
1010
```
1111

1212
Annotate fields in test classes with `@StartStop`. The server will be started and shut down

mockwebserver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ server.dispatcher = dispatcher
270270
### Download
271271

272272
```kotlin
273-
testImplementation("com.squareup.okhttp3:mockwebserver3:5.3.0")
273+
testImplementation("com.squareup.okhttp3:mockwebserver3:5.4.0")
274274
```
275275

276276
### License

okhttp-brotli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder()
1414
```
1515

1616
```kotlin
17-
implementation("com.squareup.okhttp3:okhttp-brotli:5.3.0")
17+
implementation("com.squareup.okhttp3:okhttp-brotli:5.4.0")
1818
```
1919

2020
[1]: https://github.com/google/brotli

okhttp-dnsoverhttps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module is an implementation of [DNS over HTTPS][1] using OkHttp.
66
### Download
77

88
```kotlin
9-
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.3.0")
9+
testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.4.0")
1010
```
1111

1212
### Usage

okhttp-java-net-cookiejar/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ This used to be part of `okhttp-urlconnection`
77
### Download
88

99
```kotlin
10-
testImplementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:5.3.0")
10+
testImplementation("com.squareup.okhttp3:okhttp-java-net-cookiehandler:5.4.0")
1111
```

0 commit comments

Comments
 (0)