From 4739b278066c25de7d1fcada943e0aaddda7e7a7 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Mon, 12 Aug 2019 13:00:00 -0400 Subject: [PATCH] Prepare for release 4.1.0. --- CHANGELOG.md | 31 ++++++++++++++++++++++++++++ README.md | 4 ++-- build.gradle | 4 ++-- gradle.properties | 2 +- mockwebserver/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, 42 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26d0a0314..9d841de09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,36 @@ Change Log ========== +## Version 4.1.0 + +_2019-08-12_ + + [brotli]: https://github.com/google/brotli + + * **OkHttp's new okhttp-brotli module implements Brotli compression.** Install the interceptor to + enable [Brotli compression][brotli], which compresses 5-20% smaller than gzip. + + ``` + val client = OkHttpClient.Builder() + .addInterceptor(BrotliInterceptor) + .build() + ``` + + This artifact has a dependency on Google's Brotli decoder (95 KiB). + + * New: `EventListener.proxySelectStart()`, `proxySelectEnd()` events give visibility into the + proxy selection process. + * New: `Response.byteString()` reads the entire response into memory as a byte string. + * New: `OkHttpClient.x509TrustManager` accessor. + * New: Permit [new WebSocket response codes][iana_websocket]: 1012 (Service Restart), 1013 (Try + Again Later), and 1014 (invalid response from the upstream). + * New: Build with Kotlin 1.3.41, BouncyCastle 1.62, and Conscrypt 2.2.1. + * Fix: Recover gracefully when a a coalesced connection immediately goes unhealthy. + * Fix: Defer the `SecurityException` when looking up the default proxy selector. + * Fix: Don't use brackets formatting IPv6 host names in MockWebServer. + * Fix: Don't permit cache iterators to remove entries that are being written. + + ## Version 4.0.1 _2019-07-10_ @@ -1830,3 +1860,4 @@ Initial release. [upgrading_to_okhttp_4]: https://square.github.io/okhttp/upgrading_to_okhttp_4/ [interceptors]: https://square.github.io/okhttp/interceptors/ [okhttp4_blog_post]: https://cashapp.github.io/2019-06-26/okhttp-4-goes-kotlin + [iana_websocket]: https://www.iana.org/assignments/websocket/websocket.txt diff --git a/README.md b/README.md index ceb4ac666..bb34cd2a3 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ Releases Our [change log][changelog] has release history. ```kotlin -implementation("com.squareup.okhttp3:okhttp:4.0.1") +implementation("com.squareup.okhttp3:okhttp:4.1.0") ``` Snapshot builds are [available][snap]. @@ -120,7 +120,7 @@ MockWebServer OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients. ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.0.1") +testImplementation("com.squareup.okhttp3:mockwebserver:4.1.0") ``` diff --git a/build.gradle b/build.gradle index a11ba5a8e..154bee9d7 100644 --- a/build.gradle +++ b/build.gradle @@ -189,8 +189,8 @@ subprojects { project -> includes = ['Module.md'] } externalDocumentationLink { - url = new URL("https://square.github.io/okio/2.x/okio/jvm/index.html") - packageListUrl = new URL("https://square.github.io/okio/2.x/okio/jvm/package-list") + url = new URL("https://square.github.io/okio/2.x/okio/") + packageListUrl = new URL("https://square.github.io/okio/2.x/okio/package-list") } } } diff --git a/gradle.properties b/gradle.properties index 8050c2086..a0791298b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8' GROUP=com.squareup.okhttp3 -VERSION_NAME=4.1.0-SNAPSHOT +VERSION_NAME=4.1.0 POM_URL=https://github.com/square/okhttp POM_SCM_URL=https://github.com/square/okhttp diff --git a/mockwebserver/README.md b/mockwebserver/README.md index 8f46f81b1..cac8c1cc0 100644 --- a/mockwebserver/README.md +++ b/mockwebserver/README.md @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher); ### Download ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.0.1") +testImplementation("com.squareup.okhttp3:mockwebserver:4.1.0") ``` ### License diff --git a/okhttp-dnsoverhttps/README.md b/okhttp-dnsoverhttps/README.md index 4aa1710ed..b5ef1c907 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.0.1") +testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.1.0") ``` diff --git a/okhttp-logging-interceptor/README.md b/okhttp-logging-interceptor/README.md index 2c45db636..5b0a74003 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.0.1") +implementation("com.squareup.okhttp3:logging-interceptor:4.1.0") ``` diff --git a/okhttp-sse/README.md b/okhttp-sse/README.md index c65b05e2f..aa1fdf972 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.0.1") +testImplementation("com.squareup.okhttp3:okhttp-sse:4.1.0") ``` diff --git a/okhttp-tls/README.md b/okhttp-tls/README.md index f3ba23e34..66809a0dd 100644 --- a/okhttp-tls/README.md +++ b/okhttp-tls/README.md @@ -227,7 +227,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:okhttp-tls:4.0.1") +implementation("com.squareup.okhttp3:okhttp-tls:4.1.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 797923a78..8b4395f06 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.0.1") +testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.1.0") ```