alibabacloud-microservice-demo
alibabacloud-microservice-demo copied to clipboard
Bump com.squareup.retrofit2:retrofit from 2.3.0 to 2.5.0 in /arms-demo/mock-client
Bumps com.squareup.retrofit2:retrofit from 2.3.0 to 2.5.0.
Changelog
Sourced from com.squareup.retrofit2:retrofit's changelog.
Version 2.5.0 (2018-11-18)
- New: Built-in support for Kotlin's
Unittype. This behaves the same as Java'sVoidwhere the body content is ignored and immediately discarded.- New: Built-in support for Java 8's
OptionalandCompletableFuturetypes. Previously the 'converter-java8' and 'adapter-java8' dependencies were needed and explicitly addingJava8OptionalConverterFactoryand/orJava8CallAdapterFactoryto yourRetrofit.Builderin order to use these types. Support is now built-in and those types and their artifacts are marked as deprecated.- New:
Invocationclass provides a reference to the invoked method and argument list as a tag on the underlying OkHttpCall. This can be accessed from an OkHttp interceptor for things like logging, analytics, or metrics aggregation.- New: Kotlin extension for
Retrofitwhich allows you callcreatepassing the interface type only as a generic parameter (e.g.,retrofit.create<MyService>()).- New: Added
Response.successoverload which allows specifying a custom 2xx status code.- New: Added
Calls.failureoverload which allows passing anyThrowablesubtype.- New: Minimal R8 rules now ship inside the jar requiring no client configuration in the common case.
- Fix: Do not propagate fatal errors to the callback. They are sent to the thread's uncaught exception handler.
- Fix: Do not enqueue/execute an otherwise useless call when the RxJava type is disposed by
onSubscribe.- Fix: Call
RxJavaPluginsassembly hook when creating an RxJava 2 type.- Fix: Ensure both the Guava and Java 8
Optionalconverters delegate properly. This ensures that converters registered prior to the optional converter can be used for deserializing the body type.- Fix: Prevent
@Pathvalues from participating in path-traversal. This ensures untrusted input passed as a path value cannot cause you to make a request to an un-intended relative URL.- Fix: Simple XML converter (which is deprecated) no longer wraps subtypes of
RuntimeExceptionorIOExceptionwhen it fails.- Fix: Prevent JAXB converter from loading remote entities and DTDs.
- Fix: Correctly detect default methods in interfaces on Android (API 24+). These still do not work, but now a correct exception will be thrown when detected.
- Fix: Report more accurate exceptions when a
@QueryNameor@QueryMapprecedes a@Urlparameter.- Update OkHttp dependency to 3.12.
Version 2.4.0 (2018-03-14)
- New:
Retrofit.Builderexposes mutable lists of the added converter and call adapter factories.- New: Call adapter added for Scala's
Future.- New: Converter for JAXB replaces the now-deprecated converter for Simple XML Framework.
- New: Add Java 9 automatic module names for each artifact corresponding to their root package.
- Fix: Do not swallow
Errors from callbacks (usuallyOutOfMemoryError).- Fix: Moshi and Gson converters now assert that the full response was consumed. This prevents hiding bugs in faulty adapters which might not have consumed the full JSON input which would then cause failures on the next request over that connection.
- Fix: Do not conflate OkHttp
Callcancelation with RxJava unsubscription/disposal. Prior to this change, canceling of aCallwould prevent a cancelation exception from propagating down the Rx stream.
Commits
40621bf[maven-release-plugin] prepare release parent-2.5.08bd6c99Prepare next development version5d6650aMerge pull request #2967 from square/jakew/robo/2018-11-1823592bcMerge pull request #2968 from square/jakew/okhhtp/2018-11-1801e024bUpdate OkHttp to 3.127d8dd16Update Robolectricf0cad11Merge pull request #2962 from square/jakew/completable-future-android/2018-11-16bc62069Merge pull request #2963 from square/jakew/nullability/2018-11-167dcac1dMerge pull request #2964 from square/jakew/header-tests/2018-11-1607cb4aeAdd tests for form and multipart header values and overrides- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.