@apollo/client
4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @apollo/client from 3.12.11 to 3.13.0
1 release in betweenevery note read
- 3
- changes to make
- 0
- advisories fixed
- 3
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- deprecated3.13.0
- deprecated3.13.0
- deprecated3.13.0
Release by release
- new
Adds a new
useSuspenseFragmenthook. - new
Provide a more type-safe option for the previous data value passed to
observableQuery.updateQuery. Using it could result in crashes at runtime as this callback could be called with partial data even though its type reported the value as a complete result. - new
Reject the mutation promise if errors are thrown in the
onCompletedcallback ofuseMutation. - fixed
Ensure errors thrown in the
onCompletedcallback fromuseMutationdon't callonError. - fixed
Fix the return type of the
updateQueryfunction to allow forundefined.updateQueryhad the ability to bail out of the update by returning a falsey value, but the return type enforced a query value. - fixed
In case of a multipart response (e.g. with
@defer), query deduplication will - fixed
Fix the type of the
variablesproperty passed as the 2nd argument to thesubscribeToMorecallback. This was previously reported as thevariablestype for the subscription itself, but is now properly typed as the queryvariables.
- new