Releases: apollographql/apollo-client
v3.7.12
Patch Changes
- #10735
895bcdcff
Thanks @alessbell! - If a multipart chunk contains onlyhasNext: false
, immediately complete the observable.
v3.7.11
Patch Changes
-
#10586
4175af594
Thanks @alessbell! - Improve WebSocket error handling for genericEvent
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 inHttpLink
. -
#10698
38508a251
Thanks @jerelmiller! - Changes the behavior ofuseLazyQuery
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
3.8.0-alpha.11
Minor Changes
- #10567
c2ce6496c
Thanks @benjamn! - AllowApolloCache
implementations to specify default value forassumeImmutableResults
client option, improving performance for applications currently usingInMemoryCache
without configuringnew ApolloClient({ assumeImmutableResults: true })
Patch Changes
-
#10672
932252b0c
Thanks @jerelmiller! - Fix the compatibility betweenuseSuspenseQuery
and React'suseDeferredValue
andstartTransition
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 fromuseSuspenseQuery
. If you are using this option, remove it, otherwise it will be ignored.
v3.8.0-alpha.10
3.8.0-alpha.10
Patch Changes
-
#10657
db305a800
Thanks @jerelmiller! - ReturnnetworkStatus
in theuseSuspenseQuery
result. -
#10651
8355d0e1e
Thanks @jerelmiller! - Fixes an issue whereuseSuspenseQuery
would not respond to cache updates when using a cache-firstfetchPolicy
after the hook was mounted with data already in the cache. -
#10656
54c4d2f3c
Thanks @jerelmiller! - Ensurerefetch
,fetchMore
, andsubscribeToMore
functions returned byuseSuspenseQuery
are referentially stable between renders, even asdata
is updated.
v3.8.0-alpha.9
3.8.0-alpha.9
Patch Changes
-
#10635
7df51ee19
Thanks @jerelmiller! - Fix an issue where cache updates would not propagate touseSuspenseQuery
while in strict mode. -
#10633
90a06eeeb
Thanks @benjamn! - Fix type policy inheritance involving fuzzypossibleTypes
-
#10629
02605bb3c
Thanks @phryneas! -useQuery
: delay unsubscribe to fix race conditions
v3.8.0-alpha.8
v3.7.10
Patch Changes
-
#9438
52a9c8ea1
Thanks @dciesielkiewicz! - Ensure theclient
option passed touseMutation
's execute function is used when provided. Previously this option was ignored. -
#9124
975b923c0
Thanks @andrebrantom! - MakeApolloClient.writeQuery
andApolloClient.writeFragment
behave more likecache.writeQuery
andcache.writeFragment
by returning the reference returned by the cache.
v3.7.9
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! - RefactorremoveDirectivesFromDocument
to fix AST ordering sensitivities and avoid 1/3 AST traversals, potentially improving performance for large queries
v3.8.0-alpha.7
3.8.0-alpha.7
Minor Changes
v3.7.8
Patch Changes
-
#7555
45562d6fa
Thanks @TheCeloReis! - AddsTVariables
generic toGraphQLRequest
andMockedResponse
interfaces. -
#10526
1d13de4f1
Thanks @benjamn! - Tolerate undefinedconcast.sources
ifcomplete
called earlier thanconcast.start
-
#10497
8a883d8a1
Thanks @nevir! - UpdateSingleExecutionResult
andIncrementalPayload
'sdata
types such that they no longer includeundefined
, which was not a valid runtime value, to fix errors when TypeScript'sexactOptionalPropertyTypes
is enabled.