Restore pre-v3.6 variables replacement behavior of ObservableQuery#reobserve method, fixing a regression that prevented removal of variables.
@benjamn in #9741
Preserve previousData even when different query or client provided to useQuery, instead of resetting previousData to undefined in those cases, matching behavior prior to v3.6.0.
@benjamn in #9734
Fix bug where onCompleted() and onError() are stale for useMutation().
@charle692 in #9740
Limit scope of DeepMerger object reuse, and avoid using Object.isFrozen, which can introduce differences between development and production if objects that were frozen using Object.freeze in development are left unfrozen in production.
@benjamn in #9742
Properly merge variables from original useLazyQuery(query, { variables }) with variables passed to execution function.
@benjamn in #9758
Fix bug where onCompleted and onError are stale for useMutation. onCompleted and onError could not be changed while a mutation is executing. by @charle692 in apollographql/apollo-client#9740
Allow useLazyQuery(query, { defaultOptions }) to benefit from defaultOptions.variables and client.defaultOptions.watchQuery.variables merging.
@benjamn in #9762
Apollo Client 3.6.5 (2022-05-23)
Bug Fixes
Restore pre-v3.6 variables replacement behavior of ObservableQuery#reobserve method, fixing a regression that prevented removal of variables.
@benjamn in #9741
Preserve previousData even when different query or client provided to useQuery, instead of resetting previousData to undefined in those cases, matching behavior prior to v3.6.0.
@benjamn in #9734
Fix bug where onCompleted() and onError() are stale for useMutation().
@charle692 in #9740
Limit scope of DeepMerger object reuse, and avoid using Object.isFrozen, which can introduce differences between development and production if objects that were frozen using Object.freeze in development are left unfrozen in production.
@benjamn in #9742
Properly merge variables from original useLazyQuery(query, { variables }) with variables passed to execution function.
@benjamn in #9758
Apollo Client 3.6.4 (2022-05-16)
Bug Fixes
Guarantee Concast cleanup without Observable 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 than use-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 dependencies ts-invariant and zen-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 about metro.config.js.@benjamn in #9716
Handle falsy incoming data more gracefully in offetLimitPagination().merge function.
@shobhitsharma in #9705
Apollo Client 3.6.3 (2022-05-05, only tagged next on npm)
Bug Fixes
... (truncated)
Commits
a9226c1 Bump @apollo/client npm version to 3.6.6.
1b8449a Merge pull request #9762 from apollographql/fix-useLazyQuery-defaultOptions-m...
3e59b3d Bump bundlesize limit to 29.6kB (now 29.55kB).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @apollo/client from 3.5.10 to 3.6.6.
Release notes
Sourced from
@apollo/client
's releases.... (truncated)
Changelog
Sourced from
@apollo/client
's changelog.... (truncated)
Commits
a9226c1
Bump@apollo/client
npm version to 3.6.6.1b8449a
Merge pull request #9762 from apollographql/fix-useLazyQuery-defaultOptions-m...3e59b3d
Bump bundlesize limit to 29.6kB (now 29.55kB).dd3eb7a
Decompose private InternalState#getObsQueryOptions helper method.b0e4bf4
Mention PR #9762 in CHANGELOG.md.3ea7893
Test preservation of global and local default useQuery options.ecd6a3f
Let new useQuery variables replace old, but merge defaultOptions.b86c363
Bump@apollo/client
npm version to 3.6.5.17cc8a0
Mergevariables
from originaluseLazyQuery(query, { variables })
with `va...5fc6a39
Merge pull request #9742 from apollographql/issue-9735-DeepMerger-prod-only-m...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)