Browse Source

Prepare next development version

Jake Wharton 1 month ago
parent
commit
aeb7b6c21a
2 changed files with 40 additions and 1 deletions
  1. 39
    0
      CHANGELOG.md
  2. 1
    1
      README.md

+ 39
- 0
CHANGELOG.md View File

@@ -1,6 +1,45 @@
1 1
 Change Log
2 2
 ==========
3 3
 
4
+Version 2.6.0 *(2019-06-05)*
5
+----------------------------
6
+
7
+ * New: Support `suspend` modifier on functions for Kotlin! This allows you to express the asynchrony of HTTP requests
8
+   in an idiomatic fashion for the language.
9
+
10
+   ```kotlin
11
+   @GET("users/{id}")
12
+   suspend fun user(@Path("id") long id): User
13
+   ```
14
+
15
+   Behind the scenes this behaves as if defined as `fun user(...): Call<User>` and then invoked with `Call.enqueue`.
16
+   You can also return `Response<User>` for access to the response metadata.
17
+
18
+   Currently this integration only supports non-null response body types. Follow
19
+   [issue 3075](https://github.com/square/retrofit/issues/3075) for nullable type support.
20
+
21
+ * New: **`@Tag`** parameter annotation for setting tags on the underlying OkHttp `Request` object. These can be read
22
+   in `CallAdapter`s or OkHttp `Interceptor`s for tracing, analytics, varying behavior, and more.
23
+
24
+ * New: **`@SkipCallbackExecutor`** method annotation will result in your `Call` invoking its `Callback` on the
25
+   background thread on which the HTTP call was made.
26
+
27
+ * New: Support OkHttp's `Headers` type for `@HeaderMap` parameters.
28
+
29
+ * New: Add `Retrofit.Builder.baseUrl(URL)` overload.
30
+
31
+ * Fix: Add embedded R8/ProGuard rule which retains Retrofit interfaces (while still allowing obfuscation). This
32
+   is needed because R8 running in 'full mode' (i.e., not in ProGuard-compatibility mode) will see that there are
33
+   no subtypes of these interfaces and rewrite any code which references instances to null.
34
+ * Fix: Mark `HttpException.response()` as `@Nullable` as serializing the exception does not retain this instance.
35
+ * Fix: Fatal errors (such as stack overflows, out of memory, etc.) now propagate to the OkHttp `Dispatcher` thread
36
+   on which they are running.
37
+ * Fix: Ensure JAX-B converter closes the response body when an exception is thrown during deserialization.
38
+ * Fix: Ignore static methods when performing eager validation of interface methods.
39
+ * Fix: Ensure that calling `source()` twice on the `ResponseBody` passed to a `Converter` always returns the same
40
+   instance. Prior to the fix, intermediate buffering would cause response data to be lost.
41
+
42
+
4 43
 Version 2.5.0 *(2018-11-18)*
5 44
 ----------------------------
6 45
 

+ 1
- 1
README.md View File

@@ -9,7 +9,7 @@ For more information please see [the website][1].
9 9
 Download
10 10
 --------
11 11
 
12
-Download [the latest JAR][2] or grab from Maven central at the coordinates `com.squareup.retrofit2:retrofit:2.5.0`.
12
+Download [the latest JAR][2] or grab from Maven central at the coordinates `com.squareup.retrofit2:retrofit:2.6.0`.
13 13
 
14 14
 Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
15 15
 

Loading…
Cancel
Save