@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
- 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
- new
Implement preview support for the
@deferdirective. - new
Implement
useFragment_experimentalhook, which represents a lightweight live binding into theApolloCache, and never triggers network requests of its own. - new
Allow registering named fragments with
InMemoryCacheto support using...NamedFragmentin queries without redeclaringNamedFragmentrepeatedly in every query that uses it. - new
Support
onErrorcallback foruseSubscriptionhook.
- new
1 other line we could not sort, mostly version bumps
- 3.7.0
The optional
subscribeAndCounttesting utility exported from@apollo/client/testing/corenow takes a single genericTResulttype parameter, instead ofTData. This type will typically be inferred from theobservableargument type, but if you have any explicit calls tosubscribeAndCount<TData>(...)in your own codebase, you may need to adjust those calls accordingly.