Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump retrofitCore from 2.9.0 to 2.11.0 (#712)
Bumps `retrofitCore` from 2.9.0 to 2.11.0. Updates `com.squareup.retrofit2:converter-gson` from 2.9.0 to 2.11.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/square/retrofit/releases">com.squareup.retrofit2:converter-gson's releases</a>.</em></p> <blockquote> <h2>2.11.0</h2> <p><strong>New</strong></p> <ul> <li>The built-in <code>OptionalConverterFactory</code> is now public to allow installing it before other converters which consume all types (e.g., Moshi, Gson, Jackson, etc.).</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Ensure that exceptions thrown from failure to parse method annotations can be observed by multiple threads/callers. Previously only the first caller would see the actual parsing exception and other callers would get a cryptic <code>ClassCastException</code>.</li> </ul> <h2>2.10.0</h2> <p><strong>New</strong></p> <ul> <li> <p>Support using <code>Unit</code> as a response type. This can be used for non-body HTTP methods like <code>HEAD</code> or body-containing HTTP methods like <code>GET</code> where the body will be discarded without deserialization.</p> </li> <li> <p>kotlinx.serialization converter!</p> <p>This was imported from <a href="https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/">github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/</a> and remains unchanged from its 1.0.0 release.</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-kotlinx-serialization</code>.</p> </li> <li> <p>JAXB 3 converter!</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-jaxb3</code>.</p> </li> <li> <p><code>@Header</code>, <code>@headers</code>, and <code>@HeaderMap</code> can now set non-ASCII values through the <code>allowUnsafeNonAsciiValues</code> annotation property. These are not technically compliant with the HTTP specification, but are often supported or required by services.</p> </li> <li> <p>Publish a BOM of all modules. The Maven coordinates are <code>com.squareup.retrofit2:retrofit-bom</code>.</p> </li> <li> <p><code>Invocation</code> now exposes the service <code>Class<?></code> and the instance on which the method was invoked. This disambiguates the source when service inheritence is used.</p> </li> <li> <p>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 <a href="https://github.com/square/retrofit/tree/trunk/retrofit-response-type-keeper#readme">its README</a>.</p> </li> </ul> <p><strong>Changed</strong></p> <ul> <li>Add shrinker rules to retain the generic signatures of built-in types (<code>Call</code>, <code>Response</code>, etc.) which are used via reflection at runtime.</li> <li>Remove backpressure support from RxJava 2 and 3 adapters. Since we only deliver a single value and the Reactive Streams specification states that callers must request a non-zero subscription value, we never need to honor backpressure.</li> <li>Kotlin <code>Retrofit.create</code> function now has a non-null lower bound. Even if you specified a nullable type before this function would never return null.</li> <li>Suspend functions now capture and defer all <code>Throwable</code> subtypes (not just <code>Exception</code> subtypes) to avoid Java's <code>UndeclaredThrowableException</code> when thrown synchronously.</li> <li>Eagerly reject <code>suspend fun</code> functions that return <code>Call<Body></code>. These are never correct, and should declare a return type of <code>Body</code> directly.</li> <li>Support for Java 14-specific and Java 16-specific reflection needed to invoke default methods on interfaces have been moved to separate versions of a class through a multi-release jar. This should have no observable impact other than the jar now contains classes which target Java 14 and Java 16 bytecode that might trip up some static analysis tools which are not aware of multi-release jars.</li> <li>Parameter names are now displayed in exception messages when available in the underlying Java bytecode.</li> <li>Jackson converter now supports binary formats by using byte streams rather than character streams in its implementation. Use the <code>create(ObjectMapper, MediaType)</code> overload to supply the value of the <code>Content-Type</code> header for your format.</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Do not include synthetic methods when doing eager validation.</li> <li>Use per-method rather than per-class locking when parsing annotations. This eliminates contention when multiple calls are made in quick succession at the beginning of the process lifetime.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/square/retrofit/blob/trunk/CHANGELOG.md">com.squareup.retrofit2:converter-gson's changelog</a>.</em></p> <blockquote> <h2>[2.11.0] - 2024-03-28</h2> <p><strong>New</strong></p> <ul> <li>The built-in <code>OptionalConverterFactory</code> is now public to allow installing it before other converters which consume all types (e.g., Moshi, Gson, Jackson, etc.).</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Ensure that exceptions thrown from failure to parse method annotations can be observed by multiple threads/callers. Previously only the first caller would see the actual parsing exception and other callers would get a cryptic <code>ClassCastException</code>.</li> </ul> <h2>[2.10.0] - 2024-03-18</h2> <p><strong>New</strong></p> <ul> <li> <p>Support using <code>Unit</code> as a response type. This can be used for non-body HTTP methods like <code>HEAD</code> or body-containing HTTP methods like <code>GET</code> where the body will be discarded without deserialization.</p> </li> <li> <p>kotlinx.serialization converter!</p> <p>This was imported from <a href="https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/">github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/</a> and remains unchanged from its 1.0.0 release.</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-kotlinx-serialization</code>.</p> </li> <li> <p>JAXB 3 converter!</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-jaxb3</code>.</p> </li> <li> <p><code>@Header</code>, <code>@headers</code>, and <code>@HeaderMap</code> can now set non-ASCII values through the <code>allowUnsafeNonAsciiValues</code> annotation property. These are not technically compliant with the HTTP specification, but are often supported or required by services.</p> </li> <li> <p>Publish a BOM of all modules. The Maven coordinates are <code>com.squareup.retrofit2:retrofit-bom</code>.</p> </li> <li> <p><code>Invocation</code> now exposes the service <code>Class<?></code> and the instance on which the method was invoked. This disambiguates the source when service inheritence is used.</p> </li> <li> <p>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 <a href="https://github.com/square/retrofit/tree/trunk/retrofit-response-type-keeper#readme">its README</a>.</p> </li> </ul> <p><strong>Changed</strong></p> <ul> <li>Add shrinker rules to retain the generic signatures of built-in types (<code>Call</code>, <code>Response</code>, etc.) which are used via reflection at runtime.</li> <li>Remove backpressure support from RxJava 2 and 3 adapters. Since we only deliver a single value and the Reactive Streams specification states that callers must request a non-zero subscription value, we never need to honor backpressure.</li> <li>Kotlin <code>Retrofit.create</code> function now has a non-null lower bound. Even if you specified a nullable type before this function would never return null.</li> <li>Suspend functions now capture and defer all <code>Throwable</code> subtypes (not just <code>Exception</code> subtypes) to avoid Java's <code>UndeclaredThrowableException</code> when thrown synchronously.</li> <li>Eagerly reject <code>suspend fun</code> functions that return <code>Call<Body></code>. These are never correct, and should declare a return type of <code>Body</code> directly.</li> <li>Support for Java 14-specific and Java 16-specific reflection needed to invoke default methods on interfaces have been moved to separate versions of a class through a multi-release jar. This should have no observable impact other than the jar now contains classes which target Java 14 and Java 16 bytecode that might trip up some static analysis tools which are not aware of multi-release jars.</li> <li>Parameter names are now displayed in exception messages when available in the underlying Java bytecode.</li> <li>Jackson converter now supports binary formats by using byte streams rather than character streams in its implementation. Use the <code>create(ObjectMapper, MediaType)</code> overload to supply the value of the <code>Content-Type</code> header for your format.</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Do not include synthetic methods when doing eager validation.</li> <li>Use per-method rather than per-class locking when parsing annotations. This eliminates contention when multiple calls are made in quick succession at the beginning of the process lifetime.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/square/retrofit/commit/cc76c22a68e090f3dd898cbcb0bac30414f59c31"><code>cc76c22</code></a> Prepare version 2.11.0</li> <li><a href="https://github.com/square/retrofit/commit/eba9567812735899f6d33454d83fb0448c489b40"><code>eba9567</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4117">#4117</a> from square/jw.public-optional.2024-03-27</li> <li><a href="https://github.com/square/retrofit/commit/c579693e70486927448a158bdf363bf71da4a0f1"><code>c579693</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4114">#4114</a> from square/jw.locks.2024-03-22</li> <li><a href="https://github.com/square/retrofit/commit/d6eac54ccfa69220f7a3b78c391ec336e9bedf46"><code>d6eac54</code></a> Make optional converter public</li> <li><a href="https://github.com/square/retrofit/commit/9b5e6307b8ab8097fc38b0f7ef26dc5d2d4f2dc1"><code>9b5e630</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4116">#4116</a> from deterclosed/trunk</li> <li><a href="https://github.com/square/retrofit/commit/bab101e678fb7a04fb7a704e5bb92c81a301cb86"><code>bab101e</code></a> all: remove repetitive words</li> <li><a href="https://github.com/square/retrofit/commit/80aee7134862c5ead6e3bc69241397f0512e20fe"><code>80aee71</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4115">#4115</a> from square/renovate/gradle-8.x</li> <li><a href="https://github.com/square/retrofit/commit/83acb51298a3373ad378bcfa9461eab80cd5dd61"><code>83acb51</code></a> Update dependency gradle to v8.7</li> <li><a href="https://github.com/square/retrofit/commit/d41213948e8f8c8f872a2cbbc3dde5364ec3bfca"><code>d412139</code></a> Gracefully handle parse failure with locking</li> <li><a href="https://github.com/square/retrofit/commit/8f5a3c940f876cc5ac416c29d4afb093e57da5d6"><code>8f5a3c9</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4110">#4110</a> from jonapoul/patch-1</li> <li>Additional commits viewable in <a href="https://github.com/square/retrofit/compare/2.9.0...2.11.0">compare view</a></li> </ul> </details> <br /> Updates `com.squareup.retrofit2:retrofit` from 2.9.0 to 2.11.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/square/retrofit/releases">com.squareup.retrofit2:retrofit's releases</a>.</em></p> <blockquote> <h2>2.11.0</h2> <p><strong>New</strong></p> <ul> <li>The built-in <code>OptionalConverterFactory</code> is now public to allow installing it before other converters which consume all types (e.g., Moshi, Gson, Jackson, etc.).</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Ensure that exceptions thrown from failure to parse method annotations can be observed by multiple threads/callers. Previously only the first caller would see the actual parsing exception and other callers would get a cryptic <code>ClassCastException</code>.</li> </ul> <h2>2.10.0</h2> <p><strong>New</strong></p> <ul> <li> <p>Support using <code>Unit</code> as a response type. This can be used for non-body HTTP methods like <code>HEAD</code> or body-containing HTTP methods like <code>GET</code> where the body will be discarded without deserialization.</p> </li> <li> <p>kotlinx.serialization converter!</p> <p>This was imported from <a href="https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/">github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/</a> and remains unchanged from its 1.0.0 release.</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-kotlinx-serialization</code>.</p> </li> <li> <p>JAXB 3 converter!</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-jaxb3</code>.</p> </li> <li> <p><code>@Header</code>, <code>@headers</code>, and <code>@HeaderMap</code> can now set non-ASCII values through the <code>allowUnsafeNonAsciiValues</code> annotation property. These are not technically compliant with the HTTP specification, but are often supported or required by services.</p> </li> <li> <p>Publish a BOM of all modules. The Maven coordinates are <code>com.squareup.retrofit2:retrofit-bom</code>.</p> </li> <li> <p><code>Invocation</code> now exposes the service <code>Class<?></code> and the instance on which the method was invoked. This disambiguates the source when service inheritence is used.</p> </li> <li> <p>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 <a href="https://github.com/square/retrofit/tree/trunk/retrofit-response-type-keeper#readme">its README</a>.</p> </li> </ul> <p><strong>Changed</strong></p> <ul> <li>Add shrinker rules to retain the generic signatures of built-in types (<code>Call</code>, <code>Response</code>, etc.) which are used via reflection at runtime.</li> <li>Remove backpressure support from RxJava 2 and 3 adapters. Since we only deliver a single value and the Reactive Streams specification states that callers must request a non-zero subscription value, we never need to honor backpressure.</li> <li>Kotlin <code>Retrofit.create</code> function now has a non-null lower bound. Even if you specified a nullable type before this function would never return null.</li> <li>Suspend functions now capture and defer all <code>Throwable</code> subtypes (not just <code>Exception</code> subtypes) to avoid Java's <code>UndeclaredThrowableException</code> when thrown synchronously.</li> <li>Eagerly reject <code>suspend fun</code> functions that return <code>Call<Body></code>. These are never correct, and should declare a return type of <code>Body</code> directly.</li> <li>Support for Java 14-specific and Java 16-specific reflection needed to invoke default methods on interfaces have been moved to separate versions of a class through a multi-release jar. This should have no observable impact other than the jar now contains classes which target Java 14 and Java 16 bytecode that might trip up some static analysis tools which are not aware of multi-release jars.</li> <li>Parameter names are now displayed in exception messages when available in the underlying Java bytecode.</li> <li>Jackson converter now supports binary formats by using byte streams rather than character streams in its implementation. Use the <code>create(ObjectMapper, MediaType)</code> overload to supply the value of the <code>Content-Type</code> header for your format.</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Do not include synthetic methods when doing eager validation.</li> <li>Use per-method rather than per-class locking when parsing annotations. This eliminates contention when multiple calls are made in quick succession at the beginning of the process lifetime.</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/square/retrofit/blob/trunk/CHANGELOG.md">com.squareup.retrofit2:retrofit's changelog</a>.</em></p> <blockquote> <h2>[2.11.0] - 2024-03-28</h2> <p><strong>New</strong></p> <ul> <li>The built-in <code>OptionalConverterFactory</code> is now public to allow installing it before other converters which consume all types (e.g., Moshi, Gson, Jackson, etc.).</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Ensure that exceptions thrown from failure to parse method annotations can be observed by multiple threads/callers. Previously only the first caller would see the actual parsing exception and other callers would get a cryptic <code>ClassCastException</code>.</li> </ul> <h2>[2.10.0] - 2024-03-18</h2> <p><strong>New</strong></p> <ul> <li> <p>Support using <code>Unit</code> as a response type. This can be used for non-body HTTP methods like <code>HEAD</code> or body-containing HTTP methods like <code>GET</code> where the body will be discarded without deserialization.</p> </li> <li> <p>kotlinx.serialization converter!</p> <p>This was imported from <a href="https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/">github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/</a> and remains unchanged from its 1.0.0 release.</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-kotlinx-serialization</code>.</p> </li> <li> <p>JAXB 3 converter!</p> <p>The Maven coordinates are <code>com.squareup.retrofit2:converter-jaxb3</code>.</p> </li> <li> <p><code>@Header</code>, <code>@headers</code>, and <code>@HeaderMap</code> can now set non-ASCII values through the <code>allowUnsafeNonAsciiValues</code> annotation property. These are not technically compliant with the HTTP specification, but are often supported or required by services.</p> </li> <li> <p>Publish a BOM of all modules. The Maven coordinates are <code>com.squareup.retrofit2:retrofit-bom</code>.</p> </li> <li> <p><code>Invocation</code> now exposes the service <code>Class<?></code> and the instance on which the method was invoked. This disambiguates the source when service inheritence is used.</p> </li> <li> <p>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 <a href="https://github.com/square/retrofit/tree/trunk/retrofit-response-type-keeper#readme">its README</a>.</p> </li> </ul> <p><strong>Changed</strong></p> <ul> <li>Add shrinker rules to retain the generic signatures of built-in types (<code>Call</code>, <code>Response</code>, etc.) which are used via reflection at runtime.</li> <li>Remove backpressure support from RxJava 2 and 3 adapters. Since we only deliver a single value and the Reactive Streams specification states that callers must request a non-zero subscription value, we never need to honor backpressure.</li> <li>Kotlin <code>Retrofit.create</code> function now has a non-null lower bound. Even if you specified a nullable type before this function would never return null.</li> <li>Suspend functions now capture and defer all <code>Throwable</code> subtypes (not just <code>Exception</code> subtypes) to avoid Java's <code>UndeclaredThrowableException</code> when thrown synchronously.</li> <li>Eagerly reject <code>suspend fun</code> functions that return <code>Call<Body></code>. These are never correct, and should declare a return type of <code>Body</code> directly.</li> <li>Support for Java 14-specific and Java 16-specific reflection needed to invoke default methods on interfaces have been moved to separate versions of a class through a multi-release jar. This should have no observable impact other than the jar now contains classes which target Java 14 and Java 16 bytecode that might trip up some static analysis tools which are not aware of multi-release jars.</li> <li>Parameter names are now displayed in exception messages when available in the underlying Java bytecode.</li> <li>Jackson converter now supports binary formats by using byte streams rather than character streams in its implementation. Use the <code>create(ObjectMapper, MediaType)</code> overload to supply the value of the <code>Content-Type</code> header for your format.</li> </ul> <p><strong>Fixed</strong></p> <ul> <li>Do not include synthetic methods when doing eager validation.</li> <li>Use per-method rather than per-class locking when parsing annotations. This eliminates contention when multiple calls are made in quick succession at the beginning of the process lifetime.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/square/retrofit/commit/cc76c22a68e090f3dd898cbcb0bac30414f59c31"><code>cc76c22</code></a> Prepare version 2.11.0</li> <li><a href="https://github.com/square/retrofit/commit/eba9567812735899f6d33454d83fb0448c489b40"><code>eba9567</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4117">#4117</a> from square/jw.public-optional.2024-03-27</li> <li><a href="https://github.com/square/retrofit/commit/c579693e70486927448a158bdf363bf71da4a0f1"><code>c579693</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4114">#4114</a> from square/jw.locks.2024-03-22</li> <li><a href="https://github.com/square/retrofit/commit/d6eac54ccfa69220f7a3b78c391ec336e9bedf46"><code>d6eac54</code></a> Make optional converter public</li> <li><a href="https://github.com/square/retrofit/commit/9b5e6307b8ab8097fc38b0f7ef26dc5d2d4f2dc1"><code>9b5e630</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4116">#4116</a> from deterclosed/trunk</li> <li><a href="https://github.com/square/retrofit/commit/bab101e678fb7a04fb7a704e5bb92c81a301cb86"><code>bab101e</code></a> all: remove repetitive words</li> <li><a href="https://github.com/square/retrofit/commit/80aee7134862c5ead6e3bc69241397f0512e20fe"><code>80aee71</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4115">#4115</a> from square/renovate/gradle-8.x</li> <li><a href="https://github.com/square/retrofit/commit/83acb51298a3373ad378bcfa9461eab80cd5dd61"><code>83acb51</code></a> Update dependency gradle to v8.7</li> <li><a href="https://github.com/square/retrofit/commit/d41213948e8f8c8f872a2cbbc3dde5364ec3bfca"><code>d412139</code></a> Gracefully handle parse failure with locking</li> <li><a href="https://github.com/square/retrofit/commit/8f5a3c940f876cc5ac416c29d4afb093e57da5d6"><code>8f5a3c9</code></a> Merge pull request <a href="https://redirect.github.com/square/retrofit/issues/4110">#4110</a> from jonapoul/patch-1</li> <li>Additional commits viewable in <a href="https://github.com/square/retrofit/compare/2.9.0...2.11.0">compare view</a></li> </ul> </details> <br /> You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information