This repository was archived by the owner on Apr 4, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump @apollo/client from 3.4.16 to 3.5.2 (#833)
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: ["type", "@connection", ["key"]], }, }, }, }, }) </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 /> [](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