Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 17, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-4.1, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

release-4.1 is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on release-4.1.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@apollo/[email protected]

Minor Changes

  • #12923 2aa31c7 Thanks @jerelmiller! - Fix an issue where deferred payloads that reteurned arrays with fewer items than the original cached array would retain items from the cached array. This change includes @stream arrays where stream arrays replace the cached arrays.

  • #12926 c7fba99 Thanks @jerelmiller! - Support the newer incremental delivery format for the @defer directive implemented in [email protected]. Import the GraphQL17Alpha9Handler to use the newer incremental delivery format with @defer.

    import { GraphQL17Alpha9Handler } from "@apollo/client/incremental";
    
    const client = new ApolloClient({
      // ...
      incrementalHandler: new GraphQL17Alpha9Handler(),
    });

    [!NOTE]
    In order to use the GraphQL17Alpha9Handler, the GraphQL server MUST implement the newer incremental delivery format. You may see errors or unusual behavior if you use the wrong handler. If you are using Apollo Router, continue to use the Defer20220824Handler because Apollo Router does not yet support the newer incremental delivery format.

  • #12918 562e219 Thanks @jerelmiller! - Add support for the @stream directive on both the Defer20220824Handler and the GraphQL17Alpha2Handler.

    [!NOTE]
    The implementations of @stream differ in the delivery of incremental results between the different GraphQL spec versions. If you upgrading from the older format to the newer format, expect the timing of some incremental results to change.

Patch Changes

  • #12925 f538a83 Thanks @jerelmiller! - Fix an issue where calling fetchMore with @defer or @stream would not rerender incremental results as they were streamed.

  • #12923 01cace0 Thanks @jerelmiller! - Improve the cache data loss warning message when existing or incoming is an array.

Copy link

pkg-pr-new bot commented Sep 17, 2025

npm i https://pkg.pr.new/apollographql/apollo-client/@apollo/client@12928

commit: dd6b39d

@apollo-librarian
Copy link

apollo-librarian bot commented Sep 17, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 1ea7cecd80eae869a290b791
Build Logs: View logs

@github-actions github-actions bot added the auto-cleanup 🤖 label Sep 17, 2025
Copy link
Contributor Author

github-actions bot commented Sep 17, 2025

size-limit report 📦

Path Size
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (CJS) 43.53 KB (+0.02% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) (CJS) 38.44 KB (-0.01% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" 32.92 KB (+0.03% 🔺)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) 27.05 KB (+0.06% 🔺)
import { ApolloProvider } from "@apollo/client/react" 5.97 KB (-0.04% 🔽)
import { ApolloProvider } from "@apollo/client/react" (production) 1001 B (+0.71% 🔺)
import { useQuery } from "@apollo/client/react" 7.43 KB (+0.32% 🔺)
import { useQuery } from "@apollo/client/react" (production) 2.39 KB (+0.17% 🔺)
import { useLazyQuery } from "@apollo/client/react" 7.15 KB (+0.07% 🔺)
import { useLazyQuery } from "@apollo/client/react" (production) 2.16 KB (+0.28% 🔺)
import { useMutation } from "@apollo/client/react" 6.53 KB (-0.03% 🔽)
import { useMutation } from "@apollo/client/react" (production) 1.52 KB (+0.33% 🔺)
import { useSubscription } from "@apollo/client/react" 6.84 KB (-0.23% 🔽)
import { useSubscription } from "@apollo/client/react" (production) 1.82 KB (+0.38% 🔺)
import { useSuspenseQuery } from "@apollo/client/react" 8.64 KB (0%)
import { useSuspenseQuery } from "@apollo/client/react" (production) 3.67 KB (+0.11% 🔺)
import { useBackgroundQuery } from "@apollo/client/react" 8.42 KB (+0.16% 🔺)
import { useBackgroundQuery } from "@apollo/client/react" (production) 3.44 KB (+0.18% 🔺)
import { useLoadableQuery } from "@apollo/client/react" 8.38 KB (+0.03% 🔺)
import { useLoadableQuery } from "@apollo/client/react" (production) 3.43 KB (+0.18% 🔺)
import { useReadQuery } from "@apollo/client/react" 6.65 KB (0%)
import { useReadQuery } from "@apollo/client/react" (production) 1.66 KB (+0.54% 🔺)
import { useFragment } from "@apollo/client/react" 6.71 KB (+0.03% 🔺)
import { useFragment } from "@apollo/client/react" (production) 1.71 KB (+0.18% 🔺)

@jerelmiller jerelmiller merged commit 36e2413 into release-4.1 Sep 17, 2025
44 checks passed
@jerelmiller jerelmiller deleted the changeset-release/release-4.1 branch September 17, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant