fix(deps): update apollo graphql packages #11034
Closed
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.11.1->3.12.90.10.0->0.11.8Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
apollographql/apollo-client (@apollo/client)
v3.12.9Compare Source
Patch Changes
#12321
daa4f33Thanks @jerelmiller! - Fix type ofextensionsinprotocolErrorsforApolloErrorand theonErrorlink. According to the multipart HTTP subscription protocol, fatal tranport errors follow the GraphQL error format which requireextensionsto be a map as its value instead of an array.#12318
b17968bThanks @jerelmiller! - AllowRetryLinkto retry an operation when fatal transport-level errors are emitted from multipart subscriptions.v3.12.8Compare Source
Patch Changes
#12292
3abd944Thanks @phryneas! - Remove unused dependencyresponse-iterator#12287
bf313a3Thanks @phryneas! - Fixes an issue whereclient.watchFragment/useFragmentwith@includescrashes when a separate cache update writes to the conditionally included fields.v3.12.7Compare Source
Patch Changes
#12281
d638ec3Thanks @jerelmiller! - Make fatal tranport-level errors from multipart subscriptions available to the error link with theprotocolErrorsproperty.#12281
d638ec3Thanks @jerelmiller! - Fix the array type for theerrorsfield on theApolloPayloadResulttype. This type was always in the shape of the GraphQL error format, per the multipart subscriptions protocol and never a plain string or a JavaScript error object.v3.12.6Compare Source
Patch Changes
#12267
d57429dThanks @jerelmiller! - Maintain theTDatatype when used withUnmaskedwhenTDatais not a masked type generated from GraphQL Codegen.#12270
3601246Thanks @jerelmiller! - Fix handling of tagged/branded primitive types when used as scalar values withUnmasked.v3.12.5Compare Source
Patch Changes
#12252
cb9cd4eThanks @jerelmiller! - Changes the default behavior of theMaybeMaskedtype to preserve types unless otherwise specified. This change makes it easier to upgrade from older versions of the client where types could have unexpectedly changed in the application due to the default of trying to unwrap types into unmasked types. This change also fixes the compilation performance regression experienced when simply upgrading the client since types are now preserved by default.A new
modeoption has now been introduced to allow for the old behavior. See the next section on migrating if you wish to maintain the old default behavior after upgrading to this version.Migrating from <= v3.12.4
If you've adopted data masking and have opted in to using masked types by setting the
enabledproperty totrue, you can remove this configuration entirely:If you prefer to specify the behavior explicitly, change the property from
enabled: true, tomode: "preserveTypes":declare module "@​apollo/client" { interface DataMasking { - enabled: true + mode: "preserveTypes" } }If you rely on the default behavior in 3.12.4 or below and would like to continue to use unmasked types by default, set the
modetounmask:v3.12.4Compare Source
Patch Changes
4334d30Thanks @charpeni! - Fix an issue withrefetchQuerieswhere comparingDocumentNodes internally by references could lead to an unknown query, even though theDocumentNodewas indeed an active query—with a different reference.v3.12.3Compare Source
Patch Changes
#12214
8bfee88Thanks @phryneas! - Data masking: prevent infinite recursion ofContainsFragmentsRefstype#12204
851deb0Thanks @jerelmiller! - FixUnmaskedunwrapping tuple types into an array of their subtypes.#12204
851deb0Thanks @jerelmiller! - EnsureMaybeMaskeddoes not try and unwrap types that contain index signatures.#12204
851deb0Thanks @jerelmiller! - EnsureMaybeMaskeddoes not try to unwrap the type asUnmaskedif the type containsany.v3.12.2Compare Source
Patch Changes
84af347Thanks @jerelmiller! - Update peer deps to allow for React 19 stable release.v3.12.1Compare Source
Patch Changes
e1efe74Thanks @phryneas! - Fix import extension in masking entry point.v3.12.0Compare Source
Minor Changes
Data masking 🎭
#12042
1c0ecbfThanks @jerelmiller! - Introduces data masking in Apollo Client.Data masking enforces that only the fields requested by the query or fragment is available to that component. Data masking is best paired with colocated fragments.
To enable data masking in Apollo Client, set the
dataMaskingoption totrue.For detailed information on data masking, including how to incrementally adopt it in an existing applications, see the data masking documentation.
#12131
21c3f08Thanks @jerelmiller! - Allownullas a validfromvalue inuseFragment.More Patch Changes
#12126
d10d702Thanks @jerelmiller! - Maintain the existing document if its unchanged by the codemod and move to more naive whitespace formatting#12150
9ed1e1eThanks @jerelmiller! - Fix issue when usingUnmaskedwith older versions of TypeScript when used with array fields.#12116
8ae6e4eThanks @jerelmiller! - Prevent field accessor warnings when using@unmask(mode: "migrate")on objects that are passed intocache.identify.#12120
6a98e76Thanks @jerelmiller! - Provide a codemod that applies@unmaskto all named fragments for all operations and fragments.Learn how to use the codemod in the incremental adoption documentation.
#12134
cfaf4efThanks @jerelmiller! - Fix issue where data went missing when an unmasked fragment in migrate mode selected fields that the parent did not.#12154
d933defThanks @phryneas! - Data masking types: handle overlapping nested array types and fragments on interface types.#12139
5a53e15Thanks @phryneas! - Fix issue where masked data would sometimes get returned when the field was part of a child fragment from a fragment unmasked by the parent query.#12123
8422a30Thanks @jerelmiller! - Warn when using data masking with "no-cache" operations.#12139
5a53e15Thanks @phryneas! - Fix issue where the warning emitted by@unmask(mode: "migrate")would trigger unnecessarily when the fragment was used alongside a masked fragment inside an inline fragment.#12114
1d4ce00Thanks @jerelmiller! - Fix error when combining@unmaskand@deferdirectives on a fragment spread when data masking is enabled.#12130
1e7d009Thanks @jerelmiller! - Fix error thrown when applying unmask migrate mode warnings on interface types with selection sets that contain inline fragment conditions.#12152
78137ecThanks @phryneas! - Add a helper that will skip the TS unmasking alorithm when no fragments are present on type level#12126
d10d702Thanks @jerelmiller! - Ensure documents unchanged by the codemod are left untouched.#12133
a6ece37Thanks @jerelmiller! - Ensurenullis retained in nullable types when unmasking a type with theUnmaskedhelper type.#12139
5a53e15Thanks @phryneas! - Fix issue that threw errors when masking partial data with@unmask(mode: "migrate").v3.11.10Compare Source
Patch Changes
1765668Thanks @mgmolisani! - Fixed a bug when evaluating the devtools flag with the new syntaxdevtools.enabledthat could result totruewhen explicitly set tofalse.v3.11.9Compare Source
Patch Changes
a3f95c6Thanks @jerelmiller! - Fix an issue where errors returned from afetchMorecall from a Suspense hook would cause a Suspense boundary to be shown indefinitely.v3.11.8Compare Source
Patch Changes
35cf186Thanks @phryneas! - Fixed a bug where incorrect object access in some Safari extensions could cause a crash.v3.11.7Compare Source
Patch Changes
e471cefThanks @jerelmiller! - Fixes a regression from where passing an invalid identifier tofrominuseFragmentwould result in the warningTypeError: Cannot read properties of undefined (reading '__typename').v3.11.6Compare Source
Patch Changes
#12049
9c26892Thanks @phryneas and @maciesielka! - Fix a bug whereuseFragmentdid not re-render as expected#12044
04462a2Thanks @DoctorJohn! - Cache theuseSubscriptionhook'srestartfunction definition between re-renders.v3.11.5Compare Source
Patch Changes
#12027
eb3e21bThanks @JavaScriptBach! - TypeMutationResult.resetas an arrow function#12020
82d8cb4Thanks @jerelmiller! - Better conform to Rules of React by avoiding write of ref in render foruseFragment.v3.11.4Compare Source
Patch Changes
#11994
41b17e5Thanks @jerelmiller! - Update theModifierfunction type to allowcache.modifyto return deeply partial data.#11989
e609156Thanks @phryneas! - Fix a potential crash when callingclearStorewhile a query was running.Previously, calling
client.clearStore()while a query was running had one of these results:useQuerywould stay in aloading: truestate.useLazyQuerywould stay in aloading: truestate, but also crash with a"Cannot read property 'data' of undefined"error.Now, in both cases, the hook will enter an error state with a
networkError, and the promise returned by theuseLazyQueryexecutefunction will return a result in an error state.#11994
41b17e5Thanks @jerelmiller! - Prevent accidental distribution oncache.modifyfield modifiers when a field is a union type array.v3.11.3Compare Source
Patch Changes
#11984
5db1659Thanks @jerelmiller! - Fix an issue where multiple fetches with results that returned errors would sometimes set thedataproperty with anerrorPolicyofnone.#11974
c95848eThanks @jerelmiller! - Fix an issue wherefetchMorewould write its result data to the cache when using it with ano-cachefetch policy.#11974
c95848eThanks @jerelmiller! - Fix an issue where executingfetchMorewith ano-cachefetch policy could sometimes result in multiple network requests.#11974
c95848eThanks @jerelmiller! -Potentially disruptive change
When calling
fetchMorewith a query that has ano-cachefetch policy,fetchMorewill now throw if anupdateQueryfunction is not provided. This provides a mechanism to merge the results from thefetchMorecall with the query's previous result.v3.11.2Compare Source
Patch Changes
38c0a2cThanks @jerelmiller! - Fix missinggetServerSnapshoterror when usinguseSubscriptionon the server.apollographql/apollo-client-nextjs (@apollo/client-react-streaming)
v0.11.8Compare Source
Patch Changes
251bec9: Change package publishing to Changesets251bec9]2f779cd]v0.11.7Compare Source
v0.11.6Compare Source
v0.11.5Compare Source
v0.11.4Compare Source
v0.11.3Compare Source
v0.11.2Compare Source
v0.11.1Compare Source
v0.11.0Compare Source
v0.10.1Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 was generated by Mend Renovate. View the repository job log.