|
1 | 1 | Change Log
|
2 | 2 | ==========
|
3 | 3 |
|
| 4 | +Version 2.5.0 *(2018-11-18)* |
| 5 | +============================ |
| 6 | + |
| 7 | + * New: Built-in support for Kotlin's `Unit` type. This behaves the same as Java's `Void` where the body |
| 8 | + content is ignored and immediately discarded. |
| 9 | + * New: Build-in support for Java 8's `Optional` and `CompletableFuture` types. Previously the 'converter-java8' |
| 10 | + and 'adapter-java8' dependencies were needed and explicitly adding `Java8OptionalConverterFactory` and/or |
| 11 | + `Java8CallAdapterFactory` to your `Retrofit.Builder` in order to use these types. Support is now built-in and |
| 12 | + those types and their artifacts are marked as deprecated. |
| 13 | + * New: `Invocation` class provides a reference to the invoked method and argument list as a tag on the |
| 14 | + underlying OkHttp `Call`. This can be accessed from an OkHttp interceptor for things like logging, analytics, |
| 15 | + or metrics aggregation. |
| 16 | + * New: Kotlin extension for `Retrofit` which allows you call `create` passing the interface type only as |
| 17 | + a generic parameter (e.g., `retrofit.create<MyService>()`). |
| 18 | + * New: Added `Response.success` overload which allows specifying a custom 2xx status code. |
| 19 | + * New: Added `Call.failure` overload which allows passing any `Throwable` subtype. |
| 20 | + * New: Minimal R8 rules now ship inside the jar requiring no client configuration in the common case. |
| 21 | + * Fix: Do not propagate fatal errors to the callback. They are sent to the thread's uncaught |
| 22 | + exception handler. |
| 23 | + * Fix: Do not enqueue/execute an otherwise useless call when the RxJava type is disposed by `onSubscribe`. |
| 24 | + * Fix: Call `RxJavaPlugins` assembly hook when creating an RxJava 2 type. |
| 25 | + * Fix: Ensure both the Guava and Java 8 `Optional` converters delegate properly. This ensures that converters |
| 26 | + registered prior to the optional converter can be used for deserializing the body type. |
| 27 | + * Fix: Prevent `@Path` values from participating in path-traversal. This ensures untrusted input passed as |
| 28 | + a path value cannot cause you to make a request to an un-intended relative URL. |
| 29 | + * Fix: Simple XML converter (which is deprecated) no longer wraps subtypes of `RuntimeException` |
| 30 | + or `IOException` when it fails. |
| 31 | + * Fix: Prevent JAXB converter from loading remote entities and DTDs. |
| 32 | + * Fix: Correctly detect default methods in interfaces on Android (API 24+). These still do not work, but |
| 33 | + now a correct exception will be thrown when detected. |
| 34 | + * Fix: Report more accurate exceptions when a `@QueryName` or `@QueryMap` precedes a `@Url` parameter. |
| 35 | + * Update OkHttp dependency to 3.12. |
| 36 | + |
| 37 | + |
4 | 38 | Version 2.4.0 *(2018-03-14)*
|
5 | 39 | ----------------------------
|
6 | 40 |
|
|
0 commit comments