Skip to content

Commit 57a6b9e

Browse files
committed
Merge branch 'main' into release-3.4.
2 parents 22243ac + b094e4e commit 57a6b9e

File tree

7 files changed

+196
-254
lines changed

7 files changed

+196
-254
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ TBD
99
## Documentation
1010
TBD
1111

12+
## Apollo Client 3.3.4
13+
14+
## Improvements
15+
16+
- Update `ts-invariant` to avoid potential [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)-violating `Function` fallback, thanks to [a clever new `globalThis` polyfill technique](https://mathiasbynens.be/notes/globalthis). <br/>
17+
[@benjamn](https://github.com/benjamn) in [#7414](https://github.com/apollographql/apollo-client/pull/7414)
18+
19+
## Apollo Client 3.3.3
20+
21+
## Bug fixes
22+
23+
- Make the `observer` parameter of `ApolloLink#onError` optional, fixing an unnecessary breaking change for any code that called `onError` directly. <br/>
24+
[@benjamn](https://github.com/benjamn) in [#7407](https://github.com/apollographql/apollo-client/pull/7407)
25+
1226
## Apollo Client 3.3.2
1327

1428
> ⚠️ **Note:** This version of `@apollo/client` contains no behavioral changes since version 3.3.1

docs/package-lock.json

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

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"gatsby": "2.27.4",
11-
"gatsby-theme-apollo-docs": "4.5.11",
11+
"gatsby-theme-apollo-docs": "4.5.12",
1212
"ink": "^2.7.1",
1313
"react": "17.0.1",
1414
"react-dom": "17.0.1",

docs/source/migrating/apollo-client-3-migration.md renamed to docs/source/migrating/apollo-client-3-migration.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
title: Migrating to Apollo Client 3.0
33
---
44

5+
import {VideoFrame} from 'gatsby-theme-apollo-docs'
6+
57
This article walks you through migrating your application to Apollo Client 3.0 from previous versions of Apollo Client.
68

79
To illustrate the migration process, we've also made this video that uses the example app from our [full-stack tutorial](https://www.apollographql.com/docs/tutorial/introduction/) as a starting point, updating it from Apollo client 2.6 to 3.0:
8-
<iframe width="560" height="315" src="https://www.youtube.com/embed/dlKzlksOUtU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
10+
11+
<VideoFrame src="https://www.youtube.com/embed/dlKzlksOUtU" />
912

1013
## What’s new in 3.0
1114

package-lock.json

Lines changed: 15 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
@@ -81,7 +81,7 @@
8181
"optimism": "^0.13.1",
8282
"prop-types": "^15.7.2",
8383
"symbol-observable": "^2.0.0",
84-
"ts-invariant": "^0.5.1",
84+
"ts-invariant": "^0.6.0",
8585
"tslib": "^1.10.0",
8686
"zen-observable": "^0.8.14"
8787
},

src/link/core/ApolloLink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class ApolloLink {
143143

144144
protected onError(
145145
error: any,
146-
observer: ZenObservable.Observer<FetchResult>,
146+
observer?: ZenObservable.Observer<FetchResult>,
147147
): false | void {
148148
if (observer && observer.error) {
149149
observer.error(error);

0 commit comments

Comments
 (0)