Skip to content

Releases: apollographql/apollo-client

v3.7.12

12 Apr 21:45
a0ef413
Compare
Choose a tag to compare

Patch Changes

  • #10735 895bcdcff Thanks @alessbell! - If a multipart chunk contains only hasNext: false, immediately complete the observable.

v3.7.11

31 Mar 18:52
894ae48
Compare
Choose a tag to compare

Patch Changes

  • #10586 4175af594 Thanks @alessbell! - Improve WebSocket error handling for generic Event received on error. For more information see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/error_event.

  • #10411 152baac34 Thanks @lovasoa! - Simplify error message generation and make 'undefined' an impossible message string.

  • #10592 cdb98ae08 Thanks @alessbell! - Adds support for multipart subscriptions in HttpLink.

  • #10698 38508a251 Thanks @jerelmiller! - Changes the behavior of useLazyQuery introduced in #10427 where unmounting a component before a query was resolved would reject the promise with an abort error. Instead, the promise will now resolve naturally with the result from the request.

    Other notable fixes:

    • Kicking off multiple requests in parallel with the execution function will now ensure each returned promise is resolved with the data from its request. Previously, each promise was resolved with data from the last execution.
    • Re-rendering useLazyQuery with a different query document will now ensure the execution function uses the updated query document. Previously, only the query document rendered the first time would be used for the request.
  • #10660 364bee98f Thanks @alessbell! - Upgrades TypeScript to v5. This change is fully backward-compatible and transparent to users.

  • #10597 8fb9d190d Thanks @phryneas! - Fix a bug where an incoming cache update could prevent future updates from the active link.

  • #10629 02605bb3c Thanks @phryneas! - useQuery: delay unsubscribe to fix race conditions

v3.8.0-alpha.11

03 Aug 09:55
aa5d595
Compare
Choose a tag to compare
v3.8.0-alpha.11 Pre-release
Pre-release

3.8.0-alpha.11

Minor Changes

  • #10567 c2ce6496c Thanks @benjamn! - Allow ApolloCache implementations to specify default value for assumeImmutableResults client option, improving performance for applications currently using InMemoryCache without configuring new ApolloClient({ assumeImmutableResults: true })

Patch Changes

  • #10672 932252b0c Thanks @jerelmiller! - Fix the compatibility between useSuspenseQuery and React's useDeferredValue and startTransition APIs to allow React to show stale UI while the changes to the variable cause the component to suspend.

    Breaking change

    nextFetchPolicy support has been removed from useSuspenseQuery. If you are using this option, remove it, otherwise it will be ignored.

v3.8.0-alpha.10

03 Aug 09:55
b50b1ac
Compare
Choose a tag to compare
v3.8.0-alpha.10 Pre-release
Pre-release

3.8.0-alpha.10

Patch Changes

  • #10657 db305a800 Thanks @jerelmiller! - Return networkStatus in the useSuspenseQuery result.

  • #10651 8355d0e1e Thanks @jerelmiller! - Fixes an issue where useSuspenseQuery would not respond to cache updates when using a cache-first fetchPolicy after the hook was mounted with data already in the cache.

  • #10656 54c4d2f3c Thanks @jerelmiller! - Ensure refetch, fetchMore, and subscribeToMore functions returned by useSuspenseQuery are referentially stable between renders, even as data is updated.

v3.8.0-alpha.9

03 Aug 09:55
3a3a8bc
Compare
Choose a tag to compare
v3.8.0-alpha.9 Pre-release
Pre-release

3.8.0-alpha.9

Patch Changes

v3.8.0-alpha.8

03 Aug 09:55
3051b78
Compare
Choose a tag to compare
v3.8.0-alpha.8 Pre-release
Pre-release

3.8.0-alpha.8

Patch Changes

v3.7.10

02 Mar 21:27
1575a40
Compare
Choose a tag to compare

Patch Changes

  • #9438 52a9c8ea1 Thanks @dciesielkiewicz! - Ensure the client option passed to useMutation's execute function is used when provided. Previously this option was ignored.

  • #9124 975b923c0 Thanks @andrebrantom! - Make ApolloClient.writeQuery and ApolloClient.writeFragment behave more like cache.writeQuery and cache.writeFragment by returning the reference returned by the cache.

v3.7.9

17 Feb 14:58
4ab7eaf
Compare
Choose a tag to compare

Patch Changes

  • #10560 a561ecf43 Thanks @benjamn! - Keep __typename fragment when it does not contain @client directive and strip out inline fragments which use a @client directive. Thanks @Gazler and @mtsmfm!

  • #10560 251a12806 Thanks @benjamn! - Refactor removeDirectivesFromDocument to fix AST ordering sensitivities and avoid 1/3 AST traversals, potentially improving performance for large queries

v3.8.0-alpha.7

03 Aug 09:55
b43e87e
Compare
Choose a tag to compare
v3.8.0-alpha.7 Pre-release
Pre-release

3.8.0-alpha.7

Minor Changes

  • #10527 0cc7e2e19 Thanks @phryneas! - Remove the query/mutation/subscription option from hooks that already take that value as their first argument.

  • #10506 2dc2e1d4f Thanks @phryneas! - prevent accidental widening of inferred TData and TVariables generics for query hook option arguments

v3.7.8

15 Feb 21:09
1f9ec12
Compare
Choose a tag to compare

Patch Changes

  • #7555 45562d6fa Thanks @TheCeloReis! - Adds TVariables generic to GraphQLRequest and MockedResponse interfaces.

  • #10526 1d13de4f1 Thanks @benjamn! - Tolerate undefined concast.sources if complete called earlier than concast.start

  • #10497 8a883d8a1 Thanks @nevir! - Update SingleExecutionResult and IncrementalPayload's data types such that they no longer include undefined, which was not a valid runtime value, to fix errors when TypeScript's exactOptionalPropertyTypes is enabled.