Packages

@apollo/client

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

Upgrading @apollo/client from 3.1.5 to 3.2.0

1 release in betweenevery note read

Other targets from 3.1.5Newest 3.x3.14.1Latest4.3.5
0
changes to make
0
advisories fixed
11
new
3
fixes

Start here

Release by release

  1. 3.2.0

    14 Sep 202011 new · 3 fixes
    • new

      In TypeScript, all APIs that take DocumentNode parameters now may alternatively take TypeDocumentNode<Data, Variables>. This type has the same JavaScript representation but allows the APIs to infer the data and variable types instead of requiring you to specify types explicitly at the call site.

    • new

      Bring back an improved form of heuristic fragment matching, by allowing possibleTypes to specify subtype regular expression strings, which count as matches if the written result object has all the fields expected for the fragment.

    • new

      Allow options.nextFetchPolicy to be a function that takes the current FetchPolicy and returns a new (or the same) FetchPolicy, making nextFetchPolicy more suitable for global use in defaultOptions.watchQuery.

    • new

      Implement useReactiveVar hook for consuming reactive variables in React components.