Restore pre-v3.6 variables replacement behavior of ObservableQuery#reobserve method, fixing a regression that prevented removal of variables.
@benjamn in #9741
Preserve previousData even when different query or client provided to useQuery, instead of resetting previousData to undefined in those cases, matching behavior prior to v3.6.0.
@benjamn in #9734
Fix bug where onCompleted() and onError() are stale for useMutation().
@charle692 in #9740
Limit scope of DeepMerger object reuse, and avoid using Object.isFrozen, which can introduce differences between development and production if objects that were frozen using Object.freeze in development are left unfrozen in production.
@benjamn in #9742
Properly merge variables from original useLazyQuery(query, { variables }) with variables passed to execution function.
@benjamn in #9758
Fix bug where onCompleted and onError are stale for useMutation. onCompleted and onError could not be changed while a mutation is executing. by @charle692 in apollographql/apollo-client#9740
Restore pre-v3.6 variables replacement behavior of ObservableQuery#reobserve method, fixing a regression that prevented removal of variables.
@benjamn in #9741
Preserve previousData even when different query or client provided to useQuery, instead of resetting previousData to undefined in those cases, matching behavior prior to v3.6.0.
@benjamn in #9734
Fix bug where onCompleted() and onError() are stale for useMutation().
@charle692 in #9740
Limit scope of DeepMerger object reuse, and avoid using Object.isFrozen, which can introduce differences between development and production if objects that were frozen using Object.freeze in development are left unfrozen in production.
@benjamn in #9742
Properly merge variables from original useLazyQuery(query, { variables }) with variables passed to execution function.
@benjamn in #9758
Commits
b86c363 Bump @apollo/client npm version to 3.6.5.
17cc8a0 Merge variables from original useLazyQuery(query, { variables }) with `va...
5fc6a39 Merge pull request #9742 from apollographql/issue-9735-DeepMerger-prod-only-m...
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.4 to 3.6.5.
<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.6.5</h2>
<h2>Bug Fixes (from <a href="https://github.com/apollographql/apollo-client/blob/main/CHANGELOG.md"><code>CHANGELOG.md</code></a>)</h2>
<ul>
<li>
<p>Restore pre-v3.6 <code>variables</code> replacement behavior of <code>ObservableQuery#reobserve</code> method, fixing a regression that prevented removal of variables.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9741">#9741</a></p>
</li>
<li>
<p>Preserve <code>previousData</code> even when different query or client provided to <code>useQuery</code>, instead of resetting <code>previousData</code> to undefined in those cases, matching behavior prior to v3.6.0.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9734">#9734</a></p>
</li>
<li>
<p>Fix bug where <code>onCompleted()</code> and <code>onError()</code> are stale for <code>useMutation()</code>.
<a href="https://github.com/charle692"><code>@charle692</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9740">#9740</a></p>
</li>
<li>
<p>Limit scope of <code>DeepMerger</code> object reuse, and avoid using <code>Object.isFrozen</code>, which can introduce differences between development and production if objects that were frozen using <code>Object.freeze</code> in development are left unfrozen in production.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9742">#9742</a></p>
</li>
<li>
<p>Properly merge <code>variables</code> from original <code>useLazyQuery(query, { variables })</code> with <code>variables</code> passed to execution function.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9758">#9758</a></p>
</li>
</ul>
<h2>What's Changed (auto-generated by GitHub)</h2>
<ul>
<li>Preserve <code>previousData</code> even when different client or query passed to <code>useQuery</code> by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9734">apollographql/apollo-client#9734</a></li>
<li>Restore pre-v3.6 <code>variables</code> replacement behavior of <code>ObservableQuery#reobserve</code> method by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9741">apollographql/apollo-client#9741</a></li>
<li>Clarify modifying response data in link docs by <a href="https://github.com/hatched-kade"><code>@hatched-kade</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9430">apollographql/apollo-client#9430</a></li>
<li>adds documentation on file uploads by <a href="https://github.com/jpvajda"><code>@jpvajda</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9744">apollographql/apollo-client#9744</a></li>
<li>Fix improper syntax with spread operator by <a href="https://github.com/mongodben"><code>@mongodben</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9441">apollographql/apollo-client#9441</a></li>
<li>Reduce confusion about the query component by <a href="https://github.com/jpvajda"><code>@jpvajda</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9747">apollographql/apollo-client#9747</a></li>
<li>Fix bug where onCompleted and onError are stale for useMutation. onCompleted and onError could not be changed while a mutation is executing. by <a href="https://github.com/charle692"><code>@charle692</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9740">apollographql/apollo-client#9740</a></li>
<li>Restrict <code>DeepMerger</code> mutable object reuse to fix subtle production-only bug by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9742">apollographql/apollo-client#9742</a></li>
<li>Merge <code>variables</code> from original <code>useLazyQuery(query, { variables })</code> with <code>variables</code> passed to execution function by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9758">apollographql/apollo-client#9758</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/hatched-kade"><code>@hatched-kade</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9430">apollographql/apollo-client#9430</a></li>
<li><a href="https://github.com/mongodben"><code>@mongodben</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9441">apollographql/apollo-client#9441</a></li>
<li><a href="https://github.com/charle692"><code>@charle692</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9740">apollographql/apollo-client#9740</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/apollographql/apollo-client/compare/v3.6.4...v3.6.5">https://github.com/apollographql/apollo-client/compare/v3.6.4...v3.6.5</a></p>
</blockquote>
</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.6.5 (2022-05-23)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>
<p>Restore pre-v3.6 <code>variables</code> replacement behavior of <code>ObservableQuery#reobserve</code> method, fixing a regression that prevented removal of variables. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9741">#9741</a></p>
</li>
<li>
<p>Preserve <code>previousData</code> even when different query or client provided to <code>useQuery</code>, instead of resetting <code>previousData</code> to undefined in those cases, matching behavior prior to v3.6.0. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9734">#9734</a></p>
</li>
<li>
<p>Fix bug where <code>onCompleted()</code> and <code>onError()</code> are stale for <code>useMutation()</code>. <!-- raw HTML omitted -->
<a href="https://github.com/charle692"><code>@charle692</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9740">#9740</a></p>
</li>
<li>
<p>Limit scope of <code>DeepMerger</code> object reuse, and avoid using <code>Object.isFrozen</code>, which can introduce differences between development and production if objects that were frozen using <code>Object.freeze</code> in development are left unfrozen in production. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9742">#9742</a></p>
</li>
<li>
<p>Properly merge <code>variables</code> from original <code>useLazyQuery(query, { variables })</code> with <code>variables</code> passed to execution function. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9758">#9758</a></p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apollographql/apollo-client/commit/b86c3635b8a9086a5659a44f5e68dda9b28d77ee"><code>b86c363</code></a> Bump <code>@apollo/client</code> npm version to 3.6.5.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/17cc8a0e76e78e6c54e8c02f532099f43519b776"><code>17cc8a0</code></a> Merge <code>variables</code> from original <code>useLazyQuery(query, { variables })</code> with `va...</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/5fc6a3950e6451261fc1fbdb1e221e8e8c2966e6"><code>5fc6a39</code></a> Merge pull request <a href="https://github.com/apollographql/apollo-client/issues/9742">#9742</a> from apollographql/issue-9735-DeepMerger-prod-only-m...</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/570b7f3a002f015f8be3e72355d2f29d7fe1d751"><code>570b7f3</code></a> Mention PR <a href="https://github.com/apollographql/apollo-client/issues/9742">#9742</a> in CHANGELOG.md.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/f8e2f3054c83764c34ca962e63f1e391b96e2e7f"><code>f8e2f30</code></a> Avoid using Object.isFrozen to prevent dev/prod differences.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/8557057f9c4cceb0ae4ab9d1a66a844ccd0c642c"><code>8557057</code></a> Stop using shared DeepMerger in ReadContext for executeSelectionSet.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/47c069b576b186c730267604b50beaf666480bc3"><code>47c069b</code></a> Update bundlesize and CHANGELOG</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/abd38083d25b9b9a3d520e194ebcbc9582cfdfd6"><code>abd3808</code></a> Fix bug where onCompleted and onError are stale for useMutation. onCompleted ...</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/103c8aab18b77d30b28f19eddd7334308da7927d"><code>103c8aa</code></a> chore(deps): update dependency ts-node to v10.8.0</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/6a0a88c6d9ce376208378732cdde7649f74160f7"><code>6a0a88c</code></a> chore(deps): update dependency rollup to v2.74.1</li>
<li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.6.4...v3.6.5">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 master2022-05-24 06:50:54 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps @apollo/client from 3.6.4 to 3.6.5.
Release notes
Sourced from
@apollo/client's releases.Changelog
Sourced from
@apollo/client's changelog.Commits
b86c363Bump@apollo/clientnpm version to 3.6.5.17cc8a0Mergevariablesfrom originaluseLazyQuery(query, { variables })with `va...5fc6a39Merge pull request #9742 from apollographql/issue-9735-DeepMerger-prod-only-m...570b7f3Mention PR #9742 in CHANGELOG.md.f8e2f30Avoid using Object.isFrozen to prevent dev/prod differences.8557057Stop using shared DeepMerger in ReadContext for executeSelectionSet.47c069bUpdate bundlesize and CHANGELOGabd3808Fix bug where onCompleted and onError are stale for useMutation. onCompleted ...103c8aachore(deps): update dependency ts-node to v10.8.06a0a88cchore(deps): update dependency rollup to v2.74.1Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflicts