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

Version Packages (rc) #11057

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"changesets": [
"afraid-zebras-punch",
"chatty-experts-fly",
"cold-tips-accept",
"cool-dogs-applaud",
"curvy-dragons-talk",
Expand Down Expand Up @@ -41,6 +42,7 @@
"olive-pans-report",
"orange-suns-check",
"polite-birds-rescue",
"polite-pianos-kiss",
"popular-beers-move",
"rude-frogs-destroy",
"rude-mayflies-scream",
Expand All @@ -57,6 +59,7 @@
"small-tomatoes-explode",
"smooth-clouds-sort",
"smooth-forks-shop",
"smooth-goats-cheat",
"sour-weeks-suffer",
"spotty-news-stare",
"strange-drinks-report",
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# @apollo/client

## 3.8.0-rc.0

### Minor Changes

- [#11058](https://github.com/apollographql/apollo-client/pull/11058) [`89bf33c42`](https://github.com/apollographql/apollo-client/commit/89bf33c425d08880eeaed4584bdd56c4caf085e7) Thanks [@phryneas](https://github.com/phryneas)! - (Batch)HttpLink: Propagate `AbortError`s to the user when a user-provided `signal` is passed to the link. Previously, these links would swallow all `AbortErrors`, potentially causing queries and mutations to never resolve. As a result of this change, users are now expected to handle `AbortError`s when passing in a user-provided `signal`.

- [#11040](https://github.com/apollographql/apollo-client/pull/11040) [`125ef5b2a`](https://github.com/apollographql/apollo-client/commit/125ef5b2a8fd2de1515b2bdd71785ebab3596cb2) Thanks [@phryneas](https://github.com/phryneas)! - `HttpLink`/`BatchHttpLink`: Abort the `AbortController` signal more granularly.
Before this change, when `HttpLink`/`BatchHttpLink` created an `AbortController`
internally, the signal would always be `.abort`ed after the request was completed. This could cause issues with Sentry Session Replay and Next.js App Router Cache invalidations, which just replayed the fetch with the same options - including the cancelled `AbortSignal`.

With this change, the `AbortController` will only be `.abort()`ed by outside events,
not as a consequence of the request completing.

### Patch Changes

- [#11053](https://github.com/apollographql/apollo-client/pull/11053) [`c0ca70720`](https://github.com/apollographql/apollo-client/commit/c0ca70720cf5fbedd6e4f128b460c1995d9c55a7) Thanks [@phryneas](https://github.com/phryneas)! - Add `SuspenseCache` as a lazy hidden property on ApolloClient.
This means that `SuspenseCache` is now an implementation details of Apollo Client
and you no longer need to manually instantiate it and no longer need to pass it
into `ApolloProvider`.
Trying to instantiate a `SuspenseCache` instance in your code will now throw an
error.

Migration:

```diff
-import { SuspenseCache } from '@apollo/client';

-const suspenseCache = new SuspenseCache();

-<ApolloProvider client={client} suspenseCache={suspenseCache} />;
+<ApolloProvider client={client} />;
```

## 3.8.0-beta.7

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/client",
"version": "3.7.17",
"version": "3.8.0-rc.0",
"description": "A fully-featured caching GraphQL client.",
"private": true,
"keywords": [
Expand Down