Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Apollo GraphQL packages to v2.5.14 #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 28, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.apollographql.apollo:apollo-runtime 2.5.6 -> 2.5.14 age adoption passing confidence
com.apollographql.apollo 2.5.6 -> 2.5.14 age adoption passing confidence

Release Notes

apollographql/apollo-android (com.apollographql.apollo:apollo-runtime)

v2.5.14

2022-11-18

A patch release to fix an issue where the ApolloCall could end up in a bad state. Many thanks to @​WilliamsDHI for diving into this 💙!

👷‍ All changes

  • update terminate and responseCallback methods to return Optional.absent() in IDLE/TERMINATED state (#​4383)

v2.5.13

A 2.x maintainance release with a couple of bugfixes. Many thanks to @​eduardb for diving into #​2818 💙

What's Changed

Full Changelog: apollographql/apollo-kotlin@v2.5.12...v2.5.13

v2.5.12

Version 2.5.12 is a maintenance release with a fix to restore downloading schemas as SDL, and a fix for Kotlin 1.7 compatibility.

💜 Many thanks to @​eg-ndobrijevic and @​remcomokveld for raising these issues! 💜

👷 All Changes

v2.5.11

Version 2.5.11 is a maintenance release with fixes for registerApolloOperations and query batching.

💜 Many thanks to @​AOrobator and @​rocketraman for their awesome contributions and feedback !💜

👷 All Changes

Full Changelog: apollographql/apollo-kotlin@v2.5.10...v2.5.11

v2.5.10

Version 2.5.10 is a maintenance release with a few bugfixes, mutiny support and a new Gradle register${VariantName}ApolloOperations task to register your operations to the Apollo registry.

💜 Many thanks to @​ProVir, @​aoudiamoncef and @​jgarrow for their contributions !💜

✨[new] Mutiny support (#​3213)

Version 2.5.10 adds support for the Mutiny reactive library.

Add the dependency:

// Mutiny support
implementation 'com.apollographql.apollo:apollo-mutiny-support:x.y.z'

And convert your ApolloCall to a Mutiny Uni:

// Create a query object
val query = EpisodeHeroNameQuery(episode = Episode.EMPIRE.toInput())

// Directly create Uni with Kotlin extension
val uni = apolloClient.mutinyQuery(query)

Read more in the documentation

✨[new] register${VariantName}ApolloOperations (#​3403)

If you're using Apollo safelisting, you can now upload the transformed operations from Gradle directly. Add a registerOperations {} block to the apollo {} block:

apollo {
  service("service") {
    registerOperations {
      // You can get your key from https://studio.apollographql.com/graph/$graph/settings
      key.set(System.getenv("APOLLO_KEY"))
      graph.set(System.getenv("APOLLO_GRAPH"))
      // Use "current" by default or any other graph variant
      graphVariant.set("current")
    }
  }
}

Then call ./gradlew registerMainServiceApolloOperations to register your operations to the registry. The operations will be registered including the added __typename fields that might be added during codegen.

👷 All Changes

New Contributors

Full Changelog: apollographql/apollo-kotlin@v2.5.9...v2.5.10

v2.5.9

A mini-release to include a fix for query batching (#​3146) that didn't make it in time for 2.5.8.

👷‍ Fixes

  • [Query batching] Fix overriding canBeBatched value when cloning QueryCall with toBuilder() (#​3146)

v2.5.8

Version 2.5.8 adds support for Query Batching thanks to the awesome work of @​joaquim-verges (#​3117) 🙌 as well as reactor bindings made with 💙 by @​aoudiamoncef (#​3138). Thanks a lot for making Apollo Android better️!

Query Batching

Query batching collects multiple GraphQL queries happening in a short timeframe and sends them in a single HTTP call to a compatible server. This minimizes the number of HTTP calls, for an exemple when a new screen is displayed and multiple queries are sent at the same time.

To enable batching in your ApolloClient:

val apolloClient = ApolloClient.builder()
        .serverUrl("https://")
        .batchingConfiguration(
            BatchConfig(
                // enable batching
                batchingEnabled = true,
                // check queries every 20ms
                batchIntervalMs = 20,
                // or send as soon as there are 10 queries queued
                maxBatchSize = 10  
            )
        )
        .build()
apolloClient.startBatchPoller()

Execute your queries:

val response = apolloClient.query(MyQuery())
    .toBuilder()
    .canBeBatched(true)
    .build()
    .await()

Stop batching:

apolloClient.stopBatchPoller()

Note: Enabling query batching reduces the number of HTTP calls but increases latency. Since the Batcher is run from a timer, an otherwise fast query will have to wait for both the timer to happen, and the backend to process all the events in the batch.

Reactor bindings

Project reactor is a reactive streams implementation for building non-blocking applications on the JVM. It's often used with Spring Boot for an example.

To add to your project:

// Reactor support
implementation("com.apollographql.apollo:apollo-reactor-support:x.y.z")

The usage is very similar to the RxJava2/RxJava3 bindings:

// Create Mono from a query
val mono = apolloClient.reactorQuery(query)

// Create Flux from a subscription
val flux = apolloClient.reactorSubscribe(subscription)

For more information, refer to the documentation.

Full Changelog

✨ New

  • Implement Query Batching for apollo-runtime (#​3117)
  • Add Reactor support (#​3138)

👷‍ Fixes

  • [Gradle Plugin] pass 'operationName' in the introspection query (#​3126)

v2.5.7

Version 2.5.7 is built with Kotlin 1.5.0 and compatible with coroutines 1.5.0. It also fixes a regression while parsing defaultValues with Int values that should be coerced to Float and allows to change the buffering of MPP subscription messages thanks to the awesome work of @​joaquim-verges (#​3109) and @​nealsanche (#​3096)

Full Changelog

✨ New

  • Coroutines 1.5.0 support

👷‍ Fixes

  • [Codegen] Codegen compilation error for Float scalars with default values in Input objects (#​3108)
  • [MPP] Subscriptions seem to be dropping items (#​3095)

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title Update Apollo GraphQL packages to v2.5.14 Update dependency com.apollographql.apollo:apollo-runtime to v2.5.14 Oct 1, 2023
@renovate renovate bot changed the title Update dependency com.apollographql.apollo:apollo-runtime to v2.5.14 Update Apollo GraphQL packages to v2.5.14 Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants