From a70e992c3f7d9adea544c40cc2a4640d28f45cc3 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Sat, 11 Jul 2020 14:01:06 -0400 Subject: [PATCH] Prepare for release 4.8.0. --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ README.md | 8 ++++---- build.gradle | 2 +- mockwebserver/README.md | 2 +- okhttp-brotli/README.md | 2 +- okhttp-dnsoverhttps/README.md | 2 +- okhttp-logging-interceptor/README.md | 2 +- okhttp-sse/README.md | 2 +- okhttp-tls/README.md | 2 +- okhttp-urlconnection/README.md | 2 +- 10 files changed, 39 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a0c59526d4c..cb98360de0d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,33 @@ Change Log ========== +## Version 4.8.0 + +_2020-07-11_ + + * New: Change `HeldCertificate.Builder` to use its own ASN.1 certificate encoder. This is part + of our effort to remove the okhttp-tls module's dependency on Bouncy Castle. We think Bouncy + Castle is great! But it's a large dependency (6.5 MiB) and its security provider feature + impacts VM-wide behavior. + + * New: Reduce contention for applications that make a very high number of concurrent requests. + Previously OkHttp used its connection pool as a lock when making changes to connections and + calls. With this change each connection is locked independently. + + * Upgrade: [Okio 2.7.0][okio_2_7_0]. + + ```kotlin + implementation("com.squareup.okio:okio:2.7.0") + ``` + + * Fix: Avoid log messages like "Didn't find class org.conscrypt.ConscryptHostnameVerifier" when + detecting the TLS capabilities of the host platform. + + * Fix: Don't crash in `HttpUrl.topPrivateDomain()` when the hostname is malformed. + + * Fix: Don't attempt Brotli decompression if the response body is empty. + + ## Version 4.7.2 _2020-05-20_ diff --git a/README.md b/README.md index 0ae6d5f23bd6..a4618a4f3168 100644 --- a/README.md +++ b/README.md @@ -99,10 +99,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/4.7.2/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.8.0/jar). ```kotlin -implementation("com.squareup.okhttp3:okhttp:4.7.2") +implementation("com.squareup.okhttp3:okhttp:4.8.0") ``` Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available. @@ -113,10 +113,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/4.7.2/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.8.0/jar). ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.7.2") +testImplementation("com.squareup.okhttp3:mockwebserver:4.8.0") ``` License diff --git a/build.gradle b/build.gradle index 02264ce99d36..1156c6244be1 100644 --- a/build.gradle +++ b/build.gradle @@ -89,7 +89,7 @@ ext.publishedArtifactId = { project -> allprojects { group = 'com.squareup.okhttp3' project.ext.artifactId = rootProject.ext.publishedArtifactId(project) - version = '4.8.0-SNAPSHOT' + version = '4.8.0' repositories { mavenCentral() diff --git a/mockwebserver/README.md b/mockwebserver/README.md index c72e8ffa5470..c52ebc945824 100644 --- a/mockwebserver/README.md +++ b/mockwebserver/README.md @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher); ### Download ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.7.2") +testImplementation("com.squareup.okhttp3:mockwebserver:4.8.0") ``` ### License diff --git a/okhttp-brotli/README.md b/okhttp-brotli/README.md index 5c5f397bd965..3f680c160f15 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:4.7.2") +implementation("com.squareup.okhttp3:okhttp-brotli:4.8.0") ``` [1]: https://github.com/google/brotli diff --git a/okhttp-dnsoverhttps/README.md b/okhttp-dnsoverhttps/README.md index 942b58997006..231ba7857da3 100644 --- a/okhttp-dnsoverhttps/README.md +++ b/okhttp-dnsoverhttps/README.md @@ -7,5 +7,5 @@ API is not considered stable and may change at any time. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.7.2") +testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.8.0") ``` diff --git a/okhttp-logging-interceptor/README.md b/okhttp-logging-interceptor/README.md index ffc73ddb191c..17b121677434 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:4.7.2") +implementation("com.squareup.okhttp3:logging-interceptor:4.8.0") ``` diff --git a/okhttp-sse/README.md b/okhttp-sse/README.md index 070c547355d7..fc10d6aaf060 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:4.7.2") +testImplementation("com.squareup.okhttp3:okhttp-sse:4.8.0") ``` diff --git a/okhttp-tls/README.md b/okhttp-tls/README.md index 171224adf403..3aa5ec9f4eec 100644 --- a/okhttp-tls/README.md +++ b/okhttp-tls/README.md @@ -227,7 +227,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:okhttp-tls:4.7.2") +implementation("com.squareup.okhttp3:okhttp-tls:4.8.0") ``` [held_certificate]: http://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 b410c32aa48d..9a01cc70530b 100644 --- a/okhttp-urlconnection/README.md +++ b/okhttp-urlconnection/README.md @@ -6,5 +6,5 @@ This module integrates OkHttp with `Authenticator` and `CookieHandler` from `jav ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.7.2") +testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.8.0") ```