This repository was archived by the owner on Oct 29, 2023. It is now read-only.
build(deps): update dependency @apollo/client to v3.7.3 (latest) #7884
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.6.9
->3.7.3
Release Notes
apollographql/apollo-client
v3.7.3
Compare Source
Patch Changes
#10334
7d923939d
Thanks @jerelmiller! - Better handle deferred queries that have cached or partial cached data for them#10368
46b58e976
Thanks @alessbell! - Fix: unblocks support for defer in mutationsIf the
@defer
directive is present in the document passed tomutate
, the Promise will resolve with the final merged data after the last multipart chunk has arrived in the response.v3.7.2
Compare Source
Patch Changes
Only show dev tools suggestion in the console when
connectToDevTools
istrue
.@chris110408 in #10258
Pass
TCache
generic toMutationHookOptions
for better type support inuseMutation
.@igrlk in #10223
Add
name
property toApolloError
to ensure better type safety and help error reporting tools better identify the error.@aaronadamsCA in #9323
Export a
ModifierDetails
type for thedetails
parameter of aModifier
function.@KeithGillette in #7133
Revert use of
cloneDeep
to clone options when fetching queries.@MrDoomBringer in #10215
v3.7.1
Compare Source
Patch Changes
Fix issue where
loading
remainstrue
afterobserver.refetch
is called repeatedly with different variables when the same data are returned.@alessbell in #10143
Fix race condition where
useFragment_experimental
could receive cache updates before initially callingcache.watch
inuseEffect
.@benjamn in #10212
v3.7.0
Compare Source
Minor Changes
Implement preview support for the
@defer
directive.@alessbell and @benjamn in #10018
Implement
useFragment_experimental
hook, which represents a lightweight live binding into theApolloCache
, and never triggers network requests of its own.@benjamn in #8782
Allow registering named fragments with
InMemoryCache
to support using...NamedFragment
in queries without redeclaringNamedFragment
repeatedly in every query that uses it.@benjamn in #9764
Support
onError
callback foruseSubscription
hook.@jeroenvisser101 in #9495
Implement
preserveHeaderCase
option forhttp
context object, enabling preserved header capitalization for non-http-spec-compliant servers.@mrdoombringer in #9891
Patch Changes
Delay calling
onCompleted
andonError
callbacks passed touseQuery
usingPromise.resolve().then(() => ...)
to fix issue #9794.@dylanwulf in #9823
Replace
concast.cleanup
method with simplerconcast.beforeNext
API, which promises to call the given callback function just before the next result/error is delivered. In addition,concast.removeObserver
no longer takes aquietly?: boolean
parameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called.@benjamn in #9718
Allow preserving header name capitalization when creating an
HttpLink
withcreateHttpLink({ uri, preserveHeaderCase: true })
. Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs.@MrDoomBringer in #9891
Make queries with a
pollInterval
respect theno-cache
fetch policy, instead of writing polled results into the cache.@MrDoomBringer in #10020
Deprecate the
onSubscriptionData
callback in favor of a newonData
callback for theuseSubscription
hook. Deprecate theonSubscriptionComplete
callback in favor of a newonComplete
callback for theuseSubscription
hook.@jerelmiller in #10134
Potentially disruptive
subscribeAndCount
testing utility exported from@apollo/client/testing/core
now takes a single genericTResult
type parameter, instead ofTData
. This type will typically be inferred from theobservable
argument type, but if you have any explicit calls tosubscribeAndCount<TData>(...)
in your own codebase, you may need to adjust those calls accordingly.@benjamn in #9718
v3.6.10
Compare Source
Improvements
variables
,context
, etc.) used formutation
calls are now available as the second argument to theonCompleted
andonError
callback functions.@MrDoomBringer in #10052
Configuration
📅 Schedule: Branch creation - "before 7am every weekday,after 6pm every weekday,every weekend" in timezone America/Tijuana, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.