Skip to content
This repository was archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Bump @apollo/client from 3.4.16 to 3.5.2 (#833)
Browse files Browse the repository at this point in the history
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.4.16 to 3.5.2.
<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.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-redirect.dependabot.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-redirect.dependabot.com/apollographql/apollo-client/pull/9030">#9030</a></li>
</ul>
<h2>Apollo Client 3.5.0 (2021-11-08)</h2>
<h3>Improvements</h3>
<ul>
<li>
<p>Add <code>updateQuery</code> and <code>updateFragment</code> methods to <code>ApolloCache</code>, simplifying common <code>readQuery</code>/<code>writeQuery</code> cache update patterns. 
<a href="https://github.com/wassim-k"><code>@​wassim-k</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8382">#8382</a></p>
</li>
<li>
<p>Field directives and their arguments can now be included along with field argument names when using <a href="https://www.apollographql.com/docs/react/pagination/key-args/">field policy <code>keyArgs: [...]</code> notation</a>. For example, if you have a <code>Query.feed</code> field that takes an argument called <code>type</code> and uses a <code>@connection(key:...)</code> directive to keep <code>feed</code> data from different queries separate within the cache, you might configure both using the following <code>InMemoryCache</code> field policy:</p>
<pre lang="ts"><code>new InMemoryCache({
  typePolicies: {
    Query: {
      fields: {
        feed: {
          keyArgs: [&quot;type&quot;, &quot;@connection&quot;, [&quot;key&quot;]],
        },
      },
    },
  },
})
</code></pre>
<p><a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8678">#8678</a></p>
</li>
<li>
<p>Report single <code>MissingFieldError</code> instead of a potentially very large <code>MissingFieldError[]</code> array for incomplete cache reads, improving performance and memory usage. 
<a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8734">#8734</a></p>
</li>
<li>
<p>When writing results into <code>InMemoryCache</code>, each written object is now identified using <code>policies.identify</code> <em>after</em> traversing the fields of the object (rather than before), simplifying identification and reducing duplicate work. If you have custom <code>keyFields</code> functions, they still receive the raw result object as their first parameter, but the <code>KeyFieldsContext</code> parameter now provides <code>context.storeObject</code> (the <code>StoreObject</code> just processed by <code>processSelectionSet</code>) and <code>context.readField</code> (a helper function for reading fields from <code>context.storeObject</code> and any <code>Reference</code>s it might contain, similar to <code>readField</code> for <code>read</code>, <code>merge</code>, and <code>cache.modify</code> functions). 
<a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8996">#8996</a></p>
</li>
<li>
<p>Ensure <code>cache.identify</code> never throws when primary key fields are missing, and include the source object in the error message when <code>keyFields</code> processing fails. 
<a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8679">#8679</a></p>
</li>
<li>
<p>The <code>HttpLink</code> constructor now accepts an optional <code>print</code> function that can be used to customize how GraphQL <code>DocumentNode</code> objects are transformed back into strings before they are sent over the network. 
<a href="https://github.com/sarahgp"><code>@​sarahgp</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8699">#8699</a></p>
</li>
<li>
<p>Make <code>@apollo/client/testing</code> a fully-fledged, independent entry point, instead of re-exporting <code>@apollo/client/utilities/testing</code> (which was never an entry point and no longer exists). 
<a href="https://github.com/benjamn"><code>@​benjamn</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8769">#8769</a></p>
</li>
<li>
<p>A new nested entry point called <code>@apollo/client/testing/core</code> has been created. Importing from this entry point instead of <code>@apollo/client/testing</code> excludes any React-related dependencies. 
<a href="https://github.com/wassim-k"><code>@​wassim-k</code></a> in <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/pull/8687">#8687</a></p>
</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apollographql/apollo-client/commit/630ec1f4b65d0c83986d47acf7bba7f906082304"><code>630ec1f</code></a> Version bump; prep for publish</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/80da5c5189f1690a111f30ee975d228363b4b2a6"><code>80da5c5</code></a> Update CHANGELOG.md</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/14c08e6705d4715f51168f8b666351c4e0adb901"><code>14c08e6</code></a> fix useMutation hook returning different execute functions</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/88ec2f66027183d51c743131da37573531e0b16c"><code>88ec2f6</code></a> update useMutation test to fail</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/461cfdbef09bea97ccb626d6d863c317d3db3337"><code>461cfdb</code></a> chore(deps): update dependency gatsby-theme-apollo-docs to v5.3.3</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/030d2c178880a23724247a3f7b0a41ce4c0ef3c2"><code>030d2c1</code></a> Version bump; prep for publish</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/aedbfc6286dc71e32038999e5dde2d0021f6f9ad"><code>aedbfc6</code></a> fix npm getting added to dependencies and OperationTypeNode being incorrectly...</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/b214dd1d31cdfe6b5477bb5887a7d9615a302b27"><code>b214dd1</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/apollographql/apollo-client/issues/8554">#8554</a> from apollographql/release-3.5</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/e2d86b661ada670a6f52b395b12fad3799092c85"><code>e2d86b6</code></a> Merge branch 'main' into release-3.5</li>
<li><a href="https://github.com/apollographql/apollo-client/commit/d0e09f4efacf89fb1f67669fc4314a7d3491125d"><code>d0e09f4</code></a> Version bump; prep for publish</li>
<li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.4.16...v3.5.2">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@apollo/client&package-manager=npm_and_yarn&previous-version=3.4.16&new-version=3.5.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
  • Loading branch information
dependabot[bot] authored Nov 16, 2021
1 parent b45f172 commit 615bec1
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
xlsx "^0.17.0"

"@apollo/client@^3.1.5":
version "3.4.16"
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.4.16.tgz#67090d5655aa843fa64d26f1913315e384a5fa0f"
integrity sha512-iF4zEYwvebkri0BZQyv8zfavPfVEafsK0wkOofa6eC2yZu50J18uTutKtC174rjHZ2eyxZ8tV7NvAPKRT+OtZw==
version "3.5.2"
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.5.2.tgz#f0a4d8cb42f045e0527f081da9bb21c4fb53aeaf"
integrity sha512-STC7ZQthcOGU+MXRIzcb3s1ULW9QQFEhXFEIUaK3Jdwy0RxncxYkg2LpwxXV0FqlYUjKEW92f+NUIZ2FhpKGug==
dependencies:
"@graphql-typed-document-node/core" "^3.0.0"
"@wry/context" "^0.6.0"
Expand All @@ -38,7 +38,7 @@
symbol-observable "^4.0.0"
ts-invariant "^0.9.0"
tslib "^2.3.0"
zen-observable-ts "~1.1.0"
zen-observable-ts "^1.2.0"

"@babel/[email protected]":
version "7.10.4"
Expand Down Expand Up @@ -4258,11 +4258,6 @@
dependencies:
"@types/node" "*"

"@types/[email protected]":
version "0.8.3"
resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.3.tgz#781d360c282436494b32fe7d9f7f8e64b3118aa3"
integrity sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==

"@typescript-eslint/eslint-plugin@^4.3.0":
version "4.33.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276"
Expand Down Expand Up @@ -20939,12 +20934,11 @@ yocto-queue@^0.1.0:
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==

zen-observable-ts@~1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-1.1.0.tgz#2d1aa9d79b87058e9b75698b92791c1838551f83"
integrity sha512-1h4zlLSqI2cRLPJUHJFL8bCWHhkpuXkF+dbGkRaWjgDIG26DmzyshUMrdV/rL3UnR+mhaX4fRq8LPouq0MYYIA==
zen-observable-ts@^1.2.0:
version "1.2.2"
resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-1.2.2.tgz#9694a52ff1e346460340dd50135970e8953dcc63"
integrity sha512-o15G3luGAPoWD2//djCQsnC7886KpgQETAvTwnDPMN33RS+XACoFR46fm5e3tC/WNTF0uzHPL91Yyakc280Xiw==
dependencies:
"@types/zen-observable" "0.8.3"
zen-observable "0.8.15"

[email protected]:
Expand Down

0 comments on commit 615bec1

Please sign in to comment.