Internalize useSyncExternalStore shim, for more control than use-sync-external-store provides, fixing some React Native issues.
@benjamn in #9675 and #9709
Provide @apollo/client/**/*.cjs.native.js versions of every @apollo/client/**/*.cjs bundle (including dependencies ts-invariant and zen-observable-ts) to help React Native's Metro bundler automatically resolve CommonJS entry point modules. These changes should render unnecessary the advice we gave in the v3.5.4 section below about metro.config.js.@benjamn in #9716
Handle falsy incoming data more gracefully in offetLimitPagination().merge function.
@shobhitsharma in #9705
Guarantee Concast cleanup without Observable cancelled prematurely rejection, potentially solving long-standing issues involving that error.
@benjamn in #9701
Ensure useSubscription subscriptions are properly restarted after unmounting/remounting by React 18 in <StrictMode>.
@kazekyo in #9707
Improvements
Internalize useSyncExternalStore shim, for more control than use-sync-external-store provides, fixing some React Native issues.
@benjamn in #9675 and #9709
Provide @apollo/client/**/*.cjs.native.js versions of every @apollo/client/**/*.cjs bundle (including dependencies ts-invariant and zen-observable-ts) to help React Native's Metro bundler automatically resolve CommonJS entry point modules. These changes should render unnecessary the advice we gave in the v3.5.4 section below about metro.config.js.@benjamn in #9716
Handle falsy incoming data more gracefully in offetLimitPagination().merge function.
@shobhitsharma in #9705
Apollo Client 3.6.3 (2022-05-05, only tagged next on npm)
Bug Fixes
Simplify useQuery(query, { defaultOptions }) default options processing in order to fix bug where skip: true queries failed to execute upon switching to skip: false.
@benjamn in #9665
Add tests of skipping/unskipping and useLazyQuery with defaultOptions, and fix a bug causing duplicate requests.
@benjamn in #9666
Update ts-invariant to version 0.10.2 to fix source map warnings.
@benjamn in #9672
Test that useQuery queries with skip: true do not stall server-side rendering.
@nathanmarks and @benjamn in #9677
Prevent useLazyQuery from making duplicate requests when its execution function is first called, and stop rejecting the Promise it returns when result.error is defined.
@benjamn in #9684
Fix issue with useQuery returning loading: true state during server-side rendering with skip: true.
@nathanmarks in #9679
Commits
a46240f Bump @apollo/client npm version to 3.6.4.
57e32e1 Fix attribution of PR #9707 in CHANGELOG.md.
c670e3a Handle falsy incoming data gracefully in offsetLimitPagination().merge (#...
4571e1a Merge pull request #9707 from kazekyo/fix_usesubscription_in_strict_mode
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.2 to 3.6.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.6.4</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>Guarantee <code>Concast</code> cleanup without <code>Observable cancelled prematurely</code> rejection, potentially solving long-standing issues involving that error.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9701">#9701</a></p>
</li>
<li>
<p>Ensure <code>useSubscription</code> subscriptions are properly restarted after unmounting/remounting by React 18 in <code><StrictMode></code>.
<a href="https://github.com/kazekyo"><code>@kazekyo</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9707">#9707</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>Internalize <code>useSyncExternalStore</code> shim, for more control than <code>use-sync-external-store</code> provides, fixing some React Native issues.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9675">#9675</a> and <a href="https://github.com/apollographql/apollo-client/pull/9709">#9709</a></p>
</li>
<li>
<p>Provide <code>@apollo/client/**/*.cjs.native.js</code> versions of every <code>@apollo/client/**/*.cjs</code> bundle (including dependencies <code>ts-invariant</code> and <code>zen-observable-ts</code>) to help React Native's Metro bundler automatically resolve CommonJS entry point modules. <strong>These changes should render unnecessary <a href="https://github.com/apollographql/apollo-client/blob/HEAD/#apollo-client-354-2021-11-19">the advice we gave in the v3.5.4 section below about <code>metro.config.js</code></a>.</strong>
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9716">#9716</a></p>
</li>
<li>
<p>Handle falsy <code>incoming</code> data more gracefully in <code>offetLimitPagination().merge</code> function.
<a href="https://github.com/shobhitsharma"><code>@shobhitsharma</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9705">#9705</a></p>
</li>
</ul>
<h2>What's Changed (auto-generated by GitHub)</h2>
<ul>
<li>Poll interval docs update by <a href="https://github.com/jpvajda"><code>@jpvajda</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9687">apollographql/apollo-client#9687</a></li>
<li>[docs] Fix markdown bug in rest link by <a href="https://github.com/ryanrhee"><code>@ryanrhee</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9698">apollographql/apollo-client#9698</a></li>
<li>Internalize <code>useSyncExternalStore</code> shim, for more control than <code>use-sync-external-store</code> provides by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9675">apollographql/apollo-client#9675</a></li>
<li>Guarantee <code>Concast</code> cleanup without <code>Observable cancelled prematurely</code> rejection by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9701">apollographql/apollo-client#9701</a></li>
<li>docs: fix code snippet by <a href="https://github.com/santiph"><code>@santiph</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9703">apollographql/apollo-client#9703</a></li>
<li>Update example headers with authentication by <a href="https://github.com/theill"><code>@theill</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9621">apollographql/apollo-client#9621</a></li>
<li>Fix a misplaced semicolon by <a href="https://github.com/mlocher"><code>@mlocher</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9498">apollographql/apollo-client#9498</a></li>
<li>Correct GraphQL variable name "text" to "type" by <a href="https://github.com/FumioNonaka-ksj"><code>@FumioNonaka-ksj</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9529">apollographql/apollo-client#9529</a></li>
<li>Add apollo-multi-endpoint-link to community links by <a href="https://github.com/jean9696"><code>@jean9696</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9301">apollographql/apollo-client#9301</a></li>
<li><code>readQuery</code> clarification by <a href="https://github.com/avinoamsn"><code>@avinoamsn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9195">apollographql/apollo-client#9195</a></li>
<li>Update authentication.mdx by <a href="https://github.com/volokolamskspb"><code>@volokolamskspb</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/8630">apollographql/apollo-client#8630</a></li>
<li>Add apollo-link-observable to community links by <a href="https://github.com/dragozin"><code>@dragozin</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/8234">apollographql/apollo-client#8234</a></li>
<li>apollo-codegen is deprecated, but the tooling documentation still suggests it by <a href="https://github.com/krainboltgreene"><code>@krainboltgreene</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/7517">apollographql/apollo-client#7517</a></li>
<li>chore: corrected body params by <a href="https://github.com/jpvajda"><code>@jpvajda</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9711">apollographql/apollo-client#9711</a></li>
<li><code>useSyncExternalStore</code> refinements by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9709">apollographql/apollo-client#9709</a></li>
<li>Help React Native import <code>@apollo/client/main.cjs</code> and other CommonJS bundles by <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9716">apollographql/apollo-client#9716</a></li>
<li>Revamping the "Why Apollo Client" article by <a href="https://github.com/rkoron007"><code>@rkoron007</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9719">apollographql/apollo-client#9719</a></li>
<li>Fix useSubscription bug in React v18 StrictMode (<a href="https://github.com/apollographql/apollo-client/issues/9664">#9664</a>) by <a href="https://github.com/kazekyo"><code>@kazekyo</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9707">apollographql/apollo-client#9707</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/ryanrhee"><code>@ryanrhee</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9698">apollographql/apollo-client#9698</a></li>
<li><a href="https://github.com/santiph"><code>@santiph</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9703">apollographql/apollo-client#9703</a></li>
<li><a href="https://github.com/theill"><code>@theill</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9621">apollographql/apollo-client#9621</a></li>
<li><a href="https://github.com/mlocher"><code>@mlocher</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9498">apollographql/apollo-client#9498</a></li>
<li><a href="https://github.com/FumioNonaka-ksj"><code>@FumioNonaka-ksj</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9529">apollographql/apollo-client#9529</a></li>
<li><a href="https://github.com/jean9696"><code>@jean9696</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9301">apollographql/apollo-client#9301</a></li>
<li><a href="https://github.com/avinoamsn"><code>@avinoamsn</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/9195">apollographql/apollo-client#9195</a></li>
<li><a href="https://github.com/volokolamskspb"><code>@volokolamskspb</code></a> made their first contribution in <a href="https://github.com/apollographql/apollo-client/pull/8630">apollographql/apollo-client#8630</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.6.4 (2022-05-16)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>
<p>Guarantee <code>Concast</code> cleanup without <code>Observable cancelled prematurely</code> rejection, potentially solving long-standing issues involving that error. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9701">#9701</a></p>
</li>
<li>
<p>Ensure <code>useSubscription</code> subscriptions are properly restarted after unmounting/remounting by React 18 in <code><StrictMode></code>. <!-- raw HTML omitted -->
<a href="https://github.com/kazekyo"><code>@kazekyo</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9707">#9707</a></p>
</li>
</ul>
<h3>Improvements</h3>
<ul>
<li>
<p>Internalize <code>useSyncExternalStore</code> shim, for more control than <code>use-sync-external-store</code> provides, fixing some React Native issues. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9675">#9675</a> and <a href="https://github.com/apollographql/apollo-client/pull/9709">#9709</a></p>
</li>
<li>
<p>Provide <code>@apollo/client/**/*.cjs.native.js</code> versions of every <code>@apollo/client/**/*.cjs</code> bundle (including dependencies <code>ts-invariant</code> and <code>zen-observable-ts</code>) to help React Native's Metro bundler automatically resolve CommonJS entry point modules. <strong>These changes should render unnecessary <a href="https://github.com/apollographql/apollo-client/blob/main/#apollo-client-354-2021-11-19">the advice we gave in the v3.5.4 section below about <code>metro.config.js</code></a>.</strong> <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9716">#9716</a></p>
</li>
<li>
<p>Handle falsy <code>incoming</code> data more gracefully in <code>offetLimitPagination().merge</code> function. <!-- raw HTML omitted -->
<a href="https://github.com/shobhitsharma"><code>@shobhitsharma</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9705">#9705</a></p>
</li>
</ul>
<h2>Apollo Client 3.6.3 (2022-05-05, only tagged <code>next</code> on npm)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>
<p>Simplify <code>useQuery(query, { defaultOptions })</code> default options processing in order to fix bug where <code>skip: true</code> queries failed to execute upon switching to <code>skip: false</code>. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9665">#9665</a></p>
</li>
<li>
<p>Add tests of skipping/unskipping and <code>useLazyQuery</code> with <code>defaultOptions</code>, and fix a bug causing duplicate requests. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9666">#9666</a></p>
</li>
<li>
<p>Update <code>ts-invariant</code> to version 0.10.2 to fix source map warnings. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9672">#9672</a></p>
</li>
<li>
<p>Test that <code>useQuery</code> queries with <code>skip: true</code> do not stall server-side rendering. <!-- raw HTML omitted -->
<a href="https://github.com/nathanmarks"><code>@nathanmarks</code></a> and <a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9677">#9677</a></p>
</li>
<li>
<p>Prevent <code>useLazyQuery</code> from making duplicate requests when its execution function is first called, and stop rejecting the <code>Promise</code> it returns when <code>result.error</code> is defined. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9684">#9684</a></p>
</li>
<li>
<p>Fix issue with <code>useQuery</code> returning <code>loading: true</code> state during server-side rendering with <code>skip: true</code>. <!-- raw HTML omitted -->
<a href="https://github.com/nathanmarks"><code>@nathanmarks</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9679">#9679</a></p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apollographql/apollo-client/commit/a46240f59caf7cc2422b51edbc622482dca518c9"><code>a46240f</code></a> Bump <code>@apollo/client</code> npm version to 3.6.4.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/57e32e171fc8458b59ccbdc375850475846c0e1a"><code>57e32e1</code></a> Fix attribution of PR <a href="https://github.com/apollographql/apollo-client/issues/9707">#9707</a> in CHANGELOG.md.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/c670e3a53249caa9fe5dfdd226adf97afe610284"><code>c670e3a</code></a> Handle falsy <code>incoming</code> data gracefully in <code>offsetLimitPagination().merge</code> (#...</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/4571e1ad0c2d2b9d9bf072f0f004b4487d55bc76"><code>4571e1a</code></a> Merge pull request <a href="https://github.com/apollographql/apollo-client/issues/9707">#9707</a> from kazekyo/fix_usesubscription_in_strict_mode</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/e62f8f6d37dba2144d2a298b0a6d810ec561b77f"><code>e62f8f6</code></a> Mention PR <a href="https://github.com/apollographql/apollo-client/issues/9707">#9707</a> in CHANGELOG.md.</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/2c452288952968dae487c0fc8ce4712486532fb9"><code>2c45228</code></a> Bump bundlesize limit to 29.5kB (now 28.46kB).</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/ec2604b929832a2f1bac025cd923e88c20a1673f"><code>ec2604b</code></a> Fix to use useRef instead of useState to avoid forcing a re-render</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/6c3e28af405ac0417312a716959a625976da4ec7"><code>6c3e28a</code></a> Fix to affect only remount</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/39f7bffdf695eab03b590c1cfe077081f56b10c1"><code>39f7bff</code></a> Fix useSubscription bug in React v18 StrictMode (<a href="https://github.com/apollographql/apollo-client/issues/9664">#9664</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/5be85a0ee22a5e4812d1a3da2b036b1d1580b4a5"><code>5be85a0</code></a> chore(deps): update dependency rollup to v2.73.0</li>
<li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.6.2...v3.6.4">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-17 06:42:38 +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.2 to 3.6.4.
Release notes
Sourced from
@apollo/client's releases.... (truncated)
Changelog
Sourced from
@apollo/client's changelog.Commits
a46240fBump@apollo/clientnpm version to 3.6.4.57e32e1Fix attribution of PR #9707 in CHANGELOG.md.c670e3aHandle falsyincomingdata gracefully inoffsetLimitPagination().merge(#...4571e1aMerge pull request #9707 from kazekyo/fix_usesubscription_in_strict_modee62f8f6Mention PR #9707 in CHANGELOG.md.2c45228Bump bundlesize limit to 29.5kB (now 28.46kB).ec2604bFix to use useRef instead of useState to avoid forcing a re-render6c3e28aFix to affect only remount39f7bffFix useSubscription bug in React v18 StrictMode (#9664)5be85a0chore(deps): update dependency rollup to v2.73.0Dependabot 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