-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update minor and patch dependencies for gatsby-source-graphql #38028
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
added
the
topic: automation
Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot
label
May 1, 2023
gatsbot
bot
added
the
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
label
May 1, 2023
LekoArts
removed
the
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
label
May 2, 2023
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
LekoArts
removed
the
topic: automation
Related to Circle CI, Peril, Renovate, scripts/*, Github Workflows, Github Actions, or Slackbot
label
May 3, 2023
This was referenced May 16, 2023
This was referenced May 16, 2023
This was referenced May 16, 2023
This was referenced Sep 29, 2023
This was referenced Nov 27, 2023
This was referenced Jan 24, 2024
This was referenced Apr 18, 2024
This was referenced May 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.5.10
->^3.7.13
^8.2.14
->^8.3.36
^8.6.9
->^8.13.1
^8.3.3
->^8.5.1
^2.0.0
->^2.2.2
^2.6.7
->^2.6.9
Release Notes
apollographql/apollo-client
v3.7.13
Compare Source
Patch Changes
#10805
a5503666c
Thanks @phryneas! - Fix a potential memory leak in SSR scenarios when manypersistedQuery
instances were created over time.#10718
577c68bdd
Thanks @Hsifnus! - Delay Concast subscription teardown slightly inuseSubscription
to prevent unexpected Concast teardown when oneuseSubscription
hook tears down its in-flight Concast subscription immediately followed by anotheruseSubscription
hook reusing and subscribing to that same Concastv3.7.12
Compare Source
Patch Changes
895bcdcff
Thanks @alessbell! - If a multipart chunk contains onlyhasNext: false
, immediately complete the observable.v3.7.11
Compare Source
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:
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 conditionsv3.7.10
Compare Source
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
Compare Source
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 queriesv3.7.8
Compare Source
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.v3.7.7
Compare Source
Patch Changes
#10502
315faf9ca
Thanks @jerelmiller! - Log a warning to the console when a mock passed toMockedProvider
orMockLink
cannot be matched to a query during a test. This makes it easier to debug user errors in the mock setup, such as typos, especially if the query under test is using anerrorPolicy
set toignore
, which makes it difficult to know that a match did not occur.#10499
9e54f5dfa
Thanks @phryneas! - Allow the execution function returned byuseLazyQuery
to change the query.#10362
14a56b105
Thanks @mccraveiro! - Fix error when server returns an error and we are also querying for a local fieldv3.7.6
Compare Source
Patch Changes
#10470
47435e879
Thanks @alessbell! - Bumps TypeScript to4.9.4
(previously4.7.4
) and updates types to account for changes in TypeScript 4.8 by propagating contstraints on generic types. Technically this makes some types stricter as attempting to passnull|undefined
into certain functions is now disallowed by TypeScript, but these were never expected runtime values in the first place.#10408
55ffafc58
Thanks @zlrlo! - fix: modify BatchHttpLink to have a separate timer for each different batch key#9573
4a4f48dda
Thanks @vladar! - Improve performance of local resolvers by only executing selection sets that contain an@client
directive. Previously, local resolvers were executed even when the field did not contain@client
. While the result was properly discarded, the unncessary work could negatively affect query performance, sometimes signficantly.v3.7.5
Compare Source
Patch Changes
#10458
b5ccef229
Thanks @lennyburdette! - PassesgetServerSnapshot
touseSyncExternalStore
so that it doesn't trigger aMissing getServerSnapshot
error when usinguseFragment_experimental
on the server.#10471
895ddcb54
Thanks @alessbell! - More robust type definition forheaders
property passed tocreateHttpLink
#10321
bbaa3ef2d
Thanks @alessbell! - Refetch should not return partial data witherrorPolicy: none
andnotifyOnNetworkStatusChange: true
.#10402
0b07aa955
Thanks @Hugodby! - Improve context types#10469
328c58f90
Thanks @jerelmiller! - Add generic type defaults when usinguseFragment
to allow passingTData
directly to the function without needing to specifyTVars
.v3.7.4
Compare Source
Patch Changes
#10427
28d909cff
Thanks @jerelmiller! - Ensure in-flight promises executed byuseLazyQuery
are rejected whenuseLazyQuery
unmounts.#10383
5c5ca9b01
Thanks @jerelmiller! - Ensure theonError
callback is called when theerrorPolicy
is set to "all" and partial data is returned.#10425
86e35a6d2
Thanks @jerelmiller! - Prefer theonError
andonCompleted
callback functions passed to the execute function returned fromuseMutation
instead of calling both callback handlers.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
895bcdcff
Thanks @alessbell! - If a multipart chunk contains onlyhasNext: false
, immediately complete the observable.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
v3.6.9
Compare Source
Bug Fixes
fetchPolicy
unchanged whenskip: true
(or in standby) andnextFetchPolicy
is available, even ifvariables
change.@benjamn in #9823
v3.6.8
Compare Source
Bug Fixes
Fix incorrect
variables
passed inFieldFunctionOptions
for nestedreadField
calls inread
andmerge
functions.@stardustxx in #9808
Improve repository build scripts to work better on Windows.
@dylanwulf in #9805
Ensure
useQuery(query, { skip: true }).called === false
rather than always returningcalled
astrue
.@KucharskiPiotr in #9798
Allow abandoned
reobserve
requests to unsubscribe from their underlyingObservable
.@javier-garcia-meteologica in #9791
v3.6.7
Compare Source
Bug Fixes
BatchHttpLink
to discard pending batched queries on early completion of the underlyingObservable
.@benjamn in #9793
v3.6.6
Compare Source
Bug Fixes
useLazyQuery(query, { defaultOptions })
to benefit fromdefaultOptions.variables
andclient.defaultOptions.watchQuery.variables
merging.@benjamn in #9762
v3.6.5
Compare Source
Bug Fixes
Restore pre-v3.6
variables
replacement behavior ofObservableQuery#reobserve
method, fixing a regression that prevented removal of variables.@benjamn in #9741
Preserve
previousData
even when different query or client provided touseQuery
, instead of resettingpreviousData
to undefined in those cases, matching behavior prior to v3.6.0.@benjamn in #9734
Fix bug where
onCompleted()
andonError()
are stale foruseMutation()
.@charle692 in #9740
Limit scope of
DeepMerger
object reuse, and avoid usingObject.isFrozen
, which can introduce differences between development and production if objects that were frozen usingObject.freeze
in development are left unfrozen in production.@benjamn in #9742
Properly merge
variables
from originaluseLazyQuery(query, { variables })
withvariables
passed to execution function.@benjamn in #9758
v3.6.4
Compare Source
Bug Fixes
Guarantee
Concast
cleanup withoutObservable cancelled prematurely
rejection, potentially solving long-standing issues involving that error.@benjamn in #9701
Ensure
useSubscription
subscriptions are properly restarted after unmounting/remounting by React 18 in<StrictMode>
.@kazekyo in #9707
Improvements
Internalize
useSyncExternalStore
shim, for more control thanuse-sync-external-store
provides, fixing some React Native issues.@benjamn in #9675 and #9709
Provide
@apollo/client/**/*.cjs.native.js
versions of every@apollo/client/**/*.cjs
bundle (including dependenciests-invariant
andzen-observable-ts
) to help React Native's Metro bundler automatically resolve CommonJS entry point modules. These changes should render unnecessary the advice we gave in the v3.5.4 section below aboutmetro.config.js
.@benjamn in #9716
Handle falsy
incoming
data more gracefully inoffetLimitPagination().merge
function.@shobhitsharma in #9705
v3.6.3
Compare Source
Bug Fixes
Simplify
useQuery(query, { defaultOptions })
default options processing in order to fix bug whereskip: true
queries failed to execute upon switching toskip: false
.@benjamn in #9665
Add tests of skipping/unskipping and
useLazyQuery
withdefaultOptions
, and fix a bug causing duplicate requests.@benjamn in #9666
Update
ts-invariant
to version 0.10.2 to fix source map warnings.@benjamn in #9672
Test that
useQuery
queries withskip: true
do not stall server-side rendering.@nathanmarks and @benjamn in #9677
Prevent
useLazyQuery
from making duplicate requests when its execution function is first called, and stop rejecting thePromise
it returns whenresult.error
is defined.@benjamn in #9684
Fix issue with
useQuery
returningloading: true
state during server-side rendering withskip: true
.@nathanmarks in #9679
v3.6.2
Compare Source
Bug Fixes
getServerSnapshot
function touseSyncExternalStore
in addition togetSnapshot
, though the two functions behave identically. This change should fix/unbreak React 18 server rendering.@hungphongbk in #9652
Improvements
networkError.result.errors
in addition toresult.errors
inPersistedQueryLink
.@redaid113 and @benjamn in #9410
v3.6.1
Compare Source
Improvements
variables
,context
, etc.) used formutation
calls are now available as the second argument to theonCompleted
andonError
callback functions.@MrDoomBringer in #10052
v3.6.0
Compare Source
Potentially disruptive changes
Calling
fetchMore
for queries using thecache-and-network
ornetwork-only
fetch policies will no longer trigger additional network requests when cache results are complete. Instead, those complete cache results will be delivered as if using thecache-first
fetch policy.@benjamn in #9504
Reimplement
useQuery
anduseLazyQuery
to use the proposeduseSyncExternalStore
API from React 18.@brainkim and @benjamn in #8785 and #9596
Fixed bug where the
useLazyQuery
execution function would always use therefetch
method ofObservableQuery
, instead of properly reapplying the currentfetchPolicy
using thereobserve
method.@benjamn in #9564
The internal use of
options.fetchBlockingPromise
byuseQuery
anduseLazyQuery
may slightly delay the delivery of network results, compared to previous versions of Apollo Client. Since network results are already delivered asynchronously, these timing differences should not be disruptive in most cases. Nevertheless, please open an issue if the timing differences are a problem for you (and you have no easy workaround).@benjamn in #9599
React 18
In both its
peerDependencies
and its internal implementation, Apollo Client v3.6 should no longer prevent you from updating to React 18 in your applications.Internally, we have refactored
useQuery
anduseLazyQuery
to be implemented in terms of React's new (shimmable)useSyncExternalStore
hook, demonstrating Apollo Client can serve as an external store with a referentially stable, synchronous API, as needed by React.As part of this refactoring, we also improved the behavior of
useQuery
anduseLazyQuery
when used in<React.StrictMode>
, which double-renders components in development. While this double-rendering always results in callinguseQuery
twice, forcing Apollo Client to create and then discard an unnecessaryObservableQuery
object, we now have multiple defenses in place against executing any network queries for the unusedObservableQuery
objects.In upcoming v3.6.x and v3.7 (beta) releases, we will be completely overhauling our server-side rendering utilities (
getDataFromTree
et al.), and introducing suspenseful versions of our hooks, to take full advantage of the new patterns React 18+ enables for data management libraries like Apollo Client.Improvements
Allow
BatchLink
to cancel queued and in-flight operations.@PowerKiKi and @benjamn in #9248
Add
GraphQLWsLink
in@apollo/client/link/subscriptions
. This link is similar to the existingWebSocketLink
in@apollo/client/link/ws
, but uses the newergraphql-ws
package and protocol instead of the oldersubscriptions-transport-ws
implementation. This functionality was technically first released in@apollo/client@3.5.10
, but semantically belongs in the 3.6.0 minor version.@glasser in #9369
Allow passing
defaultOptions
touseQuery
to avoid clobbering/resetting existing options whenuseQuery
is called repeatedly.@benjamn in #9563, superseding #9223
Provide additional context to
nextFetchPolicy
functions to assist withfetchPolicy
transitions. More details can be found in thenextFetchPolicy
documentation.@benjamn in #9222
Remove nagging deprecation warning about passing an
options.updateQuery
function tofetchMore
.@benjamn in #9504
Let
addTypenameToDocument
take anyASTNode
(includingDocumentNode
, as before).@benjamn in #9595
Set
useMutation
internalisMounted
variable totrue
again when component remounted.@devpeerapong in #9561
ardatan/graphql-tools (@graphql-tools/links)
v8.3.36
Compare Source
Patch Changes
05c97eb8
Thanks @ardatan! - dependencies updates:@apollo/client@^3
↗︎ (from~3.2.5 || ~3.3.0 || ~3.4.0 || ~3.5.0 || ~3.6.0 || ~3.7.0
, inpeerDependencies
)v8.3.35
Compare Source
Patch Changes
1c95368a
Thanks @ardatan! - Use ranged versions for dependenciesUpdated dependencies []:
v8.3.34
Compare Source
Patch Changes
v8.3.33
Compare Source
Patch Changes
f26392a6
]:v8.3.32
Compare Source
Patch Changes
492220cb
]:v8.3.31
Compare Source
Patch Changes
30bd4d0c
]:v8.3.30
Compare Source
Patch Changes
b09ea282
,b5c8f640
]:v8.3.29
Compare Source
Patch Changes
a94217e9
,62d074be
]:v8.3.28
Compare Source
Patch Changes
772b948a
]:v8.3.27
Compare Source
Patch Changes
v8.3.26
Compare Source
Patch Changes
a4d36fcc
,e3ec35ed
]:v8.3.25
Compare Source
Patch Changes
13177794
]:v8.3.24
Compare Source
Patch Changes
eb6cd8b6
,eb6cd8b6
]:v8.3.23
Compare Source
Patch Changes
904fe770
,904fe770
]:v8.3.22
Compare Source
Patch Changes
13c24883
,b5e6459f
]:v8.3.21
Compare Source
Patch Changes
7411a5e7
]:v8.3.20
Compare Source
Patch Changes
v8.3.19
Compare Source
Patch Changes
c0639dd0
]:v8.3.18
Compare Source
Patch Changes
d83b1960
]:v8.3.17
Compare Source
Patch Changes
v8.3.16
Compare Source
Patch Changes
v8.3.15
Compare Source
Patch Changes
80836fa7
,8f6d3efc
,80836fa7
,80836fa7
,80836fa7
]:v8.3.14
Compare Source
Patch Changes
f7daf777
]:v8.3.13
Compare Source
Patch Changes
df5848b8
,df5848b8
,df5848b8
,df5848b8
]:v8.3.12
Compare Source
Patch Changes
Configuration
📅 Schedule: Branch creation - "before 7am on the first day of the month" in timezone GMT, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.