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.10.8 to 3.11.1 (#323)
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.10.8 to 3.11.1. <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.11.1</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11969">#11969</a> <a href="https://github.com/apollographql/apollo-client/commit/061cab6627abd4ec81f83c40c1d281c418627c93"><code>061cab6</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Remove check for <code>window.__APOLLO_CLIENT__</code> when determining whether to connect to Apollo Client Devtools when <code>connectToDevtools</code> or <code>devtools.enabled</code> is not specified. This now simply checks to see if the application is in development mode.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11971">#11971</a> <a href="https://github.com/apollographql/apollo-client/commit/ecf77f6f5b5ccf64cfba51e838e96549fb6c92fe"><code>ecf77f6</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Prevent the <code>setTimeout</code> for suggesting devtools from running in non-browser environments.</p> </li> </ul> <h2>v3.11.0</h2> <h3>Potentially Breaking Fixes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11789">#11789</a> <a href="https://github.com/apollographql/apollo-client/commit/579330147d6bd6f7167a35413a33746103e375cb"><code>5793301</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Changes usages of the <code>GraphQLError</code> type to <code>GraphQLFormattedError</code>.</p> <p>This was a type bug - these errors were never <code>GraphQLError</code> instances to begin with, and the <code>GraphQLError</code> class has additional properties that can never be correctly rehydrated from a GraphQL result. The correct type to use here is <code>GraphQLFormattedError</code>.</p> <p>Similarly, please ensure to use the type <code>FormattedExecutionResult</code> instead of <code>ExecutionResult</code> - the non-"Formatted" versions of these types are for use on the server only, but don't get transported over the network.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11626">#11626</a> <a href="https://github.com/apollographql/apollo-client/commit/228429a1d36eae691473b24fb641ec3cd84c8a3d"><code>228429a</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Call <code>nextFetchPolicy</code> with "variables-changed" even if there is a <code>fetchPolicy</code> specified.</p> <p>Previously this would only be called when the current <code>fetchPolicy</code> was equal to the <code>fetchPolicy</code> option or the option was not specified. If you use <code>nextFetchPolicy</code> as a function, expect to see this function called more often.</p> <p>Due to this bug, this also meant that the <code>fetchPolicy</code> might be reset to the initial <code>fetchPolicy</code>, even when you specified a <code>nextFetchPolicy</code> function. If you previously relied on this behavior, you will need to update your <code>nextFetchPolicy</code> callback function to implement this resetting behavior.</p> <p>As an example, if your code looked like the following:</p> <pre lang="js"><code>useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { // your logic here } ); </code></pre> <p>Update your function to the following to reimplement the resetting behavior:</p> <pre lang="js"><code>useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { if (info.reason === 'variables-changed') { return info.initialFetchPolicy; } // your logic here } ); </code></pre> </li> </ul> <!-- 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.11.1</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11969">#11969</a> <a href="https://github.com/apollographql/apollo-client/commit/061cab6627abd4ec81f83c40c1d281c418627c93"><code>061cab6</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Remove check for <code>window.__APOLLO_CLIENT__</code> when determining whether to connect to Apollo Client Devtools when <code>connectToDevtools</code> or <code>devtools.enabled</code> is not specified. This now simply checks to see if the application is in development mode.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11971">#11971</a> <a href="https://github.com/apollographql/apollo-client/commit/ecf77f6f5b5ccf64cfba51e838e96549fb6c92fe"><code>ecf77f6</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Prevent the <code>setTimeout</code> for suggesting devtools from running in non-browser environments.</p> </li> </ul> <h2>3.11.0</h2> <h3>Potentially Breaking Fixes</h3> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11789">#11789</a> <a href="https://github.com/apollographql/apollo-client/commit/579330147d6bd6f7167a35413a33746103e375cb"><code>5793301</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Changes usages of the <code>GraphQLError</code> type to <code>GraphQLFormattedError</code>.</p> <p>This was a type bug - these errors were never <code>GraphQLError</code> instances to begin with, and the <code>GraphQLError</code> class has additional properties that can never be correctly rehydrated from a GraphQL result. The correct type to use here is <code>GraphQLFormattedError</code>.</p> <p>Similarly, please ensure to use the type <code>FormattedExecutionResult</code> instead of <code>ExecutionResult</code> - the non-"Formatted" versions of these types are for use on the server only, but don't get transported over the network.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/11626">#11626</a> <a href="https://github.com/apollographql/apollo-client/commit/228429a1d36eae691473b24fb641ec3cd84c8a3d"><code>228429a</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Call <code>nextFetchPolicy</code> with "variables-changed" even if there is a <code>fetchPolicy</code> specified.</p> <p>Previously this would only be called when the current <code>fetchPolicy</code> was equal to the <code>fetchPolicy</code> option or the option was not specified. If you use <code>nextFetchPolicy</code> as a function, expect to see this function called more often.</p> <p>Due to this bug, this also meant that the <code>fetchPolicy</code> might be reset to the initial <code>fetchPolicy</code>, even when you specified a <code>nextFetchPolicy</code> function. If you previously relied on this behavior, you will need to update your <code>nextFetchPolicy</code> callback function to implement this resetting behavior.</p> <p>As an example, if your code looked like the following:</p> <pre lang="js"><code>useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { // your logic here } ); </code></pre> <p>Update your function to the following to reimplement the resetting behavior:</p> <pre lang="js"><code>useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { if (info.reason === 'variables-changed') { return info.initialFetchPolicy; } // your logic here } ); </code></pre> </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/abcbe8b35579b522221113a518c7cbc5f5a226d6"><code>abcbe8b</code></a> Version Packages (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11970">#11970</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/ecf77f6f5b5ccf64cfba51e838e96549fb6c92fe"><code>ecf77f6</code></a> Don't attempt to connect to devtools in non-browser environments (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11971">#11971</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/061cab6627abd4ec81f83c40c1d281c418627c93"><code>061cab6</code></a> Fix incorrect default devtools config (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11969">#11969</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/fa3487d6bf0cf6608553bb543122638e0b41239a"><code>fa3487d</code></a> Version Packages (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11967">#11967</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/7b8028e974b79a3314524b1b17ce122230446bf6"><code>7b8028e</code></a> Merge pull request <a href="https://redirect.github.com/apollographql/apollo-client/issues/11922">#11922</a> from apollographql/release-3.11</li> <li><a href="https://github.com/apollographql/apollo-client/commit/f7aed4ff873ac70fa9192f1cfbee013d1800a2bd"><code>f7aed4f</code></a> Exit prerelease mode</li> <li><a href="https://github.com/apollographql/apollo-client/commit/811c558e4c169141fb9938c3522598053fc908f0"><code>811c558</code></a> chore(deps): update dependency mocha to v10.7.0 (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11966">#11966</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/8379be119c237fa36016ba14e676412e54274c26"><code>8379be1</code></a> chore(deps): update cimg/node docker tag to v22.5.1 (<a href="https://redirect.github.com/apollographql/apollo-client/issues/11964">#11964</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/c982e5f3e206c3addd8e1843df677fb46d3e843a"><code>c982e5f</code></a> chore(deps): update all devdependencies</li> <li><a href="https://github.com/apollographql/apollo-client/commit/16438fe3e3687560c190512e1cd9e063713cb051"><code>16438fe</code></a> chore(deps): update all dependencies - patch updates</li> <li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.10.8...v3.11.1">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.10.8&new-version=3.11.1)](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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information