Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrades to TypeScript 4.9.4 #10470

Merged
merged 32 commits into from
Jan 26, 2023
Merged

Upgrades to TypeScript 4.9.4 #10470

merged 32 commits into from
Jan 26, 2023

Conversation

alessbell
Copy link
Contributor

@alessbell alessbell commented Jan 23, 2023

Branched off of #10305 which itself branched off of #9919.

Upgrades from TS 4.7.4 to 4.9.4 and makes relevant fixes (see #9199).

Checklist:

  • If this PR contains changes to the library itself (not necessary for e.g. docs updates), please include a changeset (see CONTRIBUTING.md)
  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)
  • Make sure all of the significant new logic is covered by tests

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2023

🦋 Changeset detected

Latest commit: 4e18792

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@apollo/client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@jerelmiller jerelmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic! Thanks for helping shepard this along.

I had a few comments in regards to the {} type that I'd like to check on, but otherwise this looks great!

@alessbell
Copy link
Contributor Author

alessbell commented Jan 25, 2023

Right now, all of these changes are backward-compatible, except the changes to the HOC interfaces, hence having to update significant test code in that part of the codebase.

I'd like to take a closer look at those, but won't be able to prioritize it for a week or so (we can also target this for 4.0 if that eventually seems to make more sense, but I'd like to avoid that if possible). Leaving this PR open in the meantime.

Edit: I've resolved the HOC type issues, this is good to go 🎉

Copy link
Member

@jerelmiller jerelmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great to me. Thanks for handling this!

@@ -229,7 +230,7 @@ export class InMemoryCache extends ApolloCache<NormalizedCacheObject> {
}
}

public diff<TData, TVariables = any>(
public diff<TData, TVariables extends OperationVariables = any>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change for TypeScript users and should probably have been released in a major version, or at least mentioned in the changelog.

Copy link
Member

@phryneas phryneas Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OperationVariables is defined as Record<string, any>, so this only makes sure what you pass in as TVariables is an object, and not a primitive value like string, which would (afaik) always have caused a runtime error in the past. So I would not see it as a breaking change, but more the types getting closer to existing runtime behaviour.
To make sure I'm not missing something: Can you think of anything that could have been used here in the past that would not have caused a runtime error?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get what you are saying, and I agree that there is no runtime breaking change. But for TypeScript users a change of type might mean a compile time breaking change. And turns out it did break compilation for a bunch of users: kamilkisiela/apollo-angular#1907

But I get it, it's not a huge change, and not such as terrible thing to deal with for us. But still, it creates a bit of friction. I thought you might want to hear about it, so maybe you could handle it differently for future cases (or not, that's up to you 😅 )

Copy link
Member

@phryneas phryneas Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was explicitly asking for situations where this could break at all - and you are right, non-restricted, yet-unresolved generic arguments that are forwarded are impacted by this - essentially, this can occur if you wrap the type or a usage of the type with your own generalized implementation. I didn't think of that use case.
As this is out right now, I don't think we should go "back" on it in this specific use case - especially since it might block users from upgrading their TypeScript version (this was changed for a reason, after all).

But yes, generally, we are trying to keep TypeScript changes that could break things in user code out of patch releases and at least target minor versions with them. Targeting major versions is sometimes not feasible, since we have long iterations here and TypeScript itself is just advancing very fast. But we will try to communicate it better in the future.

As for the problem at hand: fixing this requires that you add the same constraint on your end, so this change will be required:

-export class QueryRef<T, V = EmptyObject> {
+export class QueryRef<T, V extends OperationVariables = EmptyObject> {

I will see that I file a PR on your side to reduce friction.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR ! I didn't realize that it was you who made it.

And don't worry for going "back". I didn't expect you to do anything more than just listening to my rant 😅

patrickdevivo added a commit to mergestat/mergestat that referenced this pull request Mar 5, 2023
<h3>Snyk has created this PR to upgrade @apollo/client from 3.7.0 to
3.7.7.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.
<hr/>

- The recommended version is **7 versions** ahead of your current
version.
- The recommended version was released **a month ago**, on 2023-02-03.


<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>@apollo/client</b></summary>
    <ul>
      <li>
<b>3.7.7</b> - <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.7">2023-02-03</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10502"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10502/hovercard">#10502</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/315faf9ca5b326852919ab7fc2082d6ba92bcb59"><code>315faf9ca</code></a>
Thanks <a href="https://snyk.io/redirect/github/jerelmiller">@
jerelmiller</a>! - Log a warning to the console when a mock passed to
<code>MockedProvider</code> or <code>MockLink</code> cannot be matched
to a query during a test. This makes it easier to debug user errors in
the mock setup, such as typos, especially if the query under test is
using an <code>errorPolicy</code> set to <code>ignore</code>, which
makes it difficult to know that a match did not occur.</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10499"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10499/hovercard">#10499</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/9e54f5dfa05fd363e534c432ba8c569bb96a6e35"><code>9e54f5dfa</code></a>
Thanks <a href="https://snyk.io/redirect/github/phryneas">@
phryneas</a>! - Allow the execution function returned by
<code>useLazyQuery</code> to change the query.</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10362"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10362/hovercard">#10362</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/14a56b105fefcbb2ce5daa9fd6924e5decafcc16"><code>14a56b105</code></a>
Thanks <a href="https://snyk.io/redirect/github/mccraveiro">@
mccraveiro</a>! - Fix error when server returns an error and we are also
querying for a local field</p>
</li>
</ul>
      </li>
      <li>
<b>3.7.6</b> - <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.6">2023-01-31</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10470"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10470/hovercard">#10470</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/47435e879ebc867d9fc3de5b6fd5785204b4dbd4"><code>47435e879</code></a>
Thanks <a href="https://snyk.io/redirect/github/alessbell">@
alessbell</a>! - Bumps TypeScript to <code>4.9.4</code> (previously
<code>4.7.4</code>) and updates types to account for changes in
TypeScript 4.8 by <a
href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#unconstrained-generics-no-longer-assignable-to"
rel="nofollow">propagating contstraints on generic types</a>.
Technically this makes some types stricter as attempting to pass
<code>null|undefined</code> into certain functions is now disallowed by
TypeScript, but these were never expected runtime values in the first
place.</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10408"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10408/hovercard">#10408</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/55ffafc585e9eb66314755b4f40804b8b8affb13"><code>55ffafc58</code></a>
Thanks <a href="https://snyk.io/redirect/github/zlrlo">@ zlrlo</a>! -
fix: modify BatchHttpLink to have a separate timer for each different
batch key</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/9573"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/9573/hovercard">#9573</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/4a4f48dda8dd290ef110aed9e4e73d0c1c977c31"><code>4a4f48dda</code></a>
Thanks <a href="https://snyk.io/redirect/github/vladar">@ vladar</a>! -
Improve performance of local resolvers by only executing selection sets
that contain an <code>@ client</code> directive. Previously, local
resolvers were executed even when the field did not contain <code>@
client</code>. While the result was properly discarded, the unncessary
work could negatively affect query performance, sometimes
signficantly.</p>
</li>
</ul>
      </li>
      <li>
<b>3.7.5</b> - <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.5">2023-01-24</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10458"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10458/hovercard">#10458</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/b5ccef229046d230e82a68a4834ac09ae1ef2009"><code>b5ccef229</code></a>
Thanks <a href="https://snyk.io/redirect/github/lennyburdette">@
lennyburdette</a>! - Passes <code>getServerSnapshot</code> to
<code>useSyncExternalStore</code> so that it doesn't trigger a
<code>Missing getServerSnapshot</code> error when using
<code>useFragment_experimental</code> on the server.</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10471"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10471/hovercard">#10471</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/895ddcb546b5692cd53caae1b604412728641374"><code>895ddcb54</code></a>
Thanks <a href="https://snyk.io/redirect/github/alessbell">@
alessbell</a>! - More robust type definition for <code>headers</code>
property passed to <code>createHttpLink</code></p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10321"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10321/hovercard">#10321</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/bbaa3ef2d95a03e2453ef86a25096c314fbd8998"><code>bbaa3ef2d</code></a>
Thanks <a href="https://snyk.io/redirect/github/alessbell">@
alessbell</a>! - Refetch should not return partial data with
<code>errorPolicy: none</code> and <code>notifyOnNetworkStatusChange:
true</code>.</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10402"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10402/hovercard">#10402</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/0b07aa955bab2e929f21590b565507a66f930539"><code>0b07aa955</code></a>
Thanks <a href="https://snyk.io/redirect/github/Hugodby">@ Hugodby</a>!
- Improve context types</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10469"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10469/hovercard">#10469</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/328c58f90d3fd985a58a68d8ba07f7c03f9808f6"><code>328c58f90</code></a>
Thanks <a href="https://snyk.io/redirect/github/jerelmiller">@
jerelmiller</a>! - Add generic type defaults when using
<code>useFragment</code> to allow passing <code>TData</code> directly to
the function without needing to specify <code>TVars</code>.</p>
</li>
</ul>
      </li>
      <li>
<b>3.7.4</b> - <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.4">2023-01-13</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10427"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10427/hovercard">#10427</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/28d909cff086f8352e2ea75421a1cac590917573"><code>28d909cff</code></a>
Thanks <a href="https://snyk.io/redirect/github/jerelmiller">@
jerelmiller</a>! - Ensure in-flight promises executed by
<code>useLazyQuery</code> are rejected when <code>useLazyQuery</code>
unmounts.</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10383"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10383/hovercard">#10383</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/5c5ca9b01a2b9905f94de85e5b80ffc29522e2e3"><code>5c5ca9b01</code></a>
Thanks <a href="https://snyk.io/redirect/github/jerelmiller">@
jerelmiller</a>! - Ensure the <code>onError</code> callback is called
when the <code>errorPolicy</code> is set to "all" and partial data is
returned.</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10425"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10425/hovercard">#10425</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/86e35a6d25e9838f39a9de652e52a358b9c08488"><code>86e35a6d2</code></a>
Thanks <a href="https://snyk.io/redirect/github/jerelmiller">@
jerelmiller</a>! - Prefer the <code>onError</code> and
<code>onCompleted</code> callback functions passed to the execute
function returned from <code>useMutation</code> instead of calling both
callback handlers.</p>
</li>
</ul>
      </li>
      <li>
<b>3.7.3</b> - <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.3">2022-12-15</a></br><h3>Patch
Changes</h3>
<ul>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10334"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10334/hovercard">#10334</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/7d923939dd7e6db7d69f04f598c666104b076e78"><code>7d923939d</code></a>
Thanks <a href="https://snyk.io/redirect/github/jerelmiller">@
jerelmiller</a>! - Better handle deferred queries that have cached or
partial cached data for them</p>
</li>
<li>
<p><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10368"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10368/hovercard">#10368</a>
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/46b58e9762abbffaee5c9abda8e309bea6d7a785"><code>46b58e976</code></a>
Thanks <a href="https://snyk.io/redirect/github/alessbell">@
alessbell</a>! - Fix: unblocks support for defer in mutations</p>
<p>If the <code>@ defer</code> directive is present in the document
passed to <code>mutate</code>, the Promise will resolve with the final
merged data after the last multipart chunk has arrived in the
response.</p>
</li>
</ul>
      </li>
      <li>
<b>3.7.2</b> - <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.2">2022-12-06</a></br><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.2">
Read more </a>
      </li>
      <li>
<b>3.7.1</b> - <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases/tag/v3.7.1">2022-10-20</a></br><h2>Bug
fixes (from <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/blob/main/CHANGELOG.md"><code>CHANGELOG.md</code></a>)</h2>
<ul>
<li>
<p>Fix issue where <code>loading</code> remains <code>true</code> after
<code>observer.refetch</code> is called repeatedly with different
variables when the same data are returned.<br>
<a href="https://snyk.io/redirect/github/alessbell">@ alessbell</a> in
<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10143"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10143/hovercard">#10143</a></p>
</li>
<li>
<p>Fix race condition where <code>useFragment_experimental</code> could
receive cache updates before initially calling <code>cache.watch</code>
in <code>useEffect</code>.<br>
<a href="https://snyk.io/redirect/github/benjamn">@ benjamn</a> in <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10212"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10212/hovercard">#10212</a></p>
</li>
</ul>
<h2>What's Changed (auto-generated by GitHub)</h2>
<ul>
<li>changes install message by <a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/jpvajda/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/jpvajda">@ jpvajda</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1392871877" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10149"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10149/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10149">#10149</a></li>
<li>oct 2022 roadmap update by <a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/jpvajda/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/jpvajda">@ jpvajda</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1395355230" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10161"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10161/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10161">#10161</a></li>
<li>Small updates for AS4 by <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/rkoron007/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/rkoron007">@ rkoron007</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1405252320" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10175"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10175/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10175">#10175</a></li>
<li>Various edits to caching docs by <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/StephenBarlow/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/StephenBarlow">@ StephenBarlow</a>
in <a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1327921835" data-permission-text="Title is private"
data-url="apollographql/apollo-client#9984"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/9984/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/9984">#9984</a></li>
<li>Use nav nesting and tweak defer article slightly by <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/StephenBarlow/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/StephenBarlow">@ StephenBarlow</a>
in <a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1406849387" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10187"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10187/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10187">#10187</a></li>
<li>Call <code>iterateObserversSafely</code> if vars change between
calls to <code>observer.next</code> by <a class="user-mention
notranslate" data-hovercard-type="user"
data-hovercard-url="/users/alessbell/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/alessbell">@ alessbell</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1390000591" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10143"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10143/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10143">#10143</a></li>
<li>Update docs algolia filters by <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/trevorblades/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/trevorblades">@ trevorblades</a>
in <a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1412233303" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10200"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10200/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10200">#10200</a></li>
<li>Fix typo in <code>NetworkError</code> by <a class="user-mention
notranslate" data-hovercard-type="user"
data-hovercard-url="/users/OliverWales/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/OliverWales">@ OliverWales</a> in
<a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1413281725" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10204"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10204/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10204">#10204</a></li>
<li>Update apollo-link-rest.md - Add graphql-anywhere to install list by
<a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/pfcodes/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/pfcodes">@ pfcodes</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1388851953" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10138"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10138/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10138">#10138</a></li>
<li>Use custom <code>config/bundlesize.ts</code> script to avoid
<code>iltorb</code> dependency, unbreaking <code>npm install</code> when
using Node.js v19 by <a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/benjamn/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/benjamn">@ benjamn</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1413880266" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10206"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10206/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10206">#10206</a></li>
<li>Experiment with not caching the <code>~/.npm</code> directory during
Filesize/Tests CircleCI jobs by <a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/benjamn/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/benjamn">@ benjamn</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1414934448" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10209"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10209/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10209">#10209</a></li>
<li>docs: add TypedDocumentNode example by <a class="user-mention
notranslate" data-hovercard-type="user"
data-hovercard-url="/users/henryqdineen/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/henryqdineen">@ henryqdineen</a>
in <a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="1348527109" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10031"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10031/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10031">#10031</a></li>
<li>Update Local Resolvers docs by <a class="user-mention notranslate"
data-hovercard-type="user"
data-hovercard-url="/users/bignimbus/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/bignimbus">@ bignimbus</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1415203893" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10211"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10211/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10211">#10211</a></li>
<li>Remove (deprecated) from Local resolvers doc title by <a
class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/bignimbus/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/bignimbus">@ bignimbus</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1415475621" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10213"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10213/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10213">#10213</a></li>
<li>Remaining Local Resolvers wordsmithing by <a class="user-mention
notranslate" data-hovercard-type="user"
data-hovercard-url="/users/bignimbus/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/bignimbus">@ bignimbus</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1415559784" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10214"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10214/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10214">#10214</a></li>
<li>Call <code>forceUpdate</code> immediately if <code>diff</code>
changes between first <code>useFragment</code> call and first
<code>cache.watch</code> call by <a class="user-mention notranslate"
data-hovercard-type="user" data-hovercard-url="/users/benjamn/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/benjamn">@ benjamn</a> in <a
class="issue-link js-issue-link" data-error-text="Failed to load title"
data-id="1415441975" data-permission-text="Title is private"
data-url="apollographql/apollo-client#10212"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10212/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10212">#10212</a></li>
</ul>
<h2>New Contributors (auto-generated by GitHub)</h2>
<ul>
<li><a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/OliverWales/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/OliverWales">@ OliverWales</a>
made their first contribution in <a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1413281725"
data-permission-text="Title is private"
data-url="apollographql/apollo-client#10204"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10204/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10204">#10204</a></li>
<li><a class="user-mention notranslate" data-hovercard-type="user"
data-hovercard-url="/users/pfcodes/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://snyk.io/redirect/github/pfcodes">@ pfcodes</a> made their
first contribution in <a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1388851953"
data-permission-text="Title is private"
data-url="apollographql/apollo-client#10138"
data-hovercard-type="pull_request"
data-hovercard-url="/apollographql/apollo-client/pull/10138/hovercard"
href="https://snyk.io/redirect/github/apollographql/apollo-client/pull/10138">#10138</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a class="commit-link"
href="https://snyk.io/redirect/github/apollographql/apollo-client/compare/v3.7.0...v3.7.1"><tt>v3.7.0...v3.7.1</tt></a></p>
      </li>
      <li>
        <b>3.7.0</b> - 2022-09-30
      </li>
    </ul>
from <a
href="https://snyk.io/redirect/github/apollographql/apollo-client/releases">@apollo/client
GitHub release notes</a>
  </details>
</details>


<details>
  <summary><b>Commit messages</b></summary>
  </br>
  <details>
    <summary>Package name: <b>@apollo/client</b></summary>
    <ul>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/676e11edd57ab2582b49bf1d1b6dc921df7213cf">676e11e</a>
Version Packages (#10501)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/e079cc1ad31dae9831dbd13a6e7636384e48e9e9">e079cc1</a>
Remove unused reject argument for mockQueryManager and mockWatchQuery
(#10504)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/315faf9ca5b326852919ab7fc2082d6ba92bcb59">315faf9</a>
Log unmatched mocks to the console for tests (#10502)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/14a56b105fefcbb2ce5daa9fd6924e5decafcc16">14a56b1</a>
fix: error when server throws and we are also querying for a local field
(#10362)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/8ac151e6e3f6aaf4a2facb44cff81be7104f066c">8ac151e</a>
Welcome, Lenz!</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/9e54f5dfa05fd363e534c432ba8c569bb96a6e35">9e54f5d</a>
Allow &#x60;useLazyQuery&#x60; trigger fn to change &#x60;query&#x60;
(#10499)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/2408fd3fe7259ebf8bd5c90b67ec71ce4124180d">2408fd3</a>
chore: adds GHA workflow to lock closed + dormant issues (#10500)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/9f0e298fe44d00dd8189e3393142af654ec08b3c">9f0e298</a>
Version Packages (#10479)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/b4a4bd16a911a233de6ada47780c84512f885401">b4a4bd1</a>
Add more details to the roadmap (#10494)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/4a4f48dda8dd290ef110aed9e4e73d0c1c977c31">4a4f48d</a>
Fields without &#x60;@ client&#x60; directive should not be resolved
locally (#9573)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/43f3a54427512cfa3413ddf10738bf63bec84b15">43f3a54</a>
chore(deps): update dependency eslint to v8.33.0</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/8f56cc46afee65110793ee262643b0b9fa9f6439">8f56cc4</a>
chore(deps): update dependency eslint-plugin-testing-library to
v5.10.0</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/154d8acda95c8e16f0ad3714b4229f373dd16351">154d8ac</a>
chore(deps): update dependency @ typescript-eslint/parser to
v5.49.0</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/ca852c2c446ab5f086723cfc015f02cc0db4d444">ca852c2</a>
chore(deps): update dependency @ typescript-eslint/eslint-plugin to
v5.49.0</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/97848726b3242bfc5e604c792d251334b8fcce8d">9784872</a>
chore(deps): update cimg/node docker tag to v19.5.0</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/7db773d8fabfade6968250ca00a2bb5805336a4b">7db773d</a>
chore(deps): update dependency rimraf to v4.1.2</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/0ff17bece2a32b68a155771f59dfe0e05373173c">0ff17be</a>
chore(deps): update dependency acorn to v8.8.2</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/13f1bbb36eb67327bfc7909781f6ebb62aed413d">13f1bbb</a>
chore(deps): update dependency @ graphql-tools/schema to v9.0.14</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/8a7fb6f9da34c09b02f30878b8a90bc572160e7a">8a7fb6f</a>
chore: adds changeset snapshot release action (#10480)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/55ffafc585e9eb66314755b4f40804b8b8affb13">55ffafc</a>
fix: modify the BatchHttpLink to have each timer when the batch key is
different (#10408)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/47435e879ebc867d9fc3de5b6fd5785204b4dbd4">47435e8</a>
Upgrade to TypeScript 4.9 (#10470)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/d8f28c3da80ff898d11c636d8b688e6d471432fa">d8f28c3</a>
Remove errant JSON.parse statement in docs (#10476)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/49ffcfab0165dc61a7475b2e18f0ecae00f7c22c">49ffcfa</a>
Version Packages (#10456)</li>
<li><a
href="https://snyk.io/redirect/github/apollographql/apollo-client/commit/895ddcb546b5692cd53caae1b604412728641374">895ddcb</a>
Fix headers type (extends #9042) (#10471)</li>
    </ul>

<a
href="https://snyk.io/redirect/github/apollographql/apollo-client/compare/9134aaf3b6fc398b2d82439b5b63848b533ae4c9...676e11edd57ab2582b49bf1d1b6dc921df7213cf">Compare</a>
  </details>
</details>
<hr/>

**Note:** *You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs.*

For more information: <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJhZjM3YzJmNi1kZDgwLTRlNjEtYWNiNi0xOGQwYWI4YzVjNDEiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImFmMzdjMmY2LWRkODAtNGU2MS1hY2I2LTE4ZDBhYjhjNWM0MSJ9fQ=="
width="0" height="0"/>

🧐 [View latest project
report](https://app.snyk.io/org/mergestat/project/e267d993-52da-4f6e-9de9-0012cd8b1835?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)

🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/mergestat/project/e267d993-52da-4f6e-9de9-0012cd8b1835/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)

🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/mergestat/project/e267d993-52da-4f6e-9de9-0012cd8b1835/settings/integration?pkg&#x3D;@apollo/client&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

<!---
(snyk:metadata:{"prId":"af37c2f6-dd80-4e61-acb6-18d0ab8c5c41","prPublicId":"af37c2f6-dd80-4e61-acb6-18d0ab8c5c41","dependencies":[{"name":"@apollo/client","from":"3.7.0","to":"3.7.7"}],"packageManager":"npm","type":"auto","projectUrl":"https://app.snyk.io/org/mergestat/project/e267d993-52da-4f6e-9de9-0012cd8b1835?utm_source=github&utm_medium=referral&page=upgrade-pr","projectPublicId":"e267d993-52da-4f6e-9de9-0012cd8b1835","env":"prod","prType":"upgrade","vulns":[],"issuesToFix":[],"upgrade":[],"upgradeInfo":{"versionsDiff":7,"publishedDate":"2023-02-03T18:24:55.814Z"},"templateVariants":[],"hasFixes":false,"isMajorUpgrade":false,"isBreakingChange":false,"priorityScoreList":[]})
--->
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants