Packages

@apollo/client

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

Upgrading @apollo/client from 3.6.10 to 3.7.0

1 release in betweenevery note read

Other targets from 3.6.10Newest 3.x3.14.1Latest4.3.5
1
change to make
0
advisories fixed
6
new
3
fixes

Before you upgrade

Tick each one off as you go
  • deprecated3.7.0

Release by release

  1. 3.7.0

    30 Sep 20226 new · 3 fixes
    • new

      Implement preview support for the @defer directive.

    • new

      Implement useFragment_experimental hook, which represents a lightweight live binding into the ApolloCache, and never triggers network requests of its own.

    • new

      Allow registering named fragments with InMemoryCache to support using ...NamedFragment in queries without redeclaring NamedFragment repeatedly in every query that uses it.

    • new

      Support onError callback for useSubscription hook.

1 other line we could not sort, mostly version bumps
  • The optional subscribeAndCount testing utility exported from @apollo/client/testing/core now takes a single generic TResult type parameter, instead of TData. This type will typically be inferred from the observable argument type, but if you have any explicit calls to subscribeAndCount<TData>(...) in your own codebase, you may need to adjust those calls accordingly.

    3.7.0