Packages

@apollo/client

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

Upgrading @apollo/client from 3.5.10 to 3.6.0

1 release in betweenevery note read

Other targets from 3.5.10Newest 3.x3.14.1Latest4.3.5
0
changes to make
0
advisories fixed
7
new
1
fix

Release by release

  1. 3.6.0

    26 Apr 20227 new · 1 fix
    • new

      Allow BatchLink to cancel queued and in-flight operations.

    • new

      Add GraphQLWsLink in @apollo/client/link/subscriptions. This link is similar to the existing WebSocketLink in @apollo/client/link/ws, but uses the newer graphql-ws package and protocol instead of the older subscriptions-transport-ws implementation. This functionality was technically first released in @apollo/client@3.5.10, but semantically belongs in the 3.6.0 minor version.

    • new

      Allow passing defaultOptions to useQuery to avoid clobbering/resetting existing options when useQuery is called repeatedly.

    • new

      Provide additional context to nextFetchPolicy functions to assist with fetchPolicy transitions. More details can be found in the nextFetchPolicy documentation.

3 other lines we could not sort, mostly version bumps
  • Calling fetchMore for queries using the cache-and-network or network-only fetch policies will no longer trigger additional network requests when cache results are complete. Instead, those complete cache results will be delivered as if using the cache-first fetch policy.

    3.6.0
  • Reimplement useQuery and useLazyQuery to use the proposed useSyncExternalStore API from React 18.

    3.6.0
  • The internal use of options.fetchBlockingPromise by useQuery and useLazyQuery may slightly delay the delivery of network results, compared to previous versions of Apollo Client. Since network results are already delivered asynchronously, these timing differences should not be disruptive in most cases. Nevertheless, please open an issue if the timing differences are a problem for you (and you have no easy workaround).

    3.6.0