fix(deps): update all non-major dependencies - autoclosed #41
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.7.0
16.2.3
->16.3.0
16.2.1
->16.2.4
3.1.1
->3.2.1
2.6.3
->2.13.1
2.1.1
->2.2.1
2.4.1
->2.5.1
2.4.8
->2.7.3
2.3.5
->2.5.3
3.2.11
->3.3.3
1.5.0
->1.7.3
^13.2.1
->13.3.0
^8.3.2
->8.5.0
0.4.0
->0.4.2
0.5.0
->0.5.3
0.5.2
->0.5.7
2.3.3
->2.3.4
3.0.1
->3.0.2
16.2.14
->16.2.15
2.7.2
->2.7.6
17.0.44
->17.0.50
4.4.4
->4.4.5
4.3.0
->4.3.2
10.4.4
->10.4.12
0.26.1
->0.27.2
2.3.1
->2.3.2
5.1.7
->5.1.13
2.28.0
->2.29.3
2.3.6
->2.4.0
16.0.0
->16.0.3
8.13.0
->8.24.0
12.1.5
->12.3.1
6.8.1
->6.9.4
16.3.0
->16.6.0
12.4.0
->12.5.0
2.8.2
->2.10.0
12.1.5
->12.3.1
3.0.5
->3.1.23
8.4.12
->8.4.17
2.6.2
->2.7.1
7.30.0
->7.36.1
4.4.2
->4.4.5
3.0.24
->3.1.8
1.0.11
->1.0.14
Release Notes
apollographql/apollo-client
v3.7.0
Compare Source
New Features
Implement preview support for the
@defer
directive.@alessbell and @benjamn in #10018
Implement
useFragment_experimental
hook, which represents a lightweight live binding into theApolloCache
, and never triggers network requests of its own.@benjamn in #8782
Allow registering named fragments with
InMemoryCache
to support using...NamedFragment
in queries without redeclaringNamedFragment
repeatedly in every query that uses it.@benjamn in #9764
Support
onError
callback foruseSubscription
hook.@jeroenvisser101 in #9495
Improvements
Delay calling
onCompleted
andonError
callbacks passed touseQuery
usingPromise.resolve().then(() => ...)
to fix issue #9794.@dylanwulf in #9823
Replace
concast.cleanup
method with simplerconcast.beforeNext
API, which promises to call the given callback function just before the next result/error is delivered. In addition,concast.removeObserver
no longer takes aquietly?: boolean
parameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called.@benjamn in #9718
Allow preserving header name capitalization when creating an
HttpLink
withcreateHttpLink({ uri, preserveHeaderCase: true })
. Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs.@MrDoomBringer in #9891
Make queries with a
pollInterval
respect theno-cache
fetch policy, instead of writing polled results into the cache.@MrDoomBringer in #10020
Deprecate the
onSubscriptionData
callback in favor of a newonData
callback for theuseSubscription
hook. Deprecate theonSubscriptionComplete
callback in favor of a newonComplete
callback for theuseSubscription
hook.@jerelmiller in #10134
Potentially disruptive
subscribeAndCount
testing utility exported from@apollo/client/testing/core
now takes a single genericTResult
type parameter, instead ofTData
. This type will typically be inferred from theobservable
argument 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.10
Compare Source
Improvements
variables
,context
, etc.) used formutation
calls are now available as the second argument to theonCompleted
andonError
callback functions.@MrDoomBringer in #10052
v3.6.9
Compare Source
Bug Fixes
fetchPolicy
unchanged whenskip: true
(or in standby) andnextFetchPolicy
is available, even ifvariables
change.@benjamn in #9823
v3.6.8
Compare Source
Bug Fixes
Fix incorrect
variables
passed inFieldFunctionOptions
for nestedreadField
calls inread
andmerge
functions.@stardustxx in #9808
Improve repository build scripts to work better on Windows.
@dylanwulf in #9805
Ensure
useQuery(query, { skip: true }).called === false
rather than always returningcalled
astrue
.@KucharskiPiotr in #9798
Allow abandoned
reobserve
requests to unsubscribe from their underlyingObservable
.@javier-garcia-meteologica in #9791
v3.6.7
Compare Source
Bug Fixes
BatchHttpLink
to discard pending batched queries on early completion of the underlyingObservable
.@benjamn in #9793
v3.6.6
Compare Source
Bug Fixes
useLazyQuery(query, { defaultOptions })
to benefit fromdefaultOptions.variables
andclient.defaultOptions.watchQuery.variables
merging.@benjamn in #9762
v3.6.5
Compare Source
Bug Fixes
Restore pre-v3.6
variables
replacement behavior ofObservableQuery#reobserve
method, fixing a regression that prevented removal of variables.@benjamn in #9741
Preserve
previousData
even when different query or client provided touseQuery
, instead of resettingpreviousData
to 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
DeepMerger
object reuse, and avoid usingObject.isFrozen
, which can introduce differences between development and production if objects that were frozen usingObject.freeze
in development are left unfrozen in production.@benjamn in #9742
Properly merge
variables
from originaluseLazyQuery(query, { variables })
withvariables
passed to execution function.@benjamn in #9758
v3.6.4
Compare Source
Bug Fixes
Guarantee
Concast
cleanup withoutObservable cancelled prematurely
rejection, potentially solving long-standing issues involving that error.@benjamn in #9701
Ensure
useSubscription
subscriptions are properly restarted after unmounting/remounting by React 18 in<StrictMode>
.@kazekyo in #9707
Improvements
Internalize
useSyncExternalStore
shim, for more control thanuse-sync-external-store
provides, fixing some React Native issues.@benjamn in #9675 and #9709
Provide
@apollo/client/**/*.cjs.native.js
versions of every@apollo/client/**/*.cjs
bundle (including dependenciests-invariant
andzen-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
incoming
data more gracefully inoffetLimitPagination().merge
function.@shobhitsharma in #9705
v3.6.3
Compare Source
Bug Fixes
Simplify
useQuery(query, { defaultOptions })
default options processing in order to fix bug whereskip: true
queries failed to execute upon switching toskip: false
.@benjamn in #9665
Add tests of skipping/unskipping and
useLazyQuery
withdefaultOptions
, and fix a bug causing duplicate requests.@benjamn in #9666
Update
ts-invariant
to version 0.10.2 to fix source map warnings.@benjamn in #9672
Test that
useQuery
queries withskip: true
do not stall server-side rendering.@nathanmarks and @benjamn in #9677
Prevent
useLazyQuery
from making duplicate requests when its execution function is first called, and stop rejecting thePromise
it returns whenresult.error
is defined.@benjamn in #9684
Fix issue with
useQuery
returningloading: true
state during server-side rendering withskip: true
.@nathanmarks in #9679
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
Improvements
variables
,context
, etc.) used formutation
calls are now available as the second argument to theonCompleted
andonError
callback functions.@MrDoomBringer in #10052
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
conventional-changelog/commitlint (@commitlint/cli)
v16.3.0
Compare Source
Note: Version bump only for package @commitlint/cli
16.2.4 (2022-04-28)
Note: Version bump only for package @commitlint/cli
16.2.3 (2022-03-16)
Note: Version bump only for package @commitlint/cli
16.2.1 (2022-02-13)
Note: Version bump only for package @commitlint/cli
v16.2.4
Compare Source
Note: Version bump only for package @commitlint/cli
conventional-changelog/commitlint (@commitlint/config-conventional)
v16.2.4
Compare Source
Note: Version bump only for package @commitlint/config-conventional
dotansimha/graphql-code-generator (@graphql-codegen/add)
v3.2.1
Compare Source
Patch Changes
b408f8238
Thanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolution
node16
or `nodeConfiguration
📅 Schedule: Branch creation - "after 10pm,before 6:00am" in timezone Europe/Warsaw, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled due to failing status checks.
♻ 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 has been generated by Mend Renovate. View repository job log here.