#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.3.0
3.5.0
3.8.6
3.10.4
7.22.9
7.24.5
7.21.3
7.24.5
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.2.1
4.1.0
6.6.6
2.19.4
2.20.1
3.0.0
3.1.2
1.58.3
1.77.2
11.2.0
12.0.2
6.2.5
6.2.6
3.1.1
3.3.0
Updates
fast-redact
from 3.3.0 to 3.5.0Release notes
Sourced from fast-redact's releases.
Commits
e268c1c
Bumped v3.5.03e93d32
Pass strings through wildcard key redaction (#32)74e09b2
Bumped v3.4.1f3e9f13
fix: restore using latest secret state (#69)f71a23d
Bumped v3.4.02c2c4be
Merge branch 'main' of github.com:davidmarkclements/fast-redact59b84b2
fix(wildcards): remove old secret references (#67)cc56593
Bumped v3.3.0Updates
@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.5Release notes
Sourced from
@babel/core
's releases.... (truncated)
Changelog
Sourced from
@babel/core
's changelog.... (truncated)
Commits
ddbea7d
v7.24.5ee48754
Use multiple TypeScript projects (#16430)a8994f8
Reduce platform-specific tests (#16436)5a8c692
v7.24.4d4ade61
Test Babel 7/8 compatibility for plugins from es2019 to es2024 (#16399)b8eb831
Fix incorrect function hoisting in some case statements (#16363)0eac8ca
v7.24.3fb7cf63
[babel 8] Removeimport_
fallback (#16365)822b025
v7.24.119fdca5
Reduce the use of class names (#16326)Updates
@babel/eslint-parser
from 7.21.3 to 7.24.5Release notes
Sourced from
@babel/eslint-parser
's releases.... (truncated)
Changelog
Sourced from
@babel/eslint-parser
's changelog.... (truncated)
Commits
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.100e5ae8d
[eslint] Include field decorators in scope analysis (#16240)a0dd614
v7.23.9b2bbffb
Migrateeslint-parser
to cts (#16222)5540310
[eslint] Fixno-use-before-define
for class ref in fields (#16210)Updates
@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.