[Snyk] Upgrade @apollo/client from 3.0.0-beta.44 to 3.7.17 #476
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.0.0-beta.44 to 3.7.17.
ℹ️ 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.
The recommended version fixes:
SNYK-JS-APOLLOCLIENT-1085706
Why? CVSS 5.3
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: @apollo/client
Patch Changes
b93388d75
Thanks @ phryneas! - ObservableQuery.getCurrentResult: skip the cache if the running query should not access the cachePatch Changes
#10806
cb1540504
Thanks @ phryneas! - Fix a bug inPersistedQueryLink
that would cause it to permanently skip persisted queries after a 400 or 500 status code.#10807
b32369592
Thanks @ phryneas! -PersistedQueryLink
will now also check for error codes inextensions
.#10982
b9be7a814
Thanks @ sdeleur-sc! - UpdaterelayStylePagination
to avoid populatingstartCursor
when only a single cursor is present under theedges
field. Use that cursor only as theendCursor
.#10962
772cfa3cb
Thanks @ jerelmiller! - RemoveuseGETForQueries
option inBatchHttpLink.Options
type since it is not supported.Potentially breaking change in
PersistedQueryLink
Previously, if the
PersistedQueryLink
encountered a single400
or500
error, it would stop sending any persisted queries in the future. This allowed you to use the link even if a server had no support for persisted queries.We have decided to change this behavior, so now the
PersistedQueryLink
will only stop trying to send query hashes if the server responds with aPERSISTED_QUERY_NOT_SUPPORTED
error code as it was unclear whether a400
or500
status code was in fact because the server did not support persisted queries.If you relied on the previous behaviour, maybe because you were communicating with a server that might or might not support persisted queries, but would return with a different kind of error, you can use the
disable
option callback to override this behavior like this:Alternatively, consider removing the link entirely when your server does not support persisted queries.
New Contributors
Patch Changes
#10891
ab42a5c08
Thanks @ laverdet! - Fixes a bug in how multipart responses are read when using@ defer
. When reading a multipart body,HttpLink
no 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
23a4e1578
Thanks @ phryneas! - Fix a bug where other fields could be aliased to__typename
orid
, in which case an incoming result would be merged into the wrong cache entry.New Contributors
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