#118396481fe1 Thanks @jerelmiller! - Fix a regression in 3.9.5 where a merge function that returned an incomplete result would not allow the client to refetch in order to fulfill the query.
#1184486984f2 Thanks @jerelmiller! - Honor the @nonreactive directive when using cache.watchFragment or the useFragment hook to avoid rerendering when using these directives.
This change deprecates QueryReference in favor of a QueryRef type that doesn't expose any properties.
This change also updates preloadQuery to return a new PreloadedQueryRef type, which exposes the toPromise function as it does today. This means that query refs produced by useBackgroundQuery and useLoadableQuery now return QueryRef types that do not have access to a toPromise function, which was never meant to be used in combination with these hooks.
While we tend to avoid any types of breaking changes in patch releases as this, this change was necessary to support an upcoming version of the React Server Component integration, which needed to omit the toPromise function that would otherwise have broken at runtime.
Note that this is a TypeScript-only change. At runtime, toPromise is still present on all queryRefs currently created by this package - but we strongly want to discourage you from accessing it in all cases except for the PreloadedQueryRef use case.
Migration is as simple as replacing all references to QueryReference with QueryRef, so it should be possible to do this with a search & replace in most code bases:
-import { QueryReference } from '@apollo/client'
+import { QueryRef } from '@apollo/client'
function Component({ queryRef }: { queryRef: QueryReference<TData> }) {
#118454c5c820 Thanks @jerelmiller! - Remove @nonreactive directives from queries passed to MockLink to ensure they are properly matched.
#11837dff15b1 Thanks @jerelmiller! - Fix an issue where a polled query created in React strict mode may not stop polling after the component unmounts while using the cache-and-network fetch policy.
#118212675d3c Thanks @jerelmiller! - Fix a regression where rerendering a component with useBackgroundQuery would recreate the queryRef instance when used with React's strict mode.
#118212675d3c Thanks @jerelmiller! - Revert the change introduced in
3.9.10 via #11738 that disposed of queryRefs synchronously. This change caused too many issues with strict mode.
#118396481fe1 Thanks @jerelmiller! - Fix a regression in 3.9.5 where a merge function that returned an incomplete result would not allow the client to refetch in order to fulfill the query.
#1184486984f2 Thanks @jerelmiller! - Honor the @nonreactive directive when using cache.watchFragment or the useFragment hook to avoid rerendering when using these directives.
This change deprecates QueryReference in favor of a QueryRef type that doesn't expose any properties.
This change also updates preloadQuery to return a new PreloadedQueryRef type, which exposes the toPromise function as it does today. This means that query refs produced by useBackgroundQuery and useLoadableQuery now return QueryRef types that do not have access to a toPromise function, which was never meant to be used in combination with these hooks.
While we tend to avoid any types of breaking changes in patch releases as this, this change was necessary to support an upcoming version of the React Server Component integration, which needed to omit the toPromise function that would otherwise have broken at runtime.
Note that this is a TypeScript-only change. At runtime, toPromise is still present on all queryRefs currently created by this package - but we strongly want to discourage you from accessing it in all cases except for the PreloadedQueryRef use case.
Migration is as simple as replacing all references to QueryReference with QueryRef, so it should be possible to do this with a search & replace in most code bases:
-import { QueryReference } from '@apollo/client'
+import { QueryRef } from '@apollo/client'
function Component({ queryRef }: { queryRef: QueryReference<TData> }) {
#118454c5c820 Thanks @jerelmiller! - Remove @nonreactive directives from queries passed to MockLink to ensure they are properly matched.
#11837dff15b1 Thanks @jerelmiller! - Fix an issue where a polled query created in React strict mode may not stop polling after the component unmounts while using the cache-and-network fetch policy.
#118212675d3c Thanks @jerelmiller! - Fix a regression where rerendering a component with useBackgroundQuery would recreate the queryRef instance when used with React's strict mode.
#118212675d3c Thanks @jerelmiller! - Revert the change introduced in
3.9.10 via #11738 that disposed of queryRefs synchronously. This change caused too many issues with strict mode.
#787118a3827 Thanks @tninesling! - Subscription heartbeats are initialized prior to awaiting subscribe(). This allows long-running setup to happen in the returned Promise without the subscription being terminated prior to resolution.
#787118a3827 Thanks @tninesling! - Subscription heartbeats are initialized prior to awaiting subscribe(). This allows long-running setup to happen in the returned Promise without the subscription being terminated prior to resolution.
4.10.3
Patch Changes
#78665f335a5 Thanks @tninesling! - Catch errors thrown by subscription generators, and gracefully clean up the subscription instead of crashing.
#6188e10c13a
Thanks @ardatan! - Add respectArrayLength flag to mergeDeep so
instead of concatenating the arrays, elements of them will be merged if they have the same length
10.2.0
Minor Changes
#61055567347
Thanks @ardatan! - Add enumValueFilter and directiveFilter to
filterSchema
Patch Changes
#61055567347
Thanks @ardatan! - Handle fields in unmerged types as both isolated
and non-isolated fields
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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the graphql group with 9 updates in the / directory:
3.9.10
3.10.4
4.10.2
4.10.4
10.0.3
10.0.4
5.0.6
5.0.7
4.2.0
4.2.1
4.0.3
5.0.5
9.0.3
9.0.4
10.1.3
10.2.1
0.12.1
0.14.1
Updates
@apollo/client
from 3.9.10 to 3.10.4Release notes
Sourced from
@apollo/client
's releases.... (truncated)
Changelog
Sourced from
@apollo/client
's changelog.... (truncated)
Commits
d773000
Version Packages (#11843)6481fe1
Fix merge function that returns incomplete result that did not refetch from n...4c5c820
Remove@nonreactive
directives from queries passed toMockLink
(#11845)86984f2
Honor@nonreactive
withuseFragment
andcache.watchFragment
(#11844)8475346
Don’t prompt for DevTools installation for browser extension page (#11838)dff15b1
Fix issue where query may not stop polling after unmount when in Strict mode ...47ad806
create brandedQueryRef
type without exposed properties (#11824)857f100
[docs] Update explainer around reducing-bundle-size (#11791)3861b7c
chore(docs): fix url for reset function (#11836)50da867
Version Packages (#11833)Updates
@apollo/server
from 4.10.2 to 4.10.4Release notes
Sourced from
@apollo/server
's releases.Changelog
Sourced from
@apollo/server
's changelog.Commits
268687d
Version Packages (#7873)18a3827
Eagerly start subscription heartbeats (#7871)7e64902
Version Packages (#7867)5f335a5
Handle failed subscription payloads (#7866)80afc33
Update codegen config to prevent naming collision of enum values (#7854)Updates
@graphql-tools/schema
from 10.0.3 to 10.0.4Changelog
Sourced from
@graphql-tools/schema
's changelog.Commits
17530bc
chore(release): update monorepo packages versions (#6183)7368829
Federation: Update Tests & Interface Objects 2nd take (#6194)7a25261
chore(deps): update all non-major dependencies (#5992)dd0d1cf
chore(deps): update all non-major dependencies (#5932)Updates
@graphql-codegen/typed-document-node
from 5.0.6 to 5.0.7Release notes
Sourced from
@graphql-codegen/typed-document-node
's releases.Changelog
Sourced from
@graphql-codegen/typed-document-node
's changelog.Commits
21fbf0d
chore(release): update monorepo packages versions (#9947)Updates
@graphql-codegen/typescript-operations
from 4.2.0 to 4.2.1Release notes
Sourced from
@graphql-codegen/typescript-operations
's releases.Changelog
Sourced from
@graphql-codegen/typescript-operations
's changelog.Commits
21fbf0d
chore(release): update monorepo packages versions (#9947)Updates
@graphql-inspector/cli
from 4.0.3 to 5.0.5Changelog
Sourced from
@graphql-inspector/cli
's changelog.... (truncated)
Commits
584d43e
chore(release): update monorepo packages versions (#2743)9c36138
Update all packages dependencies versions (#2747)6cd7341
chore(release): update monorepo packages versions (#2741)cf83240
chore(release): update monorepo packages versions (#2739)76a5863
chore(release): update monorepo packages versions (#2737)eca4d4f
chore(release): update monorepo packages versions (#2734)de81e5b
chore(release): update monorepo packages versions (#2727)50874f2
Upgrade pnpm, bump Node engine and Yoga to version 5 (#2719)e77738a
chore(release): update monorepo packages versions (#2680)Updates
@graphql-tools/merge
from 9.0.3 to 9.0.4Changelog
Sourced from
@graphql-tools/merge
's changelog.Commits
36913ee
chore(release): update monorepo packages versions (#6113)a06dbd2
add changeset for previous PR 5973 (#6111)b281dd6
fix(stitch): handle isolated root fields in correct order (#6107)c02eb60
Add tests for merging the directives with the same name and arguments (#6097)0b43440
fix: check directive isNode on merge if inherited from obj (#5973)Updates
@graphql-tools/utils
from 10.1.3 to 10.2.1Changelog
Sourced from
@graphql-tools/utils
's changelog.Commits
17530bc
chore(release): update monorepo packages versions (#6183)e10c13a
Federation: handle shared root fields in optimal way (#6188)03a47b1
fix(stitch): computed fields resolving via a root field returning an interfac...7ef2ad7
chore(release): update monorepo packages versions (#6106)5567347
fix(stitch): do not remove unmerged fields from both isolated and non-isolate...Updates
graphql-codegen-typescript-validation-schema
from 0.12.1 to 0.14.1Release notes
Sourced from graphql-codegen-typescript-validation-schema's releases.
... (truncated)
Commits
70e956a
0.14.158b8451
Merge pull request #612 from Code-Hex/add/enum-support898f824
updated READMEfc60a37
added support for URI format in directive config190056d
0.14.0d106f7c
updated first-label-interaction versione17fdfd
Merge pull request #610 from Code-Hex/remove/with-interface-type7d82b8d
removed withInterfaceType option24518ad
Merge pull request #609 from Code-Hex/issue-47408dbfa0
lint-fixDependabot 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 show