Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump @apollo/client from 3.9.11 to 3.10.4 in /src/javascript/fitbit-c…
…hallenges/frontend (#113) Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.9.11 to 3.10.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/apollographql/apollo-client/releases"><code>@apollo/client</code>'s releases</a>.</em></p> <blockquote> <h2>v3.10.4</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11838">#11838</a> <a href="https://github.com/apollographql/apollo-client/commit/84753462af50d89c8693713990cccf432ff8267d"><code>8475346</code></a> Thanks <a href="https://github.com/alex-kinokon"><code>@alex-kinokon</code></a>! - Don’t prompt for DevTools installation for browser extension page</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11839">#11839</a> <a href="https://github.com/apollographql/apollo-client/commit/6481fe1196cedee987781dcb45ebdc0cafb3998c"><code>6481fe1</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix a regression in <a href="https://github.com/apollographql/apollo-client/releases/tag/v3.9.5">3.9.5</a> where a merge function that returned an incomplete result would not allow the client to refetch in order to fulfill the query.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11844">#11844</a> <a href="https://github.com/apollographql/apollo-client/commit/86984f24bd9076a6034acd59bbcb28a2ea1add93"><code>86984f2</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Honor the <code>@nonreactive</code> directive when using <code>cache.watchFragment</code> or the <code>useFragment</code> hook to avoid rerendering when using these directives.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11824">#11824</a> <a href="https://github.com/apollographql/apollo-client/commit/47ad806c7b0c55f1e05dbf276ca87a354ac389e5"><code>47ad806</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Create branded <code>QueryRef</code> type without exposed properties.</p> <p>This change deprecates <code>QueryReference</code> in favor of a <code>QueryRef</code> type that doesn't expose any properties. This change also updates <code>preloadQuery</code> to return a new <code>PreloadedQueryRef</code> type, which exposes the <code>toPromise</code> function as it does today. This means that query refs produced by <code>useBackgroundQuery</code> and <code>useLoadableQuery</code> now return <code>QueryRef</code> types that do not have access to a <code>toPromise</code> function, which was never meant to be used in combination with these hooks.</p> <p>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 <code>toPromise</code> function that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime, <code>toPromise</code> 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 <code>PreloadedQueryRef</code> use case.</p> <p>Migration is as simple as replacing all references to <code>QueryReference</code> with <code>QueryRef</code>, so it should be possible to do this with a search & replace in most code bases:</p> <pre lang="diff"><code>-import { QueryReference } from '@apollo/client' +import { QueryRef } from '@apollo/client' <ul> <li>function Component({ queryRef }: { queryRef: QueryReference<TData> }) {</li> </ul> <ul> <li>function Component({ queryRef }: { queryRef: QueryRef<TData> }) { // ... } </code></pre></li> </ul> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11845">#11845</a> <a href="https://github.com/apollographql/apollo-client/commit/4c5c820b6172f6a2455bcdd974109513e0e2a39e"><code>4c5c820</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Remove <code>@nonreactive</code> directives from queries passed to <code>MockLink</code> to ensure they are properly matched.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11837">#11837</a> <a href="https://github.com/apollographql/apollo-client/commit/dff15b1b03ebac9cae508c69bf607a29d0f6eccb"><code>dff15b1</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix an issue where a polled query created in React strict mode may not stop polling after the component unmounts while using the <code>cache-and-network</code> fetch policy.</p> </li> </ul> <h2>v3.10.3</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11811">#11811</a> <a href="https://github.com/apollographql/apollo-client/commit/d67d7f9a2943273cacaefb26a54184e81f12b022"><code>d67d7f9</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Adjust some types for React 19 compat</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11834">#11834</a> <a href="https://github.com/apollographql/apollo-client/commit/7d8aad4a00b89e0208ee1563293c24025e6604ce"><code>7d8aad4</code></a> Thanks <a href="https://github.com/psamim"><code>@psamim</code></a>! - Fix error "Cannot convert object to primitive value"</p> </li> </ul> <h2>v3.10.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11821">#11821</a> <a href="https://github.com/apollographql/apollo-client/commit/2675d3c97e6c47c6e298382004c7c9c2d3ffed0c"><code>2675d3c</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix a regression where rerendering a component with <code>useBackgroundQuery</code> would recreate the <code>queryRef</code> instance when used with React's strict mode.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11821">#11821</a> <a href="https://github.com/apollographql/apollo-client/commit/2675d3c97e6c47c6e298382004c7c9c2d3ffed0c"><code>2675d3c</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Revert the change introduced in <a href="https://github.com/apollographql/apollo-client/releases/tag/v3.9.10">3.9.10</a> via <a href="https://redirect.github.com/apollographql/apollo-client/issues/11738">#11738</a> that disposed of queryRefs synchronously. This change caused too many issues with strict mode.</p> </li> </ul> <h2>v3.10.1</h2> <h3>Patch Changes</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md"><code>@apollo/client</code>'s changelog</a>.</em></p> <blockquote> <h2>3.10.4</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11838">#11838</a> <a href="https://github.com/apollographql/apollo-client/commit/84753462af50d89c8693713990cccf432ff8267d"><code>8475346</code></a> Thanks <a href="https://github.com/alex-kinokon"><code>@alex-kinokon</code></a>! - Don’t prompt for DevTools installation for browser extension page</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11839">#11839</a> <a href="https://github.com/apollographql/apollo-client/commit/6481fe1196cedee987781dcb45ebdc0cafb3998c"><code>6481fe1</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix a regression in <a href="https://github.com/apollographql/apollo-client/releases/tag/v3.9.5">3.9.5</a> where a merge function that returned an incomplete result would not allow the client to refetch in order to fulfill the query.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11844">#11844</a> <a href="https://github.com/apollographql/apollo-client/commit/86984f24bd9076a6034acd59bbcb28a2ea1add93"><code>86984f2</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Honor the <code>@nonreactive</code> directive when using <code>cache.watchFragment</code> or the <code>useFragment</code> hook to avoid rerendering when using these directives.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11824">#11824</a> <a href="https://github.com/apollographql/apollo-client/commit/47ad806c7b0c55f1e05dbf276ca87a354ac389e5"><code>47ad806</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Create branded <code>QueryRef</code> type without exposed properties.</p> <p>This change deprecates <code>QueryReference</code> in favor of a <code>QueryRef</code> type that doesn't expose any properties. This change also updates <code>preloadQuery</code> to return a new <code>PreloadedQueryRef</code> type, which exposes the <code>toPromise</code> function as it does today. This means that query refs produced by <code>useBackgroundQuery</code> and <code>useLoadableQuery</code> now return <code>QueryRef</code> types that do not have access to a <code>toPromise</code> function, which was never meant to be used in combination with these hooks.</p> <p>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 <code>toPromise</code> function that would otherwise have broken at runtime. Note that this is a TypeScript-only change. At runtime, <code>toPromise</code> 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 <code>PreloadedQueryRef</code> use case.</p> <p>Migration is as simple as replacing all references to <code>QueryReference</code> with <code>QueryRef</code>, so it should be possible to do this with a search & replace in most code bases:</p> <pre lang="diff"><code>-import { QueryReference } from '@apollo/client' +import { QueryRef } from '@apollo/client' <ul> <li>function Component({ queryRef }: { queryRef: QueryReference<TData> }) {</li> </ul> <ul> <li>function Component({ queryRef }: { queryRef: QueryRef<TData> }) { // ... } </code></pre></li> </ul> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11845">#11845</a> <a href="https://github.com/apollographql/apollo-client/commit/4c5c820b6172f6a2455bcdd974109513e0e2a39e"><code>4c5c820</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Remove <code>@nonreactive</code> directives from queries passed to <code>MockLink</code> to ensure they are properly matched.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11837">#11837</a> <a href="https://github.com/apollographql/apollo-client/commit/dff15b1b03ebac9cae508c69bf607a29d0f6eccb"><code>dff15b1</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix an issue where a polled query created in React strict mode may not stop polling after the component unmounts while using the <code>cache-and-network</code> fetch policy.</p> </li> </ul> <h2>3.10.3</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11811">#11811</a> <a href="https://github.com/apollographql/apollo-client/commit/d67d7f9a2943273cacaefb26a54184e81f12b022"><code>d67d7f9</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Adjust some types for React 19 compat</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11834">#11834</a> <a href="https://github.com/apollographql/apollo-client/commit/7d8aad4a00b89e0208ee1563293c24025e6604ce"><code>7d8aad4</code></a> Thanks <a href="https://github.com/psamim"><code>@psamim</code></a>! - Fix error "Cannot convert object to primitive value"</p> </li> </ul> <h2>3.10.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11821">#11821</a> <a href="https://github.com/apollographql/apollo-client/commit/2675d3c97e6c47c6e298382004c7c9c2d3ffed0c"><code>2675d3c</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix a regression where rerendering a component with <code>useBackgroundQuery</code> would recreate the <code>queryRef</code> instance when used with React's strict mode.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11821">#11821</a> <a href="https://github.com/apollographql/apollo-client/commit/2675d3c97e6c47c6e298382004c7c9c2d3ffed0c"><code>2675d3c</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Revert the change introduced in <a href="https://github.com/apollographql/apollo-client/releases/tag/v3.9.10">3.9.10</a> via <a href="https://redirect.github.com/apollographql/apollo-client/issues/11738">#11738</a> that disposed of queryRefs synchronously. This change caused too many issues with strict mode.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/apollographql/apollo-client/commit/d773000b49b9ccfeee17a5072736bd4d162d9771"><code>d773000</code></a> Version Packages (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11843">#11843</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/6481fe1196cedee987781dcb45ebdc0cafb3998c"><code>6481fe1</code></a> Fix merge function that returns incomplete result that did not refetch from n...</li> <li><a href="https://github.com/apollographql/apollo-client/commit/4c5c820b6172f6a2455bcdd974109513e0e2a39e"><code>4c5c820</code></a> Remove <code>@nonreactive</code> directives from queries passed to <code>MockLink</code> (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11845">#11845</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/86984f24bd9076a6034acd59bbcb28a2ea1add93"><code>86984f2</code></a> Honor <code>@nonreactive</code> with <code>useFragment</code> and <code>cache.watchFragment</code> (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11844">#11844</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/84753462af50d89c8693713990cccf432ff8267d"><code>8475346</code></a> Don’t prompt for DevTools installation for browser extension page (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11838">#11838</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/dff15b1b03ebac9cae508c69bf607a29d0f6eccb"><code>dff15b1</code></a> Fix issue where query may not stop polling after unmount when in Strict mode ...</li> <li><a href="https://github.com/apollographql/apollo-client/commit/47ad806c7b0c55f1e05dbf276ca87a354ac389e5"><code>47ad806</code></a> create branded <code>QueryRef</code> type without exposed properties (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11824">#11824</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/857f100cc9e811bb9c21f55265ac25dd921be38d"><code>857f100</code></a> [docs] Update explainer around reducing-bundle-size (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11791">#11791</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/3861b7c9abc15ac4f76074578b48298cee9b8eeb"><code>3861b7c</code></a> chore(docs): fix url for reset function (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11836">#11836</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/50da8670d77a37901f059593ac5649b8f99f7280"><code>50da867</code></a> Version Packages (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11833">#11833</a>)</li> <li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.9.11...v3.10.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@apollo/client&package-manager=npm_and_yarn&previous-version=3.9.11&new-version=3.10.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information