build(deps): bump @apollo/client from 3.3.6 to 3.10.4
Bumps @apollo/client from 3.3.6 to 3.10.4.
Release notes
Sourced from @apollo/client's releases.
v3.10.4
Patch Changes
#11838
8475346Thanks@alex-kinokon! - Don’t prompt for DevTools installation for browser extension page#11839
6481fe1Thanks@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.#11844
86984f2Thanks@jerelmiller! - Honor the@nonreactivedirective when usingcache.watchFragmentor theuseFragmenthook to avoid rerendering when using these directives.#11824
47ad806Thanks@phryneas! - Create brandedQueryReftype without exposed properties.This change deprecates
QueryReferencein favor of aQueryReftype that doesn't expose any properties. This change also updatespreloadQueryto return a newPreloadedQueryReftype, which exposes thetoPromisefunction as it does today. This means that query refs produced byuseBackgroundQueryanduseLoadableQuerynow returnQueryReftypes that do not have access to atoPromisefunction, 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
toPromisefunction that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime,toPromiseis 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 thePreloadedQueryRefuse case.Migration is as simple as replacing all references to
QueryReferencewithQueryRef, 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> }) {
- function Component({ queryRef }: { queryRef: QueryRef<TData> }) { // ... }
#11845
4c5c820Thanks@jerelmiller! - Remove@nonreactivedirectives from queries passed toMockLinkto ensure they are properly matched.#11837
dff15b1Thanks@jerelmiller! - Fix an issue where a polled query created in React strict mode may not stop polling after the component unmounts while using thecache-and-networkfetch policy.v3.10.3
Patch Changes
#11811
d67d7f9Thanks@phryneas! - Adjust some types for React 19 compat#11834
7d8aad4Thanks@psamim! - Fix error "Cannot convert object to primitive value"v3.10.2
Patch Changes
#11821
2675d3cThanks@jerelmiller! - Fix a regression where rerendering a component withuseBackgroundQuerywould recreate thequeryRefinstance when used with React's strict mode.#11821
2675d3cThanks@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.v3.10.1
Patch Changes
... (truncated)
Changelog
Sourced from @apollo/client's changelog.
3.10.4
Patch Changes
#11838
8475346Thanks@alex-kinokon! - Don’t prompt for DevTools installation for browser extension page#11839
6481fe1Thanks@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.#11844
86984f2Thanks@jerelmiller! - Honor the@nonreactivedirective when usingcache.watchFragmentor theuseFragmenthook to avoid rerendering when using these directives.#11824
47ad806Thanks@phryneas! - Create brandedQueryReftype without exposed properties.This change deprecates
QueryReferencein favor of aQueryReftype that doesn't expose any properties. This change also updatespreloadQueryto return a newPreloadedQueryReftype, which exposes thetoPromisefunction as it does today. This means that query refs produced byuseBackgroundQueryanduseLoadableQuerynow returnQueryReftypes that do not have access to atoPromisefunction, 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
toPromisefunction that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime,toPromiseis 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 thePreloadedQueryRefuse case.Migration is as simple as replacing all references to
QueryReferencewithQueryRef, 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> }) {
- function Component({ queryRef }: { queryRef: QueryRef<TData> }) { // ... }
#11845
4c5c820Thanks@jerelmiller! - Remove@nonreactivedirectives from queries passed toMockLinkto ensure they are properly matched.#11837
dff15b1Thanks@jerelmiller! - Fix an issue where a polled query created in React strict mode may not stop polling after the component unmounts while using thecache-and-networkfetch policy.3.10.3
Patch Changes
#11811
d67d7f9Thanks@phryneas! - Adjust some types for React 19 compat#11834
7d8aad4Thanks@psamim! - Fix error "Cannot convert object to primitive value"3.10.2
Patch Changes
#11821
2675d3cThanks@jerelmiller! - Fix a regression where rerendering a component withuseBackgroundQuerywould recreate thequeryRefinstance when used with React's strict mode.#11821
2675d3cThanks@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.
... (truncated)
Commits
d773000Version Packages (#11843)6481fe1Fix merge function that returns incomplete result that did not refetch from n...4c5c820Remove@nonreactivedirectives from queries passed toMockLink(#11845)86984f2Honor@nonreactivewithuseFragmentandcache.watchFragment(#11844)8475346Don’t prompt for DevTools installation for browser extension page (#11838)dff15b1Fix issue where query may not stop polling after unmount when in Strict mode ...47ad806create brandedQueryReftype without exposed properties (#11824)857f100[docs] Update explainer around reducing-bundle-size (#11791)3861b7cchore(docs): fix url for reset function (#11836)50da867Version Packages (#11833)- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication
Dependency Review
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
| Package | Version | Score | Details | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| npm/@apollo/client | 3.10.4 | :green_circle: 5.6 | Details
| ||||||||||||||||||||||||||||||||||||||||||||||||
| npm/@apollo/client | 3.3.6 | :green_circle: 5.6 | Details
|
Scanned Manifest Files
package.json
- @apollo/[email protected]
- @apollo/[email protected]
Superseded by #1876.