VM-332 - MEND - Update dependency com.squareup.retrofit2:converter-jackson to v2.10.0 #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.6.0
->2.10.0
This PR resolves the vulnerabilities described in Issue #17
Version 2.6.0
Version 2.10.0
Mend ensures you have the greatest risk reduction ("Recommended Fix"-highlighted in green) by removing as many vulnerabilities as possible. Click to see how we calculate risk reduction.
Release Notes
square/retrofit (com.squareup.retrofit2:converter-jackson)
v2.10.0
Compare Source
New
Support using
Unit
as a response type. This can be used for non-body HTTP methods likeHEAD
or body-containing HTTP methods likeGET
where the body will be discarded without deserialization.kotlinx.serialization converter!
This was imported from github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/ and remains unchanged from its 1.0.0 release.
The Maven coordinates are
com.squareup.retrofit2:converter-kotlinx-serialization
.JAXB 3 converter!
The Maven coordinates are
com.squareup.retrofit2:converter-jaxb3
.@Header
,@Headers
, and@HeaderMap
can now set non-ASCII values through theallowUnsafeNonAsciiValues
annotation property. These are not technically compliant with the HTTP specification, but are often supported or required by services.Publish a BOM of all modules. The Maven coordinates are
com.squareup.retrofit2:retrofit-bom
.Invocation
now exposes the serviceClass<?>
and the instance on which the method was invoked. This disambiguates the source when service inheritence is used.A response type keeper annotation processor is now available for generating shrinker rules for all referenced types in your service interface. In some cases, it's impossible for static shrinker rules to keep the entirety of what Retrofit needs at runtime. This annotation processor generates those additional rules. For more info see its README.
Changed
Call
,Response
, etc.) which are used via reflection at runtime.Retrofit.create
function now has a non-null lower bound. Even if you specified a nullable type before this function would never return null.Throwable
subtypes (not justException
subtypes) to avoid Java'sUndeclaredThrowableException
when thrown synchronously.suspend fun
functions that returnCall<Body>
. These are never correct, and should declare a return type ofBody
directly.create(ObjectMapper, MediaType)
overload to supply the value of theContent-Type
header for your format.Fixed
v2.9.0
Compare Source
New: RxJava 3 adapter!
The Maven coordinates are
com.squareup.retrofit2:adapter-rxjava3
.Unlike the RxJava 1 and RxJava 2 adapters, the RxJava 3 adapter's
create()
method will produce asynchronous HTTP requests by default. For synchronous requests usecreateSynchronous()
and for synchronous on a scheduler usecreateWithScheduler(..)
.v2.8.2
This ensures that even when you're running on the JVM with Android classes present on the classpath you
get JVM semantics.
v2.8.1
MethodHandles.Lookup
on Android API 24 and 25. The class is only availableon Android API 26 and higher.
v2.8.0
Call.timeout()
which returns theokio.Timeout
of the full call.Call.awaitResponse()
to accept a nullable response type.Java. That bug was fixed in Java 14, and the fix broke our workaround.
v2.7.2
v2.7.1
v2.7.0
This release changes the minimum requirements to Java 8+ or Android 5+.
See this blog post for more information on the change.
Response.error
.v2.6.4
v2.6.3
UndeclaredThrowableException
in rare cases from usingyield
an explicit dispatch which ensures that it will work even on dispatchers which do not support yielding.
v2.6.2
IOException
s being wrapped inUndeclaredThrowableException
in rare cases when usingResponse<..>
as a return type for Kotlin 'suspend' functions.v2.6.1
IOException
s being wrapped inUndeclaredThrowableException
in rare cases.ResponseBody
for responses created byResponse.error
.