Skip to content

Bump com.squareup.okhttp3:okhttp from 4.12.0 to 5.5.0 - #87

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/maven/com.squareup.okhttp3-okhttp-5.4.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/maven/com.squareup.okhttp3-okhttp-5.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Bumps com.squareup.okhttp3:okhttp from 4.12.0 to 5.5.0.

Changelog

Sourced from com.squareup.okhttp3:okhttp's changelog.

Version 5.5.0

2026-08-16

This release introduces opt-in support for [Encrypted Client Hello (ECH)]. This new feature improves user privacy by encrypting domain names in transit. With regular TLS, your coffee shop’s Wi-Fi router can see that you’re visiting wikipedia.com, but it cannot see which page you’re looking at. With ECH, the router observes only the IP address. This additional privacy is most effective on sites hosted by big CDNs because the IP address doesn’t imply a particular website.

This requires ECH support in the platform’s TLS stack. Today this is only Android 17 (API 37, released June 2026). When other TLS stacks add ECH support, we'll integrate them.

ECH took a lot of work to implement because the encryption keys are published over DNS in the [HTTPS resource record], and we needed to write new code to fetch these records. This release includes a major update to OkHttp’s DNS API: it now supports multiple resource record types (not just IP addresses!), asynchronous streaming results, and in-memory caching.

To opt in, you can use DnsOverHttps:

// DnsOverHttps itself uses OkHttpClient. Build both clients upon the
// same bootstrap client so they share a connection pool and dispatcher.
val bootstrapClient = OkHttpClient()
// This sample uses Cloudflare's 1.1.1.1 DnsOverHttps service.
val client = bootstrapClient.newBuilder()
.dns(DnsOverHttps.Builder()
.client(bootstrapClient)
.url("https://1.1.1.1/dns-query".toHttpUrl())
.build())
.build()

You could also opt in with our new AndroidDns API. Unfortunately, the privacy benefits of ECH are thwarted because its DNS queries are not encrypted by default.

// AndroidDns fetches the HTTPS DNS resource records necessary for ECH.
val client = OkHttpClient.Builder()
  .dns(AndroidDns())
  .build()
  • New: OkHttp artifacts are now signed with our [new signing key]. This project and three sibling projects ([Retrofit], [Okio], and [SQLDelight]) recently joined [the Commonhaus Foundation].
  • Fix: MockWebServer’s @StartStop annotation now supports @Nested JUnit 5 tests.
  • Fix: Our default TLS hostname verifier now reject hosts that fail IP canonicalization.
  • Fix: Closing a multipart part's sink no longer closes the entire request body.
  • Fix: Flush HTTP/1 request bodies before detaching the timeout. We had a bug where timeouts

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Jun 30, 2026
@nilsbehlen

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [com.squareup.okhttp3:okhttp](https://github.com/lysine-dev/okhttp) from 4.12.0 to 5.5.0.
- [Changelog](https://github.com/lysine-dev/okhttp/blob/main/CHANGELOG.md)
- [Commits](lysine-dev/okhttp@parent-4.12.0...parent-5.5.0)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
  dependency-version: 5.4.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title Bump com.squareup.okhttp3:okhttp from 4.12.0 to 5.4.0 Bump com.squareup.okhttp3:okhttp from 4.12.0 to 5.5.0 Oct 1, 2026
@dependabot
dependabot Bot force-pushed the dependabot/maven/com.squareup.okhttp3-okhttp-5.4.0 branch from b43d25f to fe03d2f Compare October 1, 2026 12:28
nilsbehlen added a commit that referenced this pull request Oct 1, 2026
OkHttp 5 is published as Kotlin Multiplatform: the plain okhttp artifact only carries metadata, so Maven builds need okhttp-jvm (which is why Dependabot PR #87 failed to compile). Declaring okio-jvm directly keeps 3.18.2 instead of the 3.17.0 okhttp-jvm would pull in.
@nilsbehlen

Copy link
Copy Markdown
Member

Superseded by #100: OkHttp 5 needs the okhttp-jvm artifact in Maven builds (the plain okhttp artifact only contains Kotlin Multiplatform metadata, hence the compile failure).

@nilsbehlen nilsbehlen mentioned this pull request Oct 1, 2026
@nilsbehlen nilsbehlen closed this Oct 1, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/maven/com.squareup.okhttp3-okhttp-5.4.0 branch October 1, 2026 12:34
nilsbehlen added a commit that referenced this pull request Oct 1, 2026
* Use java-jwt only for tests; align Jackson on 2.22.3

java-jwt is only used by TestJWT, so it no longer becomes a compile/runtime dependency of the client. Bumped to 4.6.1, with the Jackson modules it pulls in aligned via jackson-bom 2.22.3.

* Changelog for 1.6.0

* Update OkHttp to 5.4.0 via okhttp-jvm; reference okio-jvm directly

OkHttp 5 is published as Kotlin Multiplatform: the plain okhttp artifact only carries metadata, so Maven builds need okhttp-jvm (which is why Dependabot PR #87 failed to compile). Declaring okio-jvm directly keeps 3.18.2 instead of the 3.17.0 okhttp-jvm would pull in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant