This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
[Snyk] Upgrade @apollo/client from 3.5.10 to 3.8.7 #134
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 was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade @apollo/client from 3.5.10 to 3.8.7.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @apollo/client
Patch Changes
#11297
c8c76a522
Thanks @ jerelmiller! - Add an explicit return type for theuseReadQuery
hook calledUseReadQueryResult
. Previously the return type of this hook was inferred from the return value.#11337
bb1da8349
Thanks @ phryneas! - #11206 used the TypeScript syntaxinfer X extends Y
that was introduced in TS 4.8.This caused some problems for some users, so we are rolling back to a more backwards-compatible (albeit slightly less performant) type.
Patch Changes
#11291
2be7eafe3
Thanks @ ArioA! - Fix a bug that allows to only callloadErrorMessages
without also callingloadDevErrorMessages
.#11274
b29f000f3
Thanks @ jerelmiller! - Start the query ref auto dispose timeout after the initial promise has settled. This prevents requests that run longer than the timeout duration from keeping the component suspended indefinitely.#11289
b5894dbf0
Thanks @ phryneas! -MockedProvider
: defaultconnectToDevTools
tofalse
in createdApolloClient
instance.This will prevent the mocked
ApolloClient
instance from trying to connect to the DevTools, which would start asetTimeout
that might keep running after a test has finished.#11206
dd2ce7687
Thanks @ phryneas! -cache.modify
: Less strict types & new dev runtime warnings.Patch Changes
#11266
5192cf6e1
Thanks @ phryneas! - Fixes argument handling for invariant log messages.#11235
6cddaaf65
Thanks @ phryneas! - Fix nextFetchPolicy behaviour with transformed documents by keepingoptions
reference stable when passing it through QueryManager.#11252
327a2abbd
Thanks @ phryneas! - Fixes a race condition in asyncMap that caused issues in React Native when errors were returned in the response payload along with a data property that was null.#11229
c372bad4e
Thanks @ phryneas! - Remove (already throwing) SuspenseCache export that should have been removed in 3.8.#11267
bc055e068
Thanks @ phryneas! - Remove some dead code.Patch Changes
9e59b251d
Thanks @ phryneas! - Forinvariant.log
etc., error arguments are now serialized correctly in the link to the error page.Patch Changes
fd2a4cf0c
Thanks @ phryneas! - Call devtools registration after ApolloClient is fully set up.Patch Changes
#10072
51045c336
Thanks @ Huulivoide! - Fixes race conditions in useReactiveVar that may prevent updates to the reactive variable from propagating through the hook.#11162
d9685f53c
Thanks @ jerelmiller! - Ensures GraphQL errors returned in subscription payloads adhere to theerrorPolicy
set inclient.subscribe(...)
calls.#11134
96492e142
Thanks @ alessbell! - Use separate type imports in useSuspenseQuery and useBackgroundQuery to workaround SWC compiler issue.#11117
6b8198109
Thanks @ phryneas! - Adds a new devtools registration mechanism and tweaks the mechanism behind the"devtools not found" mechanic.
#11186
f1d429f32
Thanks @ jerelmiller! - Fix an issue where race conditions when rapidly switching between variables would sometimes result in the wrongdata
returned from the query. Specifically this occurs when a query is triggered with an initial set of variables (VariablesA
), then triggers the same query with another set of variables (VariablesB
) but switches back to theVariablesA
before the response forVariablesB
is returned. Previously this would result in the data forVariablesB
to be displayed whileVariablesA
was active. The data is forVariablesA
is now properly returned.#11163
a8a9e11e9
Thanks @ bignimbus! - Fix typo in error message: "occured" -> "occurred"#11180
7d9c481e5
Thanks @ jerelmiller! - Fixes an issue where refetching fromuseBackgroundQuery
viarefetch
with an error after an error was already fetched would get stuck in a loading state.Commit messages
Package name: @apollo/client
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs