Packages

@apollo/client

4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.10.0

24 Apr 2024Where it was published

3.14.1 is the newest release of 3.x.

In short

2 removed8 new3 fixed

  • removed

    Remove alpha designation for queryRef.toPromise() to stabilize the API.

  • removed

    Remove alpha designation for createQueryPreloader to stabilize the API.

Release note

Minor Changes

  • Adds createMockFetch utility for integration testing that includes the link chain

  • createTestSchema now uses graphql-tools mergeResolvers to merge resolvers instead of a shallow merge.

  • Rename createProxiedSchema to createTestSchema and createMockFetch to createSchemaFetch.

  • Call createMockSchema inside createTestSchema.

  • Add ability to set min and max delay in createSchemaFetch

  • Adds proxiedSchema and createMockSchema testing utilities

  • Add watchFragment method to the cache and expose it on ApolloClient, refactor useFragment using watchFragment.

  • removed

    Remove alpha designation for queryRef.toPromise() to stabilize the API.

  • removed

    Remove alpha designation for createQueryPreloader to stabilize the API.

  • Moves new testing utilities to their own entrypoint, testing/experimental

Patch Changes

  • Adjust useReadQuery wrapper logic to work with transported objects.

  • Wrap useQueryRefHandlers in wrapHook.

  • Export WatchFragmentOptions and WatchFragmentResult from main entrypoint and fix bug where this wasn't bound to the watchFragment method on ApolloClient.