Packages

@apollo/client

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

Upgrading @apollo/client from 3.4.17 to 3.5.0

1 release in betweenevery note read

Other targets from 3.4.17Newest 3.x3.14.1Latest4.3.5
0
changes to make
0
advisories fixed
14
new
6
fixes

Release by release

  1. 3.5.0

    8 Nov 202114 new · 6 fixes
    • new

      Add updateQuery and updateFragment methods to ApolloCache, simplifying common readQuery/writeQuery cache update patterns.

    • new

      Field directives and their arguments can now be included along with field argument names when using field policy keyArgs: [...] notation. For example, if you have a Query.feed field that takes an argument called type and uses a @connection(key:...) directive to keep feed data from different queries separate within the cache, you might configure both using the following InMemoryCache field policy:

    • new

      Report single MissingFieldError instead of a potentially very large MissingFieldError array for incomplete cache reads, improving performance and memory usage.

    • new

      When writing results into InMemoryCache, each written object is now identified using policies.identify after traversing the fields of the object (rather than before), simplifying identification and reducing duplicate work. If you have custom keyFields functions, they still receive the raw result object as their first parameter, but the KeyFieldsContext parameter now provides context.storeObject (the StoreObject just processed by processSelectionSet) and context.readField (a helper function for reading fields from context.storeObject and any References it might contain, similar to readField for read, merge, and cache.modify functions).