Skip to content

Commit 1641eeb

Browse files
Version Packages (#12325)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b17968b commit 1641eeb

File tree

5 files changed

+25
-27
lines changed

5 files changed

+25
-27
lines changed

.changeset/curvy-seahorses-walk.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/thin-oranges-laugh.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @apollo/client
22

3+
## 3.12.9
4+
5+
### Patch Changes
6+
7+
- [#12321](https://github.com/apollographql/apollo-client/pull/12321) [`daa4f33`](https://github.com/apollographql/apollo-client/commit/daa4f3303cfb81e8dca66c21ce3f3dc24946cafb) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix type of `extensions` in `protocolErrors` for `ApolloError` and the `onError` link. According to the [multipart HTTP subscription protocol](https://www.apollographql.com/docs/graphos/routing/operations/subscriptions/multipart-protocol), fatal tranport errors follow the [GraphQL error format](https://spec.graphql.org/draft/#sec-Errors.Error-Result-Format) which require `extensions` to be a map as its value instead of an array.
8+
9+
- [#12318](https://github.com/apollographql/apollo-client/pull/12318) [`b17968b`](https://github.com/apollographql/apollo-client/commit/b17968b61f0e35b1ba20d081dacee66af8225491) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Allow `RetryLink` to retry an operation when fatal [transport-level errors](https://www.apollographql.com/docs/graphos/routing/operations/subscriptions/multipart-protocol#message-and-error-format) are emitted from multipart subscriptions.
10+
11+
```js
12+
const retryLink = new RetryLink({
13+
attempts: (count, operation, error) => {
14+
if (error instanceof ApolloError) {
15+
// errors available on the `protocolErrors` field in `ApolloError`
16+
console.log(error.protocolErrors);
17+
}
18+
19+
return true;
20+
},
21+
});
22+
```
23+
324
## 3.12.8
425

526
### Patch Changes

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/client",
3-
"version": "3.12.8",
3+
"version": "3.12.9",
44
"description": "A fully-featured caching GraphQL client.",
55
"private": true,
66
"keywords": [

0 commit comments

Comments
 (0)