Skip to content

Bump com.squareup.okhttp3:okhttp from 4.12.0 to 5.4.0#3630

Merged
wgtmac merged 1 commit into
apache:masterfrom
nastra:bump-okhttp
Jun 24, 2026
Merged

Bump com.squareup.okhttp3:okhttp from 4.12.0 to 5.4.0#3630
wgtmac merged 1 commit into
apache:masterfrom
nastra:bump-okhttp

Conversation

@nastra

@nastra nastra commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This supersedes #3614 and bumps com.squareup.okhttp3:okhttp from 4.12.0 to 5.4.0.

Changelog

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

Version 5.4.0

2026-06-08

  • New: Add superpowers to interceptors. Interceptors can now override anything settable on OkHttpClient.Builder, such as the cache, connection pool, socket factory, and DNS. We expect this will allow most users to use interceptors everywhere, insted of mixing and matching interceptors with custom Call.Factory wrappers.
  • Fix: Limit each HTTP/2 response to 256 KiB of total headers.
  • Upgrade: [kotlinx.coroutines 1.11.0][coroutines_1_11_0]. This is used by the optional okhttp-coroutines artifact.
  • Upgrade: [GraalVM 25.0.3][graalvm_25].
  • Upgrade: [Okio 3.17.0][okio_3_17_0].

Version 5.3.2

2025-11-18

  • 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.4][okio_3_16_4].

Version 5.3.1

2025-11-16

This release is the same as 5.3.0. Okio 3.16.3 didn't have a necessary fix!

  • Upgrade: [Okio 3.16.3][okio_3_16_3].

Version 5.3.0

2025-10-30

  • New: Add tags to Call, including computable tags. Use this to attach application-specific metadata to a Call in an EventListener or Interceptor. The tag can be read in any other EventListener or Interceptor.

      override fun intercept(chain: Interceptor.Chain): Response {
        chain.call().tag(MyAnalyticsTag::class) {
          MyAnalyticsTag(...)
        }
    return chain.proceed(chain.request())
    
    }

... (truncated)

Commits

@nastra

nastra commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

@wgtmac can you take a look please?

LOG.info("masterKeyIdentifier: " + masterKeyIdentifier);

final RequestBody requestBody = RequestBody.create(JSON_MEDIA_TYPE, jPayload);
final RequestBody requestBody = RequestBody.create(jPayload, JSON_MEDIA_TYPE);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with this. Does it indicate a breaking change from upstream, or is this a bug before?

@nastra nastra Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it appears they stabilized the APIs with 5.0.0 and had to introduce a bunch of breaking changes as part of that (https://github.com/square/okhttp/blob/master/CHANGELOG.md).

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable. Thanks @nastra!

@wgtmac wgtmac merged commit ec1b866 into apache:master Jun 24, 2026
3 checks passed
@nastra nastra deleted the bump-okhttp branch June 24, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants