Build(deps): bump @apollo/client from 3.6.10 to 3.7.0 #651

Merged
argoyle merged 1 commits from dependabot-npm_and_yarn-apollo-client-3.7.0 into master 2022-10-01 07:15:47 +00:00
argoyle commented 2022-10-01 04:37:42 +00:00 (Migrated from gitlab.com)

Bumps @apollo/client from 3.6.10 to 3.7.0.

Release notes

Sourced from @​apollo/client's releases.

v3.7.0

New Features (from CHANGELOG.md)

  • Implement preview support for the @defer directive. @​alessbell and @​benjamn in #10018

  • Implement useFragment_experimental hook, which represents a lightweight live binding into the ApolloCache, and never triggers network requests of its own. @​benjamn in #8782

  • Allow registering named fragments with InMemoryCache to support using ...NamedFragment in queries without redeclaring NamedFragment repeatedly in every query that uses it. @​benjamn in #9764

  • Support onError callback for useSubscription hook. @​jeroenvisser101 in #9495

Improvements (from CHANGELOG.md)

  • Delay calling onCompleted and onError callbacks passed to useQuery using Promise.resolve().then(() => ...) to fix issue #9794. @​dylanwulf in #9823

  • Replace concast.cleanup method with simpler concast.beforeNext API, which promises to call the given callback function just before the next result/error is delivered. In addition, concast.removeObserver no longer takes a quietly?: boolean parameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called. @​benjamn in #9718

  • Allow preserving header name capitalization when creating an HttpLink with createHttpLink({ uri, preserveHeaderCase: true }). Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs. @​MrDoomBringer in #9891

  • Make queries with a pollInterval respect the no-cache fetch policy, instead of writing polled results into the cache. @​MrDoomBringer in #10020

  • Deprecate the onSubscriptionData callback in favor of a new onData callback for the useSubscription hook. Deprecate the onSubscriptionComplete callback in favor of a new onComplete callback for the useSubscription hook. @​jerelmiller in #10134

Potentially disruptive (from CHANGELOG.md)

  • The optional subscribeAndCount testing utility exported from @apollo/client/testing/core now takes a single generic TResult type parameter, instead of TData. This type will typically be inferred from the observable argument type, but if you have any explicit calls to subscribeAndCount<TData>(...) in your own codebase, you may need to adjust those calls accordingly. @​benjamn in #9718

What's Changed (auto-generated by GitHub)

... (truncated)

Changelog

Sourced from @​apollo/client's changelog.

Apollo Client 3.7.0 (2022-09-30)

New Features

  • Implement preview support for the @defer directive. @​alessbell and @​benjamn in #10018

  • Implement useFragment_experimental hook, which represents a lightweight live binding into the ApolloCache, and never triggers network requests of its own. @​benjamn in #8782

  • Allow registering named fragments with InMemoryCache to support using ...NamedFragment in queries without redeclaring NamedFragment repeatedly in every query that uses it. @​benjamn in #9764

  • Support onError callback for useSubscription hook. @​jeroenvisser101 in #9495

Improvements

  • Delay calling onCompleted and onError callbacks passed to useQuery using Promise.resolve().then(() => ...) to fix issue #9794. @​dylanwulf in #9823

  • Replace concast.cleanup method with simpler concast.beforeNext API, which promises to call the given callback function just before the next result/error is delivered. In addition, concast.removeObserver no longer takes a quietly?: boolean parameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called. @​benjamn in #9718

  • Allow preserving header name capitalization when creating an HttpLink with createHttpLink({ uri, preserveHeaderCase: true }). Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs. @​MrDoomBringer in #9891

  • Make queries with a pollInterval respect the no-cache fetch policy, instead of writing polled results into the cache. @​MrDoomBringer in #10020

  • Deprecate the onSubscriptionData callback in favor of a new onData callback for the useSubscription hook. Deprecate the onSubscriptionComplete callback in favor of a new onComplete callback for the useSubscription hook. @​jerelmiller in #10134

Potentially disruptive

  • The optional subscribeAndCount testing utility exported from @apollo/client/testing/core now takes a single generic TResult type parameter, instead of TData. This type will typically be inferred from the observable argument type, but if you have any explicit calls to subscribeAndCount<TData>(...) in your own codebase, you may need to adjust those calls accordingly. @​benjamn in #9718
Commits
  • 9134aaf Merge pull request #9633 from apollographql/release-3.7
  • 66ad413 Update @​apollo/client package-lock version
  • 167fd35 Bump @​apollo/client npm version to 3.7.0
  • 2fc7642 CHANGELOG updates
  • 9d35906 Merge branch 'main' into release-3.7
  • 99a2c4c Merge branch 'main' into release-3.7
  • 17cad71 Add changes from #10134 to CHANGELOG.md (#10148)
  • fde2ab2 Update current version (3.6.10) in package-lock.json.
  • 184ebc0 Update handler names for useSubscription hook (#10134)
  • 14423c2 Bump bundlesize limit to 31.68kB (now 31.67kB).
  • Additional commits viewable in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.6.10 to 3.7.0. <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.7.0</h2> <h2>New Features (from <a href="https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md"><code>CHANGELOG.md</code></a>)</h2> <ul> <li> <p>Implement preview support for the <a href="https://github.com/graphql/graphql-spec/pull/742"><code>@defer</code> directive</a>. <a href="https://github.com/alessbell"><code>@​alessbell</code></a> and <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10018">#10018</a></p> </li> <li> <p>Implement <code>useFragment_experimental</code> hook, which represents a lightweight live binding into the <code>ApolloCache</code>, and never triggers network requests of its own. <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/8782">#8782</a></p> </li> <li> <p>Allow registering named fragments with <code>InMemoryCache</code> to support using <code>...NamedFragment</code> in queries without redeclaring <code>NamedFragment</code> repeatedly in every query that uses it. <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9764">#9764</a></p> </li> <li> <p>Support <code>onError</code> callback for <code>useSubscription</code> hook. <a href="https://github.com/jeroenvisser101"><code>@​jeroenvisser101</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9495">#9495</a></p> </li> </ul> <h2>Improvements (from <a href="https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md"><code>CHANGELOG.md</code></a>)</h2> <ul> <li> <p>Delay calling <code>onCompleted</code> and <code>onError</code> callbacks passed to <code>useQuery</code> using <code>Promise.resolve().then(() =&gt; ...)</code> to fix issue <a href="https://github.com/apollographql/apollo-client/pull/9794">#9794</a>. <a href="https://github.com/dylanwulf"><code>@​dylanwulf</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9823">#9823</a></p> </li> <li> <p>Replace <code>concast.cleanup</code> method with simpler <code>concast.beforeNext</code> API, which promises to call the given callback function just before the next result/error is delivered. In addition, <code>concast.removeObserver</code> no longer takes a <code>quietly?: boolean</code> parameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called. <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9718">#9718</a></p> </li> <li> <p>Allow preserving header name capitalization when creating an <code>HttpLink</code> with <code>createHttpLink({ uri, preserveHeaderCase: true })</code>. Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs. <a href="https://github.com/MrDoomBringer"><code>@​MrDoomBringer</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9891">#9891</a></p> </li> <li> <p>Make queries with a <code>pollInterval</code> respect the <code>no-cache</code> fetch policy, instead of writing polled results into the cache. <a href="https://github.com/MrDoomBringer"><code>@​MrDoomBringer</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10020">#10020</a></p> </li> <li> <p>Deprecate the <code>onSubscriptionData</code> callback in favor of a new <code>onData</code> callback for the <code>useSubscription</code> hook. Deprecate the <code>onSubscriptionComplete</code> callback in favor of a new <code>onComplete</code> callback for the <code>useSubscription</code> hook. <a href="https://github.com/jerelmiller"><code>@​jerelmiller</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10134">#10134</a></p> </li> </ul> <h2>Potentially disruptive (from <a href="https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md"><code>CHANGELOG.md</code></a>)</h2> <ul> <li>The optional <code>subscribeAndCount</code> testing utility exported from <code>@apollo/client/testing/core</code> now takes a single generic <code>TResult</code> type parameter, instead of <code>TData</code>. This type will typically be inferred from the <code>observable</code> argument type, but if you have any explicit calls to <code>subscribeAndCount&lt;TData&gt;(...)</code> in your own codebase, you may need to adjust those calls accordingly. <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9718">#9718</a></li> </ul> <h2>What's Changed (auto-generated by GitHub)</h2> <ul> <li>Replace <code>concast.cleanup</code> method with simpler <code>concast.beforeNext</code> API by <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9718">apollographql/apollo-client#9718</a></li> <li>Implement minimal <code>useFragment</code> hook by <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/8782">apollographql/apollo-client#8782</a></li> <li>Fix <code>BatchHttpLink</code> regression that silently discarded some pending queries by <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9793">apollographql/apollo-client#9793</a></li> <li>Delay execution of callback functions to fix React errors by <a href="https://github.com/dylanwulf"><code>@​dylanwulf</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9801">apollographql/apollo-client#9801</a></li> <li>Return most recent result diff from useFragment, update test by <a href="https://github.com/alessbell"><code>@​alessbell</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10030">apollographql/apollo-client#10030</a></li> <li>Supports &quot;no-cache&quot; fetchPolicy with pollInterval by <a href="https://github.com/MrDoomBringer"><code>@​MrDoomBringer</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10020">apollographql/apollo-client#10020</a></li> <li>(Release 3.7) Rename useFragment -&gt; useFragment_experimental by <a href="https://github.com/MrDoomBringer"><code>@​MrDoomBringer</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10075">apollographql/apollo-client#10075</a></li> <li>Adds <a href="https://github.com/defer"><code>@​defer</code></a> support by <a href="https://github.com/alessbell"><code>@​alessbell</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10018">apollographql/apollo-client#10018</a></li> <li>Improvements to the <code>hasDirectives</code> utility function by <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10082">apollographql/apollo-client#10082</a></li> <li>chore: omit previousResult, lastCompleteResult from options/result by <a href="https://github.com/alessbell"><code>@​alessbell</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10100">apollographql/apollo-client#10100</a></li> <li>Support header name capitalization by <a href="https://github.com/MrDoomBringer"><code>@​MrDoomBringer</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9891">apollographql/apollo-client#9891</a></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>Apollo Client 3.7.0 (2022-09-30)</h2> <h3>New Features</h3> <ul> <li> <p>Implement preview support for the <a href="https://github.com/graphql/graphql-spec/pull/742"><code>@defer</code> directive</a>. <!-- raw HTML omitted --> <a href="https://github.com/alessbell"><code>@​alessbell</code></a> and <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10018">#10018</a></p> </li> <li> <p>Implement <code>useFragment_experimental</code> hook, which represents a lightweight live binding into the <code>ApolloCache</code>, and never triggers network requests of its own. <!-- raw HTML omitted --> <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/8782">#8782</a></p> </li> <li> <p>Allow registering named fragments with <code>InMemoryCache</code> to support using <code>...NamedFragment</code> in queries without redeclaring <code>NamedFragment</code> repeatedly in every query that uses it. <!-- raw HTML omitted --> <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9764">#9764</a></p> </li> <li> <p>Support <code>onError</code> callback for <code>useSubscription</code> hook. <!-- raw HTML omitted --> <a href="https://github.com/jeroenvisser101"><code>@​jeroenvisser101</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9495">#9495</a></p> </li> </ul> <h3>Improvements</h3> <ul> <li> <p>Delay calling <code>onCompleted</code> and <code>onError</code> callbacks passed to <code>useQuery</code> using <code>Promise.resolve().then(() =&gt; ...)</code> to fix issue <a href="https://github.com/apollographql/apollo-client/pull/9794">#9794</a>. <!-- raw HTML omitted --> <a href="https://github.com/dylanwulf"><code>@​dylanwulf</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9823">#9823</a></p> </li> <li> <p>Replace <code>concast.cleanup</code> method with simpler <code>concast.beforeNext</code> API, which promises to call the given callback function just before the next result/error is delivered. In addition, <code>concast.removeObserver</code> no longer takes a <code>quietly?: boolean</code> parameter, since that parameter was partly responsible for cleanup callbacks sometimes not getting called. <!-- raw HTML omitted --> <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9718">#9718</a></p> </li> <li> <p>Allow preserving header name capitalization when creating an <code>HttpLink</code> with <code>createHttpLink({ uri, preserveHeaderCase: true })</code>. Otherwise, header names are converted to lowercase to prevent case-sensitivity bugs. <!-- raw HTML omitted --> <a href="https://github.com/MrDoomBringer"><code>@​MrDoomBringer</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9891">#9891</a></p> </li> <li> <p>Make queries with a <code>pollInterval</code> respect the <code>no-cache</code> fetch policy, instead of writing polled results into the cache. <!-- raw HTML omitted --> <a href="https://github.com/MrDoomBringer"><code>@​MrDoomBringer</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10020">#10020</a></p> </li> <li> <p>Deprecate the <code>onSubscriptionData</code> callback in favor of a new <code>onData</code> callback for the <code>useSubscription</code> hook. Deprecate the <code>onSubscriptionComplete</code> callback in favor of a new <code>onComplete</code> callback for the <code>useSubscription</code> hook.<!-- raw HTML omitted --> <a href="https://github.com/jerelmiller"><code>@​jerelmiller</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/10134">#10134</a></p> </li> </ul> <h3>Potentially disruptive</h3> <ul> <li>The optional <code>subscribeAndCount</code> testing utility exported from <code>@apollo/client/testing/core</code> now takes a single generic <code>TResult</code> type parameter, instead of <code>TData</code>. This type will typically be inferred from the <code>observable</code> argument type, but if you have any explicit calls to <code>subscribeAndCount&lt;TData&gt;(...)</code> in your own codebase, you may need to adjust those calls accordingly. <!-- raw HTML omitted --> <a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9718">#9718</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/apollographql/apollo-client/commit/9134aaf3b6fc398b2d82439b5b63848b533ae4c9"><code>9134aaf</code></a> Merge pull request <a href="https://github.com/apollographql/apollo-client/issues/9633">#9633</a> from apollographql/release-3.7</li> <li><a href="https://github.com/apollographql/apollo-client/commit/66ad413b9370594141dcf75547a7e819a083a57d"><code>66ad413</code></a> Update <code>@​apollo/client</code> package-lock version</li> <li><a href="https://github.com/apollographql/apollo-client/commit/167fd35e212d56705eabdfc5544a7ef090f6e2ca"><code>167fd35</code></a> Bump <code>@​apollo/client</code> npm version to 3.7.0</li> <li><a href="https://github.com/apollographql/apollo-client/commit/2fc764256918afe9be877de68129ccc31a42cf5c"><code>2fc7642</code></a> CHANGELOG updates</li> <li><a href="https://github.com/apollographql/apollo-client/commit/9d3590672cdc1202aa0a16e2804363d71a20e4aa"><code>9d35906</code></a> Merge branch 'main' into release-3.7</li> <li><a href="https://github.com/apollographql/apollo-client/commit/99a2c4cd8204f6c4d3d3c57ddba1a9a133a9d77f"><code>99a2c4c</code></a> Merge branch 'main' into release-3.7</li> <li><a href="https://github.com/apollographql/apollo-client/commit/17cad7168854ca4695d0d4b28f7fdbdb775c23c9"><code>17cad71</code></a> Add changes from <a href="https://github.com/apollographql/apollo-client/issues/10134">#10134</a> to CHANGELOG.md (<a href="https://github.com/apollographql/apollo-client/issues/10148">#10148</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/fde2ab2fb33b45f16a8b2b29fa14fb14b5e2d20b"><code>fde2ab2</code></a> Update current version (3.6.10) in package-lock.json.</li> <li><a href="https://github.com/apollographql/apollo-client/commit/184ebc09966d657d2219f5212dc306fe246dfdaa"><code>184ebc0</code></a> Update handler names for useSubscription hook (<a href="https://github.com/apollographql/apollo-client/issues/10134">#10134</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/14423c2a5a2c32426f235ccfd283f558e47a3b7b"><code>14423c2</code></a> Bump bundlesize limit to 31.68kB (now 31.67kB).</li> <li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.6.10...v3.7.0">compare view</a></li> </ul> </details> <br /> --- <details> <summary>Dependabot commands</summary> <br /> You can trigger Dependabot actions by commenting on this MR - `$dependabot rebase` will rebase this MR - `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts </details>
argoyle (Migrated from gitlab.com) merged commit into master 2022-10-01 07:15:48 +00:00
Sign in to join this conversation.