PackageTrack

npm · #4032

@apollo/client

4.2.12apollographql/apollo-client

A fully-featured caching GraphQL client.

Release timeline

723 releases since 2019
2020202120222023202420252026

Releases

  1. 3.4.0-rc.1016 Jun 2021pre-release

    Nothing published for this version

  2. 3.4.0-rc.916 Jun 2021pre-release

    Nothing published for this version

  3. 3.4.0-rc.816 Jun 2021pre-release

    Nothing published for this version

  4. 3.4.0-rc.715 Jun 2021pre-release

    Nothing published for this version

  5. 3.4.0-rc.68 Jun 2021pre-release

    Nothing published for this version

  6. 3.4.0-rc.57 Jun 2021pre-release

    Nothing published for this version

  7. 3.4.0-rc.44 Jun 2021pre-release

    Nothing published for this version

  8. 3.4.0-rc.32 Jun 2021pre-release

    Nothing published for this version

  9. 3.4.0-rc.226 May 2021pre-release

    Nothing published for this version

  10. 3.4.0-rc.125 May 2021pre-release

    Nothing published for this version

  11. 3.4.0-rc.019 May 2021pre-release

    Nothing published for this version

  12. 3.4.0-beta.2819 May 2021pre-release

    Nothing published for this version

  13. 3.4.0-beta.2718 May 2021pre-release

    Nothing published for this version

  14. 3.4.0-beta.2612 May 2021pre-release

    Nothing published for this version

  15. 3.4.0-beta.2511 May 2021pre-release

    Nothing published for this version

  16. 3.4.0-beta.245 May 2021pre-release

    Nothing published for this version

  17. 3.4.0-beta.2313 Apr 2021pre-release

    Nothing published for this version

  18. 3.4.0-beta.2210 Apr 2021pre-release

    Nothing published for this version

  19. 3.4.0-beta.217 Apr 2021pre-release

    Nothing published for this version

  20. 3.4.0-beta.205 Apr 2021pre-release

    Nothing published for this version

  21. 3.4.0-beta.1926 Mar 2021pre-release

    Nothing published for this version

  22. 3.4.0-beta.1826 Mar 2021pre-release

    Nothing published for this version

  23. 3.4.0-beta.1725 Mar 2021pre-release

    Nothing published for this version

  24. 3.4.0-beta.1624 Mar 2021pre-release

    Nothing published for this version

  25. 3.4.0-beta.1517 Mar 2021pre-release

    Nothing published for this version

  26. 3.4.0-beta.1415 Mar 2021pre-release

    Nothing published for this version

  27. 3.4.0-beta.1311 Mar 2021pre-release

    Nothing published for this version

  28. 3.4.0-beta.123 Mar 2021pre-release

    Nothing published for this version

  29. 3.4.0-beta.1114 Feb 2021pre-release

    Nothing published for this version

  30. 3.4.0-beta.109 Feb 2021pre-release

    Nothing published for this version

  31. 3.4.0-beta.99 Feb 2021pre-release

    Nothing published for this version

  32. 3.4.0-beta.85 Feb 2021pre-release

    Nothing published for this version

  33. 3.4.0-beta.74 Feb 2021pre-release

    Nothing published for this version

  34. 3.4.0-beta.629 Jan 2021pre-release

    Nothing published for this version

  35. 3.4.0-beta.529 Jan 2021pre-release

    Nothing published for this version

  36. 3.4.0-beta.416 Dec 2020pre-release

    Nothing published for this version

  37. 3.4.0-beta.312 Dec 2020pre-release

    Nothing published for this version

  38. 3.4.0-beta.24 Dec 2020pre-release

    Nothing published for this version

  39. 3.4.0-beta.13 Dec 2020pre-release

    Nothing published for this version

  40. 3.4.0-beta.01 Dec 2020pre-release

    Nothing published for this version

  41. 3.3.216 Jul 2021
    Release notes2 sources agree

    Bug fixes

    • Fix race condition in @apollo/client/link/context that could leak subscriptions if the subscription is cancelled before operation.setContext is called. <br/> @sofianhn in #8399

    • Prefer existing.pageInfo.startCursor and endCursor (if defined) in read function of relayStylePagination policies. <br/> @benjamn in #8438

    Improvements

    • Normalize user-provided HttpLink headers by lower-casing their names. <br/> @benjamn in #8449
    Open source →
  42. 3.3.208 Jun 2021
    Release notes2 sources agree

    Bug fixes

    • Fix policy merging bug when calling cache.policies.addTypePolicies multiple times for the same type policy. <br/> @Banou26 in #8361
    Open source →
  43. 3.3.1918 May 2021
    Release notes2 sources agree

    Bug fixes

    • Use export ... from syntax to re-export graphql-tag named exports, making tree-shaking easier for some bundlers. <br/> @benjamn in #8221

    Documentation

    Open source →
  44. 3.3.1813 May 2021
    Release notes2 sources agree

    Bug fixes

    • Add "sideEffects": false to all generated/published package.json files, to improve dead code elimination for nested entry points like @apollo/client/cache. <br/> @benjamn in #8213
    Open source →
  45. 3.3.1711 May 2021
    Release notes2 sources agree

    Bug fixes

    • Make useReactiveVar(rv) recheck the latest rv() value in its useEffect callback, and immediately update state if the value has already changed, rather than calling rv.onNextChange(setValue) to listen for future changes. <br/> @benjamn in #8135
    Open source →
  46. 3.3.1630 Apr 2021
    Release notes2 sources agree

    Bug fixes

    • Prevent undefined mutation result in useMutation. <br/> @jcreighton in #8018

    • Fix useReactiveVar not rerendering for successive synchronous calls. <br/> @brainkim in #8022

    • Support batchDebounce option for BatchLink and BatchHttpLink. <br/> @dannycochran in #8024

    Open source →
  47. 3.3.1513 Apr 2021
    Release notes2 sources agree
    • Increment queryInfo.lastRequestId only when making a network request through the ApolloLink chain, rather than every time fetchQueryByPolicy is called. <br/> @dannycochran in #7956

    • During server-side rendering, allow initial useQuery calls to return final { loading: false, data } results when the cache already contains the necessary data. <br/> @benjamn in #7983

    Open source →
  48. 3.3.145 Apr 2021
    Release notes2 sources agree

    Improvements

    • Adjust TypeScript types to allow keyFields and keyArgs functions to return false. <br/> @CarsonF and @benjamn in #7900

    Bug fixes

    • Prevent RenderPromises memory leak by calling renderPromises.clear() after getMarkupFromTree finishes. <br/> @benjamn in #7943

    • Cancel pending notify timeout when stopping a QueryInfo object. <br/> @hollandThomas in #7935

    • Fix infinite rendering bug related to useSubscription. <br/> @brainkim in #7917

    Open source →
  49. 3.3.1324 Mar 2021
    Release notes2 sources agree

    Improvements

    • Add missing context option to useSubscription. <br /> @jcreighton in #7860

    • Remove unnecessary TypeScript global Observable<T>["@@observable"] method declaration. <br/> @benjamn in #7888

    • Prevent skipped/observerless ObservableQuerys from being refetched by refetchQueries. <br/> @dannycochran in #7877

    Open source →
  50. 3.3.1215 Mar 2021
    Release notes2 sources agree

    Bug fixes

    • Maintain serial ordering of asyncMap mapping function calls, and prevent potential unhandled Promise rejection errors. <br/> @benjamn in #7818

    • Relax incompatible children?: React.ReactElement field type in MockedProviderProps interface. <br/> @kevinperaza in #7833

    Open source →
  51. 3.3.1115 Feb 2021
    Release notes2 sources agree

    Bug fixes

    • Fix useLazyQuery forceUpdate loop regression introduced by #7655 in version 3.3.10. <br/> @benjamn in #7715
    Open source →
  52. 3.3.1014 Feb 2021
    Release notes2 sources agree

    Bug fixes

    • Revert PR #7276, but test that garbage collection reclaims torn-down ObservableQuery objects. <br/> @benjamn in #7695

    • Reset QueryInfo.diff and QueryInfo.dirty after canceling notify timeout in QueryInfo.markResult and QueryInfo.markError. <br/> @jcreighton in #7696

    Improvements

    • Avoid calling forceUpdate when component is unmounted. <br/> @DylanVann in #7655

    • The codemods/ top-level directory has been moved into the scripts/ directory. <br/> @benjamn in #7675

    Open source →
  53. 3.3.99 Feb 2021
    Release notes2 sources agree

    Bug Fixes

    • Prevent reactive variables from retaining otherwise unreachable InMemoryCache objects. <br/> @benjamn in #7661

    Improvements

    • The graphql-tag dependency has been updated to version 2.12.0, after converting its repository to use TypeScript and ECMAScript module syntax. There should be no visible changes in behavior, though the internal changes seemed significant enough to mention here. <br/> @abdonrd in graphql-tag#273 and @PowerKiKi in graphql-tag#325
    Open source →
  54. 3.3.85 Feb 2021
    Release notes2 sources agree

    Bug Fixes

    • Catch updates in useReactiveVar with an additional check. <br/> @jcreighton in #7652

    • Reactivate forgotten reactive variables whenever InMemoryCache acquires its first watcher. <br/> @benjamn in #7657

    • Backport Symbol.species fix for Concast and ObservableQuery from release-3.4, fixing subscriptions in React Native Android when the Hermes JavaScript engine is enabled (among other benefits). <br/> @benjamn in #7403 and #7660

    Open source →
  55. 3.3.714 Jan 2021
    Release notes2 sources agree

    Bug Fixes

    • Fix a regression due to #7310 that caused loading always to be true for skip: true results during server-side rendering. <br/> @rgrove in #7567

    • Avoid duplicate useReactiveVar listeners when rendering in React.StrictMode. <br/> @jcreighton in #7581

    Improvements

    • Set displayName on ApolloContext objects for easier debugging. <br/> @dulmandakh in #7550
    Open source →
  56. 3.3.611 Dec 2020
    Release notes2 sources agree

    Bug Fixes

    • Immediately apply queryType: true, mutationType: true, and subscriptionType: true type policies, rather than waiting for the first time the policy is used, fixing a regression introduced by #7065. <br/> @benjamn in #7463

    • Check that window is defined even when connectToDevTools is true. <br/> @yasupeke in #7434

    Improvements

    • Replace stray console.debug (undefined in React Native) with invariant.log. <br/> @benjamn in #7454

    • Suggest Firefox Apollo DevTools as well as the Chrome extension. <br/> @benjamn in #7461

    Open source →
  57. 3.3.510 Dec 2020
    Release notes2 sources agree

    Improvements

    • Restore client.version property, reflecting the current @apollo/client version from package.json. <br/> @benjamn in #7448
    Open source →
  58. 3.3.44 Dec 2020
    Release notes2 sources agree

    Improvements

    Open source →
  59. 3.3.32 Dec 2020
    Release notes2 sources agree

    Bug fixes

    • Make the observer parameter of ApolloLink#onError optional, fixing an unnecessary breaking change for any code that called onError directly. <br/> @benjamn in #7407
    Open source →
  60. 3.3.21 Dec 2020
    Release notes2 sources agree

    ⚠️ Note: This version of @apollo/client contains no behavioral changes since version 3.3.1

    Documentation

    Open source →