Update Apollo GraphQL packages to v4.2.0 #141
Open
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:
4.0.1
->4.2.0
4.0.1
->4.2.0
4.0.1
->4.2.0
4.0.1
->4.2.0
4.0.1
->4.2.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
apollographql/apollo-kotlin (com.apollographql.apollo)
v4.2.0
2025-04-28
Generate custom scalars as inline classes with
@map
and@mapTo
(#6404)It is now possible to configure the adapters to use with scalars by using the
@map
directive:If the
to
parameter is an inline value class, use theinlineProperty
parameter to have the generated code box/unbox the value. In that case,with
needs to point to an adapter of the underlying type:For the common cases where the scalar can be represented as a built-in Kotlin type (String, Boolean, Int, Long, Float, Double), you can use
@mapTo
and the compiler infers the adapter and generates an inline value class automatically:Scalar definitions in schemas downloaded from introspection (#6389)
Downloading or converting an SDL schema from introspection now includes scalar definitions.
This is required for clients to get a full view of the schema.
Support for
@disableErrorPropagation
Apollo Kotlin now automatically adds
@disableErrorPropagation
if your server supports it and you opted in@catchByDefault
in your schema extensions. This allows to use non-null types more liberally and still get support for partial data.See https://github.com/graphql/graphql-js/pull/4348 and https://github.com/graphql-java/graphql-java/pull/3772
Contributors 💜
Many thanks to @bobbysothebys, @jvanderwee, @dhritzkiv, @lwasyl and @rohandhruva for all the contributions and help in this release 💜
👷♂️ All changes
@link
' quickfix (#6402)HttpInterceptor.intercept()
to throwThrowable
(#6403)@DataBuilderDsl
(#6484)withBuiltInDefinitions()
and add flag to dump scalar definitions in SDL (#6389)@map
and@mapTo
(#6404)@ApolloInternal
in public ABI (#6407)@ApolloExperimental
symbols in public API (#6416)v4.1.1
2025-01-24
Kotlin 2.1.0 (#6291)
The artifacts are now compiled with Kotlin 2.1.0. This change should be transparent for JVM and Android users thanks to
languageVersion
but requires klib consumers (native + JS) to update their KGP version to 2.1.0.Rover LSP support in the IntelliJ plugin (#6274)
The IntelliJ plugin now has a dedicated mode for backend developers that uses Rover LSP (Language Server Protocol) to parse federation and connectors directives. This mode is only available when using IntelliJ Ultimate and other IDEs with LSP support. It is recommended for subgraphs authors.
Gradle isolated projects support (#6351)
This release supports Gradle isolated projects for shorter configuration times.
Contributors 💙💙
Many thanks to @jvanderwee, @varahash, @whyoleg, @StylianosGakis and @scana for all the contributions and help in this release 💙!
👷♂️ All changes
onSchema()
once in multi-module scenrios (#6252)v4.1.0
2024-11-04
Ktor 3.0.0
Version 4.1.0 updates usages of Ktor from 2.3.11 to 3.0.0:
apollo-runtime-js
orapollo-debug-server-jvm
, you need to update your app to Ktor 3.0.0+ at the same time as updating to Apollo 4.1.0 (apollo-debug-server-android
is unaffected).apollo-mockserver
orapollo-ktor-support
from this repo, you need to update to the new coordinates.All other cases are unaffected. In particular,
apollo-runtime
on Android and iOS uses OkHttp and NsUrlConnection respectively and is not impacted by the Ktor update.You can read more details in the pull request.
New media type:
application/graphql-response+json
application/graphql-response+json
is a new media type being introduced by the GraphQL over HTTP draft. It allows differentiating a valid GraphQL response from an error JSON response that could be transmitted by a cache or proxy in the HTTP chain.If your server uses
application/graphql-response+json
and returns non-2xx response, Apollo Kotlin will now parse those responses and exposedata
anderrors
instead of returning anApolloHttpException
before.If you need to access the status code, you can do so using
executionContext[HttpInfo]
. For an example, you can restore the throwing behaviour with the following interceptor:K2 support for the IntelliJ plugin
The IntelliJ plugin is now compatible with K2 (#6150)
👷♂️ All changes
apollo-mockserver
andapollo-ktor-support
(#6215)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.