[Relevant if you use Apollo Client with React Native] Since Apollo Client v3.5.0, CommonJS bundles provided by @apollo/client use a .cjs file extension rather than .cjs.js, so Node.js won't interpret them as ECMAScript modules. While this change should be an implementation detail, it may cause problems for the Metro bundler used by React Native, whose resolver.sourceExts configuration does not include the cjs extension by default.
As a workaround until this issue is resolved, you can configure Metro to understand the .cjs file extension by creating a metro.config.js file in the root of your React Native project:
Restore the ability to pass onError() and onCompleted() to the mutation execution function.
@brainkim in #9076
Work around webpack 5 errors of the form
The request 'ts-invariant/process' failed to resolve only because it was resolved as fully specified
by ensuring import ... from 'ts-invariant/process' is internally written to import ... from 'ts-invariant/process/index.js'.
@benjamn in #9083
Apollo Client 3.5.3 (2021-11-17)
Avoid rewriting non-relative imported module specifiers in config/rewriteModuleIds.ts script, thereby allowing bundlers to resolve those imports as they see fit.
@benjamn in #9073
Ensure only current file is matched when running VSCode debugger.
@eps1lon in #9050
Apollo Client 3.5.2 (2021-11-10)
Fix useMutation execute function returning non-identical execution functions when passing similar options.
@brainkim in #9093
Apollo Client 3.5.1 (2021-11-09)
Remove npm from dependencies, and avoid referencing graphql-js enum value.
@brainkim in #9030
[Relevant if you use Apollo Client with React Native] Since Apollo Client v3.5.0, CommonJS bundles provided by @apollo/client use a .cjs file extension rather than .cjs.js, so Node.js won't interpret them as ECMAScript modules. While this change should be an implementation detail, it may cause problems for the Metro bundler used by React Native, whose resolver.sourceExts configuration does not include the cjs extension by default.
As a workaround until this issue is resolved, you can configure Metro to understand the .cjs file extension by creating a metro.config.js file in the root of your React Native project:
Restore the ability to pass onError() and onCompleted() to the mutation execution function. @brainkim in #9076
Work around webpack 5 errors of the form
The request 'ts-invariant/process' failed to resolve only because it was resolved as fully specified
by ensuring import ... from 'ts-invariant/process' is internally written to import ... from 'ts-invariant/process/index.js'.
@benjamn in #9083
Apollo Client 3.5.3 (2021-11-17)
Avoid rewriting non-relative imported module specifiers in config/rewriteModuleIds.ts script, thereby allowing bundlers to resolve those imports as they see fit.
@benjamn in #9073
Ensure only current file is matched when running VSCode debugger.
@eps1lon in #9050
Apollo Client 3.5.2 (2021-11-10)
Fix useMutation execute function returning non-identical execution functions when passing similar options.
@brainkim in #9093
Apollo Client 3.5.1 (2021-11-09)
Remove npm from dependencies, and avoid referencing graphql-js enum value.
@brainkim in #9030
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.4.17 to 3.5.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>3.5.x</h2>
<h2>Apollo Client 3.5.4 (2021-11-19)</h2>
<h3>Notices</h3>
<ul>
<li>
<p>[Relevant if you use Apollo Client with React Native] Since Apollo Client v3.5.0, CommonJS bundles provided by <code>@apollo/client</code> use a <code>.cjs</code> file extension rather than <code>.cjs.js</code>, so Node.js won't interpret them as ECMAScript modules. While this change should be an implementation detail, it may cause problems for the <a href="https://facebook.github.io/metro/">Metro bundler</a> used by React Native, whose <a href="https://facebook.github.io/metro/docs/configuration#sourceexts"><code>resolver.sourceExts</code></a> configuration does not include the <code>cjs</code> extension by default.</p>
<p>As a workaround until <a href="https://github.com/facebook/metro/issues/535">this issue</a> is resolved, you can configure Metro to understand the <code>.cjs</code> file extension by creating a <code>metro.config.js</code> file in the root of your React Native project:</p>
<pre lang="js"><code>const { getDefaultConfig } = require("metro-config");
const { resolver: defaultResolver } = getDefaultConfig.getDefaultValues();
exports.resolver = {
...defaultResolver,
sourceExts: [
...defaultResolver.sourceExts,
"cjs",
],
};
</code></pre>
</li>
</ul>
<h3>Improvements</h3>
<ul>
<li>
<p>Restore the ability to pass <code>onError()</code> and <code>onCompleted()</code> to the mutation execution function.
<a href="https://github.com/brainkim"><code>@brainkim</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9076">#9076</a></p>
</li>
<li>
<p>Work around webpack 5 errors of the form</p>
<pre><code>The request 'ts-invariant/process' failed to resolve only because it was resolved as fully specified
</code></pre>
<p>by ensuring <code>import ... from 'ts-invariant/process'</code> is internally written to <code>import ... from 'ts-invariant/process/index.js'</code>.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9083">#9083</a></p>
</li>
</ul>
<h2>Apollo Client 3.5.3 (2021-11-17)</h2>
<ul>
<li>
<p>Avoid rewriting non-relative imported module specifiers in <code>config/rewriteModuleIds.ts</code> script, thereby allowing bundlers to resolve those imports as they see fit.
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9073">#9073</a></p>
</li>
<li>
<p>Ensure only current file is matched when running VSCode debugger.
<a href="https://github.com/eps1lon"><code>@eps1lon</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9050">#9050</a></p>
</li>
</ul>
<h2>Apollo Client 3.5.2 (2021-11-10)</h2>
<ul>
<li>Fix useMutation execute function returning non-identical execution functions when passing similar options.
<a href="https://github.com/brainkim"><code>@brainkim</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9037">#9093</a></li>
</ul>
<h2>Apollo Client 3.5.1 (2021-11-09)</h2>
<ul>
<li>Remove npm from dependencies, and avoid referencing graphql-js enum value.
<a href="https://github.com/brainkim"><code>@brainkim</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9030">#9030</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.5.4 (2021-11-19)</h2>
<h3>Notices</h3>
<ul>
<li>
<p>[Relevant if you use Apollo Client with React Native] Since Apollo Client v3.5.0, CommonJS bundles provided by <code>@apollo/client</code> use a <code>.cjs</code> file extension rather than <code>.cjs.js</code>, so Node.js won't interpret them as ECMAScript modules. While this change should be an implementation detail, it may cause problems for the <a href="https://facebook.github.io/metro/">Metro bundler</a> used by React Native, whose <a href="https://facebook.github.io/metro/docs/configuration#sourceexts"><code>resolver.sourceExts</code></a> configuration does not include the <code>cjs</code> extension by default.</p>
<p>As a workaround until <a href="https://github.com/facebook/metro/issues/535">this issue</a> is resolved, you can configure Metro to understand the <code>.cjs</code> file extension by creating a <code>metro.config.js</code> file in the root of your React Native project:</p>
<pre lang="js"><code>const { getDefaultConfig } = require("metro-config");
const { resolver: defaultResolver } = getDefaultConfig.getDefaultValues();
exports.resolver = {
...defaultResolver,
sourceExts: [
...defaultResolver.sourceExts,
"cjs",
],
};
</code></pre>
</li>
</ul>
<h3>Improvements</h3>
<ul>
<li>
<p>Restore the ability to pass <code>onError()</code> and <code>onCompleted()</code> to the mutation execution function. <!-- raw HTML omitted --> <a href="https://github.com/brainkim"><code>@brainkim</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9076">#9076</a></p>
</li>
<li>
<p>Work around webpack 5 errors of the form</p>
<pre><code>The request 'ts-invariant/process' failed to resolve only because it was resolved as fully specified
</code></pre>
<p>by ensuring <code>import ... from 'ts-invariant/process'</code> is internally written to <code>import ... from 'ts-invariant/process/index.js'</code>. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9083">#9083</a></p>
</li>
</ul>
<h2>Apollo Client 3.5.3 (2021-11-17)</h2>
<ul>
<li>
<p>Avoid rewriting non-relative imported module specifiers in <code>config/rewriteModuleIds.ts</code> script, thereby allowing bundlers to resolve those imports as they see fit. <!-- raw HTML omitted -->
<a href="https://github.com/benjamn"><code>@benjamn</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9073">#9073</a></p>
</li>
<li>
<p>Ensure only current file is matched when running VSCode debugger. <!-- raw HTML omitted -->
<a href="https://github.com/eps1lon"><code>@eps1lon</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9050">#9050</a></p>
</li>
</ul>
<h2>Apollo Client 3.5.2 (2021-11-10)</h2>
<ul>
<li>Fix useMutation execute function returning non-identical execution functions when passing similar options. <!-- raw HTML omitted -->
<a href="https://github.com/brainkim"><code>@brainkim</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9037">#9093</a></li>
</ul>
<h2>Apollo Client 3.5.1 (2021-11-09)</h2>
<ul>
<li>Remove npm from dependencies, and avoid referencing graphql-js enum value. <!-- raw HTML omitted -->
<a href="https://github.com/brainkim"><code>@brainkim</code></a> in <a href="https://github.com/apollographql/apollo-client/pull/9030">#9030</a></li>
</ul>
<h2>Apollo Client 3.5.0 (2021-11-08)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/apollographql/apollo-client/commits/v3.5.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 46f545438c into master2021-11-23 05:35:19 +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.4.17 to 3.5.4.
Release notes
Sourced from
@apollo/client's releases.... (truncated)
Changelog
Sourced from
@apollo/client's changelog.... (truncated)
Commits
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 conflictsmentioned in commit
46f545438c