#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.
Bumps the js group with 21 updates in the /frontend directory:
3.8.6
3.10.4
7.22.9
7.24.6
7.21.3
7.24.6
17.4.4
19.3.0
17.4.4
19.2.2
1.13.1
1.16.1
1.12.0
1.13.1
4.5.11
5.0.8
0.4.3
2.0.0
6.5.1
6.5.2
6.4.0
6.5.2
6.4.2
6.5.2
7.98.0
8.4.0
4.1.0
6.6.6
3.3.0
3.5.0
2.19.4
2.20.1
3.0.0
3.1.2
1.58.3
1.77.2
11.2.0
12.0.4
6.2.5
6.2.6
3.1.1
3.3.0
Updates
@apollo/client
from 3.8.6 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
@babel/core
from 7.22.9 to 7.24.6Release notes
Sourced from
@babel/core
's releases.... (truncated)
Changelog
Sourced from
@babel/core
's changelog.... (truncated)
Commits
9630250
v7.24.6553e433
Generate helper metadata at build time (#16501)fbfe16c
Fix source maps for template literals (#16515)6e3539b
[babel 8] Publish.d.ts
files for every package (#16416)e37e64d
Use eslint v9 (#16479)71c247a
[babel 8] Require Node.js^18.20.0 || ^20.10.0 || >=21.0.0
(#16457)ddbea7d
v7.24.5ee48754
Use multiple TypeScript projects (#16430)a8994f8
Reduce platform-specific tests (#16436)5a8c692
v7.24.4Updates
@babel/eslint-parser
from 7.21.3 to 7.24.6Release notes
Sourced from
@babel/eslint-parser
's releases.... (truncated)
Changelog
Sourced from
@babel/eslint-parser
's changelog.... (truncated)
Commits
9630250
v7.24.6e37e64d
Use eslint v9 (#16479)97c3eb1
RemovesyntaxType
option for record-and-tuple (parser&plugin) (#16458)71c247a
[babel 8] Require Node.js^18.20.0 || ^20.10.0 || >=21.0.0
(#16457)ddbea7d
v7.24.50128984
Relax ESLint peerDependency constraint to allow v9 (#16414)ee48754
Use multiple TypeScript projects (#16430)822b025
v7.24.14dd88ea
Test Babel 7 plugins compatibility with Babel 8 core (#16332)83b74fd
v7.23.10Updates
@commitlint/cli
from 17.4.4 to 19.3.0Release notes
Sourced from
@commitlint/cli
's releases.... (truncated)
Changelog
Sourced from
@commitlint/cli
's changelog.... (truncated)
Commits
447fd3b
v19.3.066dd3a5
v19.2.2172cb52
v19.2.1f91d539
Fix regression when using --last flag (#3982)a64b417
v19.2.099f4f3f
feat(cli): introduce new --last flag, to stop recommending HEAD~1 (#3916)8d7a3d5
v19.1.09b4ac34
v19.0.3e538924
v19.0.29351b8e
v19.0.1Updates
@commitlint/config-conventional
from 17.4.4 to 19.2.2Release notes
Sourced from
@commitlint/config-conventional
's releases.... (truncated)
Changelog
Sourced from
@commitlint/config-conventional
's changelog.