@apollo/client
4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @apollo/client from 4.2.9 to 4.2.10
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 4
- fixes
Release by release
- fixed
Fix accidental widening of the
client.mutatereturn type whenoptimisticResponsewas present. - fixed
Fix result types widened when a query's variables had constant types (e.g.
TypedDocumentNode<Data, { type: "main" }>). This caused options such asreturnPartialDataorerrorPolicyto be reported as their widened types (e.g.boolean,ErrorPolicy) instead of the value that was passed which returned the wrongdataanddataStatetypes. - fixed
Fix issue where unknown options were permitted by TypeScript when passed alongside a valid option to APIs with modern signatures.
- fixed
Update the return type of
refetch,fetchMoreanduseLazyQuery'sexecutefunction on the providederrorPolicy. Previously these APIs all used the default type which typeddataasTData | undefinedanderrorasErrorLike | undefined.
- fixed