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.11.10 to 3.12.0 (#1819)
Bumps [@apollo/client](https://github.com/apollographql/apollo-client) from 3.11.10 to 3.12.0. <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.12.0</h2> <h3>Minor Changes</h3> <h4>Data masking 🎭</h4> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12042">#12042</a> <a href="https://github.com/apollographql/apollo-client/commit/1c0ecbf3c0454056853dd3dcb493dfd5fa1a96b1"><code>1c0ecbf</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Introduces data masking in Apollo Client.</p> <p>Data masking enforces that only the fields requested by the query or fragment is available to that component. Data masking is best paired with <a href="https://www.apollographql.com/docs/react/data/fragments#colocating-fragments">colocated fragments</a>.</p> <p>To enable data masking in Apollo Client, set the <code>dataMasking</code> option to <code>true</code>.</p> <pre lang="ts"><code>new ApolloClient({ dataMasking: true, // ... other options }); </code></pre> <p>For detailed information on data masking, including how to incrementally adopt it in an existing applications, see the <a href="https://www.apollographql.com/docs/react/data/fragments#data-masking">data masking documentation</a>.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12131">#12131</a> <a href="https://github.com/apollographql/apollo-client/commit/21c3f083013445707b7b50ae6390318bc568d0f5"><code>21c3f08</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Allow <code>null</code> as a valid <code>from</code> value in <code>useFragment</code>.</p> </li> </ul> <!-- raw HTML omitted --> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12126">#12126</a> <a href="https://github.com/apollographql/apollo-client/commit/d10d702ee9bd4d1d1dee2551821140f2c49d5c0c"><code>d10d702</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Maintain the existing document if its unchanged by the codemod and move to more naive whitespace formatting</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12150">#12150</a> <a href="https://github.com/apollographql/apollo-client/commit/9ed1e1ef02b28445614fed4f5c141a289ac32d66"><code>9ed1e1e</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix issue when using <code>Unmasked</code> with older versions of TypeScript when used with array fields.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12116">#12116</a> <a href="https://github.com/apollographql/apollo-client/commit/8ae6e4e5cec296c3910fdffb0ce51a0f5f06c5d3"><code>8ae6e4e</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Prevent field accessor warnings when using <code>@unmask(mode: "migrate")</code> on objects that are passed into <code>cache.identify</code>.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12120">#12120</a> <a href="https://github.com/apollographql/apollo-client/commit/6a98e76af5c800a91a748c498611b55c33e02c68"><code>6a98e76</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Provide a codemod that applies <code>@unmask</code> to all named fragments for all operations and fragments.</p> <p>Learn how to use the codemod in the <a href="https://www.apollographql.com/docs/react/data/fragments#incremental-adoption-in-an-existing-application">incremental adoption documentation</a>.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12134">#12134</a> <a href="https://github.com/apollographql/apollo-client/commit/cfaf4efc6dea56ae46a5b5199d8ed9414b0f17d8"><code>cfaf4ef</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix issue where data went missing when an unmasked fragment in migrate mode selected fields that the parent did not.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12154">#12154</a> <a href="https://github.com/apollographql/apollo-client/commit/d933def986d476cd64321059299ab15031297f04"><code>d933def</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Data masking types: handle overlapping nested array types and fragments on interface types.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12139">#12139</a> <a href="https://github.com/apollographql/apollo-client/commit/5a53e15e713e5eb2ebc9216615ea1a845fad2685"><code>5a53e15</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Fix issue where masked data would sometimes get returned when the field was part of a child fragment from a fragment unmasked by the parent query.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12123">#12123</a> <a href="https://github.com/apollographql/apollo-client/commit/8422a305eff861fc8f953731e92c860f555bd99a"><code>8422a30</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Warn when using data masking with "no-cache" operations.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12139">#12139</a> <a href="https://github.com/apollographql/apollo-client/commit/5a53e15e713e5eb2ebc9216615ea1a845fad2685"><code>5a53e15</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Fix issue where the warning emitted by <code>@unmask(mode: "migrate")</code> would trigger unnecessarily when the fragment was used alongside a masked fragment inside an inline fragment.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12114">#12114</a> <a href="https://github.com/apollographql/apollo-client/commit/1d4ce0034395147445165022f7d23f42ff638d8a"><code>1d4ce00</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix error when combining <code>@unmask</code> and <code>@defer</code> directives on a fragment spread when data masking is enabled.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12130">#12130</a> <a href="https://github.com/apollographql/apollo-client/commit/1e7d009e4a52949dab0065f3219dfe148837531e"><code>1e7d009</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix error thrown when applying unmask migrate mode warnings on interface types with selection sets that contain inline fragment conditions.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12152">#12152</a> <a href="https://github.com/apollographql/apollo-client/commit/78137eccba90b80dd29bd8e1423b49ebe51ef8df"><code>78137ec</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Add a helper that will skip the TS unmasking alorithm when no fragments are present on type level</p> </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>3.12.0</h2> <h3>Minor Changes</h3> <h4>Data masking 🎭</h4> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12042">#12042</a> <a href="https://github.com/apollographql/apollo-client/commit/1c0ecbf3c0454056853dd3dcb493dfd5fa1a96b1"><code>1c0ecbf</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Introduces data masking in Apollo Client.</p> <p>Data masking enforces that only the fields requested by the query or fragment is available to that component. Data masking is best paired with <a href="https://www.apollographql.com/docs/react/data/fragments#colocating-fragments">colocated fragments</a>.</p> <p>To enable data masking in Apollo Client, set the <code>dataMasking</code> option to <code>true</code>.</p> <pre lang="ts"><code>new ApolloClient({ dataMasking: true, // ... other options }); </code></pre> <p>For detailed information on data masking, including how to incrementally adopt it in an existing applications, see the <a href="https://www.apollographql.com/docs/react/data/fragments#data-masking">data masking documentation</a>.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12131">#12131</a> <a href="https://github.com/apollographql/apollo-client/commit/21c3f083013445707b7b50ae6390318bc568d0f5"><code>21c3f08</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Allow <code>null</code> as a valid <code>from</code> value in <code>useFragment</code>.</p> </li> </ul> <!-- raw HTML omitted --> <ul> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12126">#12126</a> <a href="https://github.com/apollographql/apollo-client/commit/d10d702ee9bd4d1d1dee2551821140f2c49d5c0c"><code>d10d702</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Maintain the existing document if its unchanged by the codemod and move to more naive whitespace formatting</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12150">#12150</a> <a href="https://github.com/apollographql/apollo-client/commit/9ed1e1ef02b28445614fed4f5c141a289ac32d66"><code>9ed1e1e</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix issue when using <code>Unmasked</code> with older versions of TypeScript when used with array fields.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12116">#12116</a> <a href="https://github.com/apollographql/apollo-client/commit/8ae6e4e5cec296c3910fdffb0ce51a0f5f06c5d3"><code>8ae6e4e</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Prevent field accessor warnings when using <code>@unmask(mode: "migrate")</code> on objects that are passed into <code>cache.identify</code>.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12120">#12120</a> <a href="https://github.com/apollographql/apollo-client/commit/6a98e76af5c800a91a748c498611b55c33e02c68"><code>6a98e76</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Provide a codemod that applies <code>@unmask</code> to all named fragments for all operations and fragments.</p> <p>Learn how to use the codemod in the <a href="https://www.apollographql.com/docs/react/data/fragments#incremental-adoption-in-an-existing-application">incremental adoption documentation</a>.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12134">#12134</a> <a href="https://github.com/apollographql/apollo-client/commit/cfaf4efc6dea56ae46a5b5199d8ed9414b0f17d8"><code>cfaf4ef</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix issue where data went missing when an unmasked fragment in migrate mode selected fields that the parent did not.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12154">#12154</a> <a href="https://github.com/apollographql/apollo-client/commit/d933def986d476cd64321059299ab15031297f04"><code>d933def</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Data masking types: handle overlapping nested array types and fragments on interface types.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12139">#12139</a> <a href="https://github.com/apollographql/apollo-client/commit/5a53e15e713e5eb2ebc9216615ea1a845fad2685"><code>5a53e15</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Fix issue where masked data would sometimes get returned when the field was part of a child fragment from a fragment unmasked by the parent query.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12123">#12123</a> <a href="https://github.com/apollographql/apollo-client/commit/8422a305eff861fc8f953731e92c860f555bd99a"><code>8422a30</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Warn when using data masking with "no-cache" operations.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12139">#12139</a> <a href="https://github.com/apollographql/apollo-client/commit/5a53e15e713e5eb2ebc9216615ea1a845fad2685"><code>5a53e15</code></a> Thanks <a href="https://github.com/phryneas"><code>@phryneas</code></a>! - Fix issue where the warning emitted by <code>@unmask(mode: "migrate")</code> would trigger unnecessarily when the fragment was used alongside a masked fragment inside an inline fragment.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12114">#12114</a> <a href="https://github.com/apollographql/apollo-client/commit/1d4ce0034395147445165022f7d23f42ff638d8a"><code>1d4ce00</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix error when combining <code>@unmask</code> and <code>@defer</code> directives on a fragment spread when data masking is enabled.</p> </li> <li> <p><a href="https://redirect.github.com/apollographql/apollo-client/pull/12130">#12130</a> <a href="https://github.com/apollographql/apollo-client/commit/1e7d009e4a52949dab0065f3219dfe148837531e"><code>1e7d009</code></a> Thanks <a href="https://github.com/jerelmiller"><code>@jerelmiller</code></a>! - Fix error thrown when applying unmask migrate mode warnings on interface types with selection sets that contain inline fragment conditions.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/apollographql/apollo-client/commit/36b93b905f8e073e94ef12aaa89ca27451eb3e85"><code>36b93b9</code></a> Version Packages (<a href="https://redirect.github.com/apollographql/apollo-client/issues/12169">#12169</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/ca53c19f217e5c0180484c5cd3fcd3c5226e07bc"><code>ca53c19</code></a> Merge pull request <a href="https://redirect.github.com/apollographql/apollo-client/issues/12072">#12072</a> from apollographql/release-3.12</li> <li><a href="https://github.com/apollographql/apollo-client/commit/5e5595326c4637b16e41f83cc3e4e5497d401047"><code>5e55953</code></a> Exit prerelease mode</li> <li><a href="https://github.com/apollographql/apollo-client/commit/501ac321befbdcd697acee364dc30cb6c67857ec"><code>501ac32</code></a> Update size limits</li> <li><a href="https://github.com/apollographql/apollo-client/commit/65e203ae713351ac38af41181ea8651a4ce5683c"><code>65e203a</code></a> Update data masking tests in React hooks to account for changes in render str...</li> <li><a href="https://github.com/apollographql/apollo-client/commit/7bcde69848dead02b8af2305bcf0a1a87c99dbc8"><code>7bcde69</code></a> Merge remote-tracking branch 'origin/main' into release-3.12</li> <li><a href="https://github.com/apollographql/apollo-client/commit/a8d208cd5299f6ad1997ed08533e90ceed16f0f4"><code>a8d208c</code></a> Add documentation on using TypeScript with data masking (<a href="https://redirect.github.com/apollographql/apollo-client/issues/12165">#12165</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/a923b06dea048c6141535c71465ebf0dedda1d92"><code>a923b06</code></a> Run tests with React 19 RC.1 and adjust tests accordingly (<a href="https://redirect.github.com/apollographql/apollo-client/issues/12140">#12140</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/bc7ca1ea94417f377b5686f993475f6d56cc183c"><code>bc7ca1e</code></a> chore: Update readme for GraphQL spec compability (<a href="https://redirect.github.com/apollographql/apollo-client/issues/12156">#12156</a>)</li> <li><a href="https://github.com/apollographql/apollo-client/commit/d42d9e09f6e887d2e862784eb601a8bda5802f11"><code>d42d9e0</code></a> Version Packages (rc) (<a href="https://redirect.github.com/apollographql/apollo-client/issues/12159">#12159</a>)</li> <li>Additional commits viewable in <a href="https://github.com/apollographql/apollo-client/compare/v3.11.10...v3.12.0">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.11.10&new-version=3.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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