-
Notifications
You must be signed in to change notification settings - Fork 991
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
fix(deps): update dependency @apollo/client to v3.6.2 #5343
Merged
Conversation
This file contains 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
renovate
bot
added
the
release:chore
This PR is a chore (means nothing for users)
label
Apr 27, 2022
✅ Deploy Preview for redwoodjs-docs canceled.
|
renovate
bot
force-pushed
the
renovate/apollo-graphql-packages
branch
6 times, most recently
from
April 28, 2022 23:23
9b1571f
to
c770f9a
Compare
renovate
bot
changed the title
fix(deps): update dependency @apollo/client to v3.6.0
fix(deps): update dependency @apollo/client to v3.6.1
Apr 29, 2022
renovate
bot
force-pushed
the
renovate/apollo-graphql-packages
branch
18 times, most recently
from
May 2, 2022 08:46
fc385f4
to
ab60665
Compare
Renovate Ignore NotificationAs this PR has been closed unmerged, Renovate will now ignore this update (3.6.1). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened. |
renovate
bot
force-pushed
the
renovate/apollo-graphql-packages
branch
7 times, most recently
from
May 3, 2022 00:38
33d322a
to
0071c8b
Compare
renovate
bot
changed the title
fix(deps): update dependency @apollo/client to v3.6.1
fix(deps): update dependency @apollo/client to v3.6.2
May 3, 2022
renovate
bot
force-pushed
the
renovate/apollo-graphql-packages
branch
4 times, most recently
from
May 3, 2022 04:31
a491ee8
to
2f8116c
Compare
renovate
bot
force-pushed
the
renovate/apollo-graphql-packages
branch
from
May 4, 2022 06:50
49adde9
to
be1ecdd
Compare
… variables Add tests for TS cells
jtoar
reviewed
May 4, 2022
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.6.2
Release Notes
apollographql/apollo-client
v3.6.2
Compare Source
Bug Fixes
getServerSnapshot
function touseSyncExternalStore
in addition togetSnapshot
, though the two functions behave identically. This change should fix/unbreak React 18 server rendering.@hungphongbk in #9652
Improvements
networkError.result.errors
in addition toresult.errors
inPersistedQueryLink
.@redaid113 and @benjamn in #9410
v3.6.1
Compare Source
Bug Fixes
fetchBlockingPromise
option from theWatchQueryOptions
interface, due to regressions.@benjamn in #9504
v3.6.0
Compare Source
Potentially disruptive changes
Calling
fetchMore
for queries using thecache-and-network
ornetwork-only
fetch 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-first
fetch policy.@benjamn in #9504
Reimplement
useQuery
anduseLazyQuery
to use the proposeduseSyncExternalStore
API from React 18.@brainkim and @benjamn in #8785 and #9596
Fixed bug where the
useLazyQuery
execution function would always use therefetch
method ofObservableQuery
, instead of properly reapplying the currentfetchPolicy
using thereobserve
method.@benjamn in #9564
The internal use of
options.fetchBlockingPromise
byuseQuery
anduseLazyQuery
may 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
peerDependencies
and its internal implementation, Apollo Client v3.6 should no longer prevent you from updating to React 18 in your applications.Internally, we have refactored
useQuery
anduseLazyQuery
to be implemented in terms of React's new (shimmable)useSyncExternalStore
hook, 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
useQuery
anduseLazyQuery
when used in<React.StrictMode>
, which double-renders components in development. While this double-rendering always results in callinguseQuery
twice, forcing Apollo Client to create and then discard an unnecessaryObservableQuery
object, we now have multiple defenses in place against executing any network queries for the unusedObservableQuery
objects.In upcoming v3.6.x and v3.7 (beta) releases, we will be completely overhauling our server-side rendering utilities (
getDataFromTree
et 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
BatchLink
to cancel queued and in-flight operations.@PowerKiKi and @benjamn in #9248
Add
GraphQLWsLink
in@apollo/client/link/subscriptions
. This link is similar to the existingWebSocketLink
in@apollo/client/link/ws
, but uses the newergraphql-ws
package and protocol instead of the oldersubscriptions-transport-ws
implementation. 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
defaultOptions
touseQuery
to avoid clobbering/resetting existing options whenuseQuery
is called repeatedly.@benjamn in #9563, superseding #9223
Provide additional context to
nextFetchPolicy
functions to assist withfetchPolicy
transitions. More details can be found in thenextFetchPolicy
documentation.@benjamn in #9222
Remove nagging deprecation warning about passing an
options.updateQuery
function tofetchMore
.@benjamn in #9504
Let
addTypenameToDocument
take anyASTNode
(includingDocumentNode
, as before).@benjamn in #9595
Set
useMutation
internalisMounted
variable totrue
again when component remounted.@devpeerapong in #9561
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.