This repository was archived by the owner on Jul 21, 2023. It is now read-only.
  
  
  
  
fix(deps): update dependency @apollo/client to v3 #6
  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:
0.0.0-pr-10888-20230517165635->3.7.17Release Notes
apollographql/apollo-client (@apollo/client)
v3.7.17Compare Source
Patch Changes
b93388d75Thanks @phryneas! - ObservableQuery.getCurrentResult: skip the cache if the running query should not access the cachev3.7.16Compare Source
Patch Changes
#10806
cb1540504Thanks @phryneas! - Fix a bug inPersistedQueryLinkthat would cause it to permanently skip persisted queries after a 400 or 500 status code.#10807
b32369592Thanks @phryneas! -PersistedQueryLinkwill now also check for error codes inextensions.#10982
b9be7a814Thanks @sdeleur-sc! - UpdaterelayStylePaginationto avoid populatingstartCursorwhen only a single cursor is present under theedgesfield. Use that cursor only as theendCursor.#10962
772cfa3cbThanks @jerelmiller! - RemoveuseGETForQueriesoption inBatchHttpLink.Optionstype since it is not supported.v3.7.15Compare Source
Patch Changes
#10891
ab42a5c08Thanks @laverdet! - Fixes a bug in how multipart responses are read when using@defer. When reading a multipart body,HttpLinkno longer attempts to parse the boundary (e.g."---"or other boundary string) within the response data itself, only when reading the beginning of each mulitpart chunked message.#10789
23a4e1578Thanks @phryneas! - Fix a bug where other fields could be aliased to__typenameorid, in which case an incoming result would be merged into the wrong cache entry.v3.7.14Compare Source
Patch Changes
#10764
1b0a61fe5Thanks @phryneas! - DeprecateuseFragmentreturnPartialDataoption#10810
a6252774fThanks @dleavitt! - Fix type signature ofServerError.In <3.7
HttpLinkandBatchHttpLinkwould return aServerError.messageof e.g."Unexpected token 'E', \"Error! Foo bar\" is not valid JSON"and aServerError.resultofundefinedin the case where a server returned a >= 300 response code with a response body containing a string that could not be parsed as JSON.In >=3.7,
messagebecame e.g.Response not successful: Received status code 302andresultbecame the string from the response body, however the type inServerError.resultwas not updated to include thestringtype, which is now properly reflected.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.This should only affect you if you are wrapping functions provided by Apollo Client with your own abstractions that pass in their generics as type arguments, in which case you might get an error like
error TS2344: Type 'YourGenericType' does not satisfy the constraint 'OperationVariables'. In that case, make sure thatYourGenericTypeis restricted to a type that only accepts objects viaextends, likeRecord<string, any>or@apollo/client'sOperationVariables:import { QueryHookOptions, QueryResult, useQuery, + OperationVariables, } from '@​apollo/client'; - export function useWrappedQuery<T, TVariables>( + export function useWrappedQuery<T, TVariables extends OperationVariables>( query: DocumentNode, queryOptions: QueryHookOptions<T, TVariables> ): QueryResult<T, TVariables> { const [execute, result] = useQuery<T, TVariables>(query); }#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
b93388d75Thanks @phryneas! - ObservableQuery.getCurrentResult: skip the cache if the running query should not access the cachev3.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/client@3.5.10, 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
v3.5.10Compare Source
Improvements
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.@glasser in #9369
v3.5.9Compare Source
Improvements
Interpret
keyFields: [...]andkeyArgs: [...]configurations inInMemoryCachetype/field policies asReadonlyArrays, since they are never mutated internally.@julienfouilhe in #9339
Avoid declaring a global type for the
__DEV__constant, to avoid conflict with other such global declarations.@benjamn in #9386
Bug Fixes
Fix
useSubscriptionexecutingskipped subscription when input changes.@levrik in #9299
Fix partial data appearing in
useQuery().datawhennotifyOnNetworkStatusChange: true.@brainkim in #9367
Prevent
Promises returned byuseLazyQueryexecute functions from causing unhandledPromiserejection errors if uncaught.@brainkim in #9380
v3.5.8Compare Source
Bug Fixes
calledproperty returned byuseQuery()anduseLazyQuery().@sztadii in #9304
Bug Fixes (by @brainkim in #9328)
refetch()not being called whenskipis true.useLazyQuery()execution function having stale variables.useLazyQuery()execution function not rejecting when a query errors.v3.5.7Compare Source
Bug Fixes
Fix regression that prevented calling
onErrororonCompletedin some cases when usinguseQuery.@mmahalwy in #9226
Make
useQueryrespectdefaultOptions.watchQuery.fetchPolicy.@yasharzolmajdi in #9210
v3.5.6Compare Source
Bug Fixes (by @brainkim in #9144)
useMutation()is constant.useMutation()callbacks having stale closures.useQuery()variables being out of date.v3.5.5Compare Source
Bug Fixes
printer: Printerpositional parameter from publicly-exportedselectHttpOptionsAndBodyfunction, whose addition in #8699 was a breaking change (starting in Apollo Client 3.5.0) for direct consumers ofselectHttpOptionsAndBody.@benjamn in #9103
v3.5.4Compare Source
Notices
[Relevant if you use Apollo Client with React Native] Since Apollo Client v3.5.0, CommonJS bundles provided by
@apollo/clientuse a.cjsfile extension rather than.cjs.js, so Node.js won't interpret them as ECMAScript modules. While this change should be an implementation detail, it may cause problems for the Metro bundler used by React Native, whoseresolver.sourceExtsconfiguration does not include thecjsextension by default.As a workaround until this issue is resolved, you can configure Metro to understand the
.cjsfile extension by creating ametro.config.jsfile in the root of your React Native project:Improvements
Restore the ability to pass
onError()andonCompleted()to the mutation execution function.@brainkim in #9076
Work around webpack 5 errors of the form
The request 'ts-invariant/process' failed to resolve only because it was resolved as fully specified
by ensuring
import ... from 'ts-invariant/process'is internally written toimport ... from 'ts-invariant/process/index.js'.@benjamn in #9083
v3.5.3Compare Source
Avoid rewriting non-relative imported module specifiers in
config/rewriteModuleIds.tsscript, thereby allowing bundlers to resolve those imports as they see fit.@benjamn in #9073
Ensure only current file is matched when running VSCode debugger.
@eps1lon in #9050
v3.5.2Compare Source
useMutationexecute function returning non-identical execution functions when passing similar options.@brainkim in #9037
v3.5.1Compare Source
Improvements
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.@glasser in #9369
v3.5.0Compare Source
Improvements
Add
updateQueryandupdateFragmentmethods toApolloCache, simplifying commonreadQuery/writeQuerycache update patterns.@wassim-k in #8382
Field directives and their arguments can now be included along with field argument names when using field policy
keyArgs: [...]notation. For example, if you have aQuery.feedfield that takes an argument calledtypeand uses a@connection(key:...)directive to keepfeeddata from different queries separate within the cache, you might configure both using the followingInMemoryCachefield policy:@benjamn in #8678
Report single
MissingFieldErrorinstead of a potentially very largeMissingFieldError[]array for incomplete cache reads, improving performance and memory usage.@benjamn in #8734
When writing results into
InMemoryCache, each written object is now identified usingpolicies.identifyafter traversing the fields of the object (rather than before), simplifying identification and reducing duplicate work. If you have customkeyFieldsfunctions, they still receive the raw result object as their first parameter, but theKeyFieldsContextparameter now providescontext.storeObject(theStoreObjectjust processed byprocessSelectionSet) andcontext.readField(a helper function for reading fields fromcontext.storeObjectand anyReferences it might contain, similar toreadFieldforread,merge, andcache.modifyfunctions).@benjamn in #8996
Ensure
cache.identifynever throws when primary key fields are missing, and include the source object in the error message whenkeyFieldsprocessing fails.@benjamn in #8679
The
HttpLinkconstructor now accepts an optionalprintfunction that can be used to customize how GraphQLDocumentNodeobjects are transformed back into strings before they are sent over the network.@sarahgp in #8699
Make
@apollo/client/testinga fully-fledged, independent entry point, instead of re-exporting@apollo/client/utilities/testing(which was never an entry point and no longer exists).@benjamn in #8769
A new nested entry point called
@apollo/client/testing/corehas been created. Importing from this entry point instead of@apollo/client/testingexcludes any React-related dependencies.@wassim-k in #8687
Make
cache.batchreturn the result of calling theoptions.updatefunction. <bConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.