-
Notifications
You must be signed in to change notification settings - Fork 10.3k
fix(deps): update minor and patch dependencies for gatsby-source-graphql #38028
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
Merged
Conversation
This file contains hidden or 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
Contributor
Author
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. |
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.9Release Notes
apollographql/apollo-client
v3.7.13Compare Source
Patch Changes
#10805
a5503666cThanks @phryneas! - Fix a potential memory leak in SSR scenarios when manypersistedQueryinstances were created over time.#10718
577c68bddThanks @Hsifnus! - Delay Concast subscription teardown slightly inuseSubscriptionto prevent unexpected Concast teardown when oneuseSubscriptionhook tears down its in-flight Concast subscription immediately followed by anotheruseSubscriptionhook reusing and subscribing to that same Concastv3.7.12Compare Source
Patch Changes
895bcdcffThanks @alessbell! - If a multipart chunk contains onlyhasNext: false, immediately complete the observable.v3.7.11Compare Source
Patch Changes
#10586
4175af594Thanks @alessbell! - Improve WebSocket error handling for genericEventreceived on error. For more information see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/error_event.#10411
152baac34Thanks @lovasoa! - Simplify error message generation and make 'undefined' an impossible message string.#10592
cdb98ae08Thanks @alessbell! - Adds support for multipart subscriptions inHttpLink.#10698
38508a251Thanks @jerelmiller! - Changes the behavior ofuseLazyQueryintroduced 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:
useLazyQuerywith 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
364bee98fThanks @alessbell! - Upgrades TypeScript to v5. This change is fully backward-compatible and transparent to users.#10597
8fb9d190dThanks @phryneas! - Fix a bug where an incoming cache update could prevent future updates from the active link.#10629
02605bb3cThanks @phryneas! -useQuery: delay unsubscribe to fix race conditionsv3.7.10Compare Source
Patch Changes
#9438
52a9c8ea1Thanks @dciesielkiewicz! - Ensure theclientoption passed touseMutation's execute function is used when provided. Previously this option was ignored.#9124
975b923c0Thanks @andrebrantom! - MakeApolloClient.writeQueryandApolloClient.writeFragmentbehave more likecache.writeQueryandcache.writeFragmentby returning the reference returned by the cache.v3.7.9Compare Source
Patch Changes
#10560
a561ecf43Thanks @benjamn! - Keep__typenamefragment when it does not contain@clientdirective and strip out inline fragments which use a@clientdirective. Thanks @Gazler and @mtsmfm!#10560
251a12806Thanks @benjamn! - RefactorremoveDirectivesFromDocumentto fix AST ordering sensitivities and avoid 1/3 AST traversals, potentially improving performance for large queriesv3.7.8Compare Source
Patch Changes
#7555
45562d6faThanks @TheCeloReis! - AddsTVariablesgeneric toGraphQLRequestandMockedResponseinterfaces.#10526
1d13de4f1Thanks @benjamn! - Tolerate undefinedconcast.sourcesifcompletecalled earlier thanconcast.start#10497
8a883d8a1Thanks @nevir! - UpdateSingleExecutionResultandIncrementalPayload'sdatatypes such that they no longer includeundefined, which was not a valid runtime value, to fix errors when TypeScript'sexactOptionalPropertyTypesis enabled.v3.7.7Compare Source
Patch Changes
#10502
315faf9caThanks @jerelmiller! - Log a warning to the console when a mock passed toMockedProviderorMockLinkcannot 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 anerrorPolicyset toignore, which makes it difficult to know that a match did not occur.#10499
9e54f5dfaThanks @phryneas! - Allow the execution function returned byuseLazyQueryto change the query.#10362
14a56b105Thanks @mccraveiro! - Fix error when server returns an error and we are also querying for a local fieldv3.7.6Compare Source
Patch Changes
#10470
47435e879Thanks @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|undefinedinto certain functions is now disallowed by TypeScript, but these were never expected runtime values in the first place.#10408
55ffafc58Thanks @zlrlo! - fix: modify BatchHttpLink to have a separate timer for each different batch key#9573
4a4f48ddaThanks @vladar! - Improve performance of local resolvers by only executing selection sets that contain an@clientdirective. 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.5Compare Source
Patch Changes
#10458
b5ccef229Thanks @lennyburdette! - PassesgetServerSnapshottouseSyncExternalStoreso that it doesn't trigger aMissing getServerSnapshoterror when usinguseFragment_experimentalon the server.#10471
895ddcb54Thanks @alessbell! - More robust type definition forheadersproperty passed tocreateHttpLink#10321
bbaa3ef2dThanks @alessbell! - Refetch should not return partial data witherrorPolicy: noneandnotifyOnNetworkStatusChange: true.#10402
0b07aa955Thanks @Hugodby! - Improve context types#10469
328c58f90Thanks @jerelmiller! - Add generic type defaults when usinguseFragmentto allow passingTDatadirectly to the function without needing to specifyTVars.v3.7.4Compare Source
Patch Changes
#10427
28d909cffThanks @jerelmiller! - Ensure in-flight promises executed byuseLazyQueryare rejected whenuseLazyQueryunmounts.#10383
5c5ca9b01Thanks @jerelmiller! - Ensure theonErrorcallback is called when theerrorPolicyis set to "all" and partial data is returned.#10425
86e35a6d2Thanks @jerelmiller! - Prefer theonErrorandonCompletedcallback functions passed to the execute function returned fromuseMutationinstead of calling both callback handlers.v3.7.3Compare Source
Patch Changes
#10334
7d923939dThanks @jerelmiller! - Better handle deferred queries that have cached or partial cached data for them#10368
46b58e976Thanks @alessbell! - Fix: unblocks support for defer in mutationsIf the
@deferdirective 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.2Compare Source
Patch Changes
Only show dev tools suggestion in the console when
connectToDevToolsistrue.@chris110408 in #10258
Pass
TCachegeneric toMutationHookOptionsfor better type support inuseMutation.@igrlk in #10223
Add
nameproperty toApolloErrorto ensure better type safety and help error reporting tools better identify the error.@aaronadamsCA in #9323
Export a
ModifierDetailstype for thedetailsparameter of aModifierfunction.@KeithGillette in #7133
Revert use of
cloneDeepto clone options when fetching queries.@MrDoomBringer in #10215
v3.7.1Compare Source
Patch Changes
895bcdcffThanks @alessbell! - If a multipart chunk contains onlyhasNext: false, immediately complete the observable.v3.7.0Compare Source
Minor Changes
Implement preview support for the
@deferdirective.@alessbell and @benjamn in #10018
Implement
useFragment_experimentalhook, which represents a lightweight live binding into theApolloCache, and never triggers network requests of its own.@benjamn in #8782
Allow registering named fragments with
InMemoryCacheto support using...NamedFragmentin queries without redeclaringNamedFragmentrepeatedly in every query that uses it.@benjamn in #9764
Support
onErrorcallback foruseSubscriptionhook.@jeroenvisser101 in #9495
Implement
preserveHeaderCaseoption forhttpcontext object, enabling preserved header capitalization for non-http-spec-compliant servers.@mrdoombringer in #9891
Patch Changes
Delay calling
onCompletedandonErrorcallbacks passed touseQueryusingPromise.resolve().then(() => ...)to fix issue #9794.@dylanwulf in #9823
Replace
concast.cleanupmethod with simplerconcast.beforeNextAPI, which promises to call the given callback function just before the next result/error is delivered. In addition,concast.removeObserverno longer takes aquietly?: booleanparameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called.@benjamn in #9718
Allow preserving header name capitalization when creating an
HttpLinkwithcreateHttpLink({ uri, preserveHeaderCase: true }). Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs.@MrDoomBringer in #9891
Make queries with a
pollIntervalrespect theno-cachefetch policy, instead of writing polled results into the cache.@MrDoomBringer in #10020
Deprecate the
onSubscriptionDatacallback in favor of a newonDatacallback for theuseSubscriptionhook. Deprecate theonSubscriptionCompletecallback in favor of a newonCompletecallback for theuseSubscriptionhook.@jerelmiller in #10134
Potentially disruptive
subscribeAndCounttesting utility exported from@apollo/client/testing/corenow takes a single genericTResulttype parameter, instead ofTData. This type will typically be inferred from theobservableargument 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.10Compare Source
Improvements
variables,context, etc.) used formutationcalls are now available as the second argument to theonCompletedandonErrorcallback functions.@MrDoomBringer in #10052
v3.6.9Compare Source
Bug Fixes
fetchPolicyunchanged whenskip: true(or in standby) andnextFetchPolicyis available, even ifvariableschange.@benjamn in #9823
v3.6.8Compare Source
Bug Fixes
Fix incorrect
variablespassed inFieldFunctionOptionsfor nestedreadFieldcalls inreadandmergefunctions.@stardustxx in #9808
Improve repository build scripts to work better on Windows.
@dylanwulf in #9805
Ensure
useQuery(query, { skip: true }).called === falserather than always returningcalledastrue.@KucharskiPiotr in #9798
Allow abandoned
reobserverequests to unsubscribe from their underlyingObservable.@javier-garcia-meteologica in #9791
v3.6.7Compare Source
Bug Fixes
BatchHttpLinkto discard pending batched queries on early completion of the underlyingObservable.@benjamn in #9793
v3.6.6Compare Source
Bug Fixes
useLazyQuery(query, { defaultOptions })to benefit fromdefaultOptions.variablesandclient.defaultOptions.watchQuery.variablesmerging.@benjamn in #9762
v3.6.5Compare Source
Bug Fixes
Restore pre-v3.6
variablesreplacement behavior ofObservableQuery#reobservemethod, fixing a regression that prevented removal of variables.@benjamn in #9741
Preserve
previousDataeven when different query or client provided touseQuery, instead of resettingpreviousDatato 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
DeepMergerobject reuse, and avoid usingObject.isFrozen, which can introduce differences between development and production if objects that were frozen usingObject.freezein development are left unfrozen in production.@benjamn in #9742
Properly merge
variablesfrom originaluseLazyQuery(query, { variables })withvariablespassed to execution function.@benjamn in #9758
v3.6.4Compare Source
Bug Fixes
Guarantee
Concastcleanup withoutObservable cancelled prematurelyrejection, potentially solving long-standing issues involving that error.@benjamn in #9701
Ensure
useSubscriptionsubscriptions are properly restarted after unmounting/remounting by React 18 in<StrictMode>.@kazekyo in #9707
Improvements
Internalize
useSyncExternalStoreshim, for more control thanuse-sync-external-storeprovides, fixing some React Native issues.@benjamn in #9675 and #9709
Provide
@apollo/client/**/*.cjs.native.jsversions of every@apollo/client/**/*.cjsbundle (including dependenciests-invariantandzen-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
incomingdata more gracefully inoffetLimitPagination().mergefunction.@shobhitsharma in #9705
v3.6.3Compare Source
Bug Fixes
Simplify
useQuery(query, { defaultOptions })default options processing in order to fix bug whereskip: truequeries failed to execute upon switching toskip: false.@benjamn in #9665
Add tests of skipping/unskipping and
useLazyQuerywithdefaultOptions, and fix a bug causing duplicate requests.@benjamn in #9666
Update
ts-invariantto version 0.10.2 to fix source map warnings.@benjamn in #9672
Test that
useQueryqueries withskip: truedo not stall server-side rendering.@nathanmarks and @benjamn in #9677
Prevent
useLazyQueryfrom making duplicate requests when its execution function is first called, and stop rejecting thePromiseit returns whenresult.erroris defined.@benjamn in #9684
Fix issue with
useQueryreturningloading: truestate during server-side rendering withskip: true.@nathanmarks in #9679
v3.6.2Compare Source
Bug Fixes
getServerSnapshotfunction touseSyncExternalStorein addition togetSnapshot, though the two functions behave identically. This change should fix/unbreak React 18 server rendering.@hungphongbk in #9652
Improvements
networkError.result.errorsin addition toresult.errorsinPersistedQueryLink.@redaid113 and @benjamn in #9410
v3.6.1Compare Source
Improvements
variables,context, etc.) used formutationcalls are now available as the second argument to theonCompletedandonErrorcallback functions.@MrDoomBringer in #10052
v3.6.0Compare Source
Potentially disruptive changes
Calling
fetchMorefor queries using thecache-and-networkornetwork-onlyfetch 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-firstfetch policy.@benjamn in #9504
Reimplement
useQueryanduseLazyQueryto use the proposeduseSyncExternalStoreAPI from React 18.@brainkim and @benjamn in #8785 and #9596
Fixed bug where the
useLazyQueryexecution function would always use therefetchmethod ofObservableQuery, instead of properly reapplying the currentfetchPolicyusing thereobservemethod.@benjamn in #9564
The internal use of
options.fetchBlockingPromisebyuseQueryanduseLazyQuerymay 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
peerDependenciesand its internal implementation, Apollo Client v3.6 should no longer prevent you from updating to React 18 in your applications.Internally, we have refactored
useQueryanduseLazyQueryto be implemented in terms of React's new (shimmable)useSyncExternalStorehook, 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
useQueryanduseLazyQuerywhen used in<React.StrictMode>, which double-renders components in development. While this double-rendering always results in callinguseQuerytwice, forcing Apollo Client to create and then discard an unnecessaryObservableQueryobject, we now have multiple defenses in place against executing any network queries for the unusedObservableQueryobjects.In upcoming v3.6.x and v3.7 (beta) releases, we will be completely overhauling our server-side rendering utilities (
getDataFromTreeet 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
BatchLinkto cancel queued and in-flight operations.@PowerKiKi and @benjamn in #9248
Add
GraphQLWsLinkin@apollo/client/link/subscriptions. This link is similar to the existingWebSocketLinkin@apollo/client/link/ws, but uses the newergraphql-wspackage and protocol instead of the oldersubscriptions-transport-wsimplementation. This functionality was technically first released in@apollo/[email protected], but semantically belongs in the 3.6.0 minor version.@glasser in #9369
Allow passing
defaultOptionstouseQueryto avoid clobbering/resetting existing options whenuseQueryis called repeatedly.@benjamn in #9563, superseding #9223
Provide additional context to
nextFetchPolicyfunctions to assist withfetchPolicytransitions. More details can be found in thenextFetchPolicydocumentation.@benjamn in #9222
Remove nagging deprecation warning about passing an
options.updateQueryfunction tofetchMore.@benjamn in #9504
Let
addTypenameToDocumenttake anyASTNode(includingDocumentNode, as before).@benjamn in #9595
Set
useMutationinternalisMountedvariable totrueagain when component remounted.@devpeerapong in #9561
ardatan/graphql-tools (@graphql-tools/links)
v8.3.36Compare Source
Patch Changes
05c97eb8Thanks @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.35Compare Source
Patch Changes
1c95368aThanks @ardatan! - Use ranged versions for dependenciesUpdated dependencies []:
v8.3.34Compare Source
Patch Changes
v8.3.33Compare Source
Patch Changes
f26392a6]:v8.3.32Compare Source
Patch Changes
492220cb]:v8.3.31Compare Source
Patch Changes
30bd4d0c]:v8.3.30Compare Source
Patch Changes
b09ea282,b5c8f640]:v8.3.29Compare Source
Patch Changes
a94217e9,62d074be]:v8.3.28Compare Source
Patch Changes
772b948a]:v8.3.27Compare Source
Patch Changes
v8.3.26Compare Source
Patch Changes
a4d36fcc,e3ec35ed]:v8.3.25Compare Source
Patch Changes
13177794]:v8.3.24Compare Source
Patch Changes
eb6cd8b6,eb6cd8b6]:v8.3.23Compare Source
Patch Changes
904fe770,904fe770]:v8.3.22Compare Source
Patch Changes
13c24883,b5e6459f]:v8.3.21Compare Source
Patch Changes
7411a5e7]:v8.3.20Compare Source
Patch Changes
v8.3.19Compare Source
Patch Changes
c0639dd0]:v8.3.18Compare Source
Patch Changes
d83b1960]:v8.3.17Compare Source
Patch Changes
v8.3.16Compare Source
Patch Changes
v8.3.15Compare Source
Patch Changes
80836fa7,8f6d3efc,80836fa7,80836fa7,80836fa7]:v8.3.14Compare Source
Patch Changes
f7daf777]:v8.3.13Compare Source
Patch Changes
df5848b8,df5848b8,df5848b8,df5848b8]:v8.3.12Compare 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.