In <3.7 HttpLink and BatchHttpLink would return a ServerError.message of e.g. "Unexpected token 'E', \"Error! Foo bar\" is not valid JSON" and a ServerError.result of undefined in the case where a server returned a >= 300 response code with a response body containing a string that could not be parsed as JSON.
In >=3.7, message became e.g. Response not successful: Received status code 302 and result became the string from the response body, however the type in ServerError.result was not updated to include the string type, which is now properly reflected.
In = 300 response code with a response body containing a string that could not be parsed as JSON.
In >=3.7, message became e.g. Response not successful: Received status code 302 and result became the string from the response body, however the type in ServerError.result was not updated to include the string type, which is now properly reflected.
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.7.13 to 3.7.14.
<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.14</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://github.com/apollographql/apollo-client/pull/10764">#10764</a> <a href="https://github.com/apollographql/apollo-client/commit/1b0a61fe5a6593f319da26fec8692359232ccf9b"><code>1b0a61fe5</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Deprecate <code>useFragment</code> <code>returnPartialData</code> option</p>
</li>
<li>
<p><a href="https://github.com/apollographql/apollo-client/pull/10810">#10810</a> <a href="https://github.com/apollographql/apollo-client/commit/a6252774f43fd9a4be9c50b48b7a6d5a1c8e64ec"><code>a6252774f</code></a> Thanks <a href="https://github.com/dleavitt"><code>@dleavitt</code></a>! - Fix type signature of <code>ServerError</code>.</p>
<p>In <3.7 <code>HttpLink</code> and <code>BatchHttpLink</code> would return a <code>ServerError.message</code> of e.g. <code>"Unexpected token 'E', \"Error! Foo bar\" is not valid JSON"</code> and a <code>ServerError.result</code> of <code>undefined</code> in the case where a server returned a >= 300 response code with a response body containing a string that could not be parsed as JSON.</p>
<p>In >=3.7, <code>message</code> became e.g. <code>Response not successful: Received status code 302</code> and <code>result</code> became the string from the response body, however the type in <code>ServerError.result</code> was not updated to include the <code>string</code> type, which is now properly reflected.</p>
</li>
</ul>
</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>3.7.14</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://github.com/apollographql/apollo-client/pull/10764">#10764</a> <a href="https://github.com/apollographql/apollo-client/commit/1b0a61fe5a6593f319da26fec8692359232ccf9b"><code>1b0a61fe5</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Deprecate <code>useFragment</code> <code>returnPartialData</code> option</p>
</li>
<li>
<p><a href="https://github.com/apollographql/apollo-client/pull/10810">#10810</a> <a href="https://github.com/apollographql/apollo-client/commit/a6252774f43fd9a4be9c50b48b7a6d5a1c8e64ec"><code>a6252774f</code></a> Thanks <a href="https://github.com/dleavitt"><code>@dleavitt</code></a>! - Fix type signature of <code>ServerError</code>.</p>
<p>In <!-- raw HTML omitted -->= 300 response code with a response body containing a string that could not be parsed as JSON.</p>
<p>In >=3.7, <code>message</code> became e.g. <code>Response not successful: Received status code 302</code> and <code>result</code> became the string from the response body, however the type in <code>ServerError.result</code> was not updated to include the <code>string</code> type, which is now properly reflected.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apollographql/apollo-client/commit/f216df69b0f81d93d36786d577531d428bd25260"><code>f216df6</code></a> Version Packages (<a href="https://github.com/apollographql/apollo-client/issues/10832">#10832</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/c040b007fae48ae14afd105763b3370e491162ba"><code>c040b00</code></a> chore: make tests more resilient to intermittent failures (<a href="https://github.com/apollographql/apollo-client/issues/10833">#10833</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/a6252774f43fd9a4be9c50b48b7a6d5a1c8e64ec"><code>a625277</code></a> Fix type signature of ServerError (<a href="https://github.com/apollographql/apollo-client/issues/10810">#10810</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/1b0a61fe5a6593f319da26fec8692359232ccf9b"><code>1b0a61f</code></a> deprecate <code>useFragement</code> <code>returnPartialData</code> option (<a href="https://github.com/apollographql/apollo-client/issues/10764">#10764</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/439ab9bba263788623e4809de5b236b0bdd85175"><code>439ab9b</code></a> Revert "Update mutations.mdx (<a href="https://github.com/apollographql/apollo-client/issues/9708">#9708</a>)" (<a href="https://github.com/apollographql/apollo-client/issues/10828">#10828</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/8ccd11442c04a152cfac1e3119c19f3675f333cd"><code>8ccd114</code></a> Update 3.8 beta date</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/86ca77cff6376e4ce967860267734f923bd9f562"><code>86ca77c</code></a> chore: better guidance in 3.7.6 CHANGELOG entry (<a href="https://github.com/apollographql/apollo-client/issues/10825">#10825</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/b1aad3fa1fd722e7633a64e0ea25e7d2e0c8d883"><code>b1aad3f</code></a> chore(deps): update dependency rxjs to v7.8.1 (<a href="https://github.com/apollographql/apollo-client/issues/10822">#10822</a>)</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/8172fe13ab6e2b3fb3005435fb0d9eb16d05b712"><code>8172fe1</code></a> chore(deps): update dependency <code>@typescript-eslint/eslint-plugin</code> to v5.59.1 (#...</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/f075d97c070799381edf86115292f2cb7a7881f9"><code>f075d97</code></a> chore(deps): update dependency <code>@types/react-dom</code> to v18.2.1 (<a href="https://github.com/apollographql/apollo-client/issues/10823">#10823</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.7.13...v3.7.14">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 master2023-05-04 05:58:41 +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.7.13 to 3.7.14.
Release notes
Sourced from
@apollo/client's releases.Changelog
Sourced from
@apollo/client's changelog.Commits
f216df6Version Packages (#10832)c040b00chore: make tests more resilient to intermittent failures (#10833)a625277Fix type signature of ServerError (#10810)1b0a61fdeprecateuseFragementreturnPartialDataoption (#10764)439ab9bRevert "Update mutations.mdx (#9708)" (#10828)8ccd114Update 3.8 beta date86ca77cchore: better guidance in 3.7.6 CHANGELOG entry (#10825)b1aad3fchore(deps): update dependency rxjs to v7.8.1 (#10822)8172fe1chore(deps): update dependency@typescript-eslint/eslint-pluginto v5.59.1 (#...f075d97chore(deps): update dependency@types/react-domto v18.2.1 (#10823)Dependabot 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