Skip to content

Commit bade5b0

Browse files
committed
Update @apollo/client to v3.13.1 #11164
1 parent 510c85a commit bade5b0

4 files changed

Lines changed: 24 additions & 29 deletions

File tree

client/app/shared/config/apollo-options.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function createErrorLink(
3939
// Show Graphql responses with errors to end-users (but do not decrease pending queries because it is done by uploadInterceptor)
4040
if (errorResponse.graphQLErrors) {
4141
errorResponse.graphQLErrors.forEach(error => {
42-
if ('extensions' in error && error.extensions.showSnack) {
42+
if ('extensions' in error && error.extensions?.showSnack) {
4343
// Show whatever server prepared for end-user, with a bit more time to read
4444
alertService.error(error.message, 5000);
4545
} else {

client/app/shared/services/network-activity.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {inject, Injectable} from '@angular/core';
22
import {NgProgress} from 'ngx-progressbar';
33
import {BehaviorSubject, Subject} from 'rxjs';
4+
import {GraphQLFormattedError} from 'graphql';
45

56
@Injectable({
67
providedIn: 'root',
@@ -17,7 +18,7 @@ export class NetworkActivityService {
1718
* Observable specifying if app is loading or not
1819
*/
1920
public readonly isPending = new BehaviorSubject<boolean>(false);
20-
public readonly errors = new Subject<readonly Error[]>();
21+
public readonly errors = new Subject<readonly GraphQLFormattedError[]>();
2122

2223
public increase(): void {
2324
if (this.pending === 0) {
@@ -46,7 +47,7 @@ export class NetworkActivityService {
4647
}
4748
}
4849

49-
public updateErrors(errors: readonly Error[]): void {
50+
public updateErrors(errors: readonly GraphQLFormattedError[]): void {
5051
if (errors?.length) {
5152
this.errors.next(errors);
5253
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
"@angular/platform-browser": "^18.2.3",
2727
"@angular/platform-browser-dynamic": "^18.2.3",
2828
"@angular/router": "^18.2.3",
29-
"@apollo/client": "~3.10.8",
29+
"@apollo/client": "^3.13.1",
3030
"@ecodev/fab-speed-dial": "^17.0.0",
31-
"@ecodev/natural": "^62.0.1",
32-
"@ecodev/natural-editor": "^62.0.1",
31+
"@ecodev/natural": "^62.0.2",
32+
"@ecodev/natural-editor": "^62.0.2",
3333
"@ecodev/natural-layout": "^2.0.2",
3434
"@graphql-codegen/cli": "^5.0.2",
3535
"@graphql-codegen/typescript-apollo-angular": "^4.0.0",
3636
"@graphql-codegen/typescript-operations": "^4.2.3",
3737
"@graphql-tools/mock": "^9.0.3",
38-
"apollo-angular": "^7.0.2",
38+
"apollo-angular": "^10.0.0",
3939
"big.js": "^6.2.1",
4040
"crypto-es": "^2.1.0",
4141
"graphql": "^16.9.0",

yarn.lock

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,10 @@
328328
dependencies:
329329
tslib "^2.3.0"
330330

331-
"@apollo/client@~3.10.8":
332-
version "3.10.8"
333-
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.10.8.tgz#96b1548818e45fac752ec2bd318e5466d9ca26b5"
334-
integrity sha512-UaaFEitRrPRWV836wY2L7bd3HRCfbMie1jlYMcmazFAK23MVhz/Uq7VG1nwbotPb5xzFsw5RF4Wnp2G3dWPM3g==
331+
"@apollo/client@^3.13.1":
332+
version "3.13.1"
333+
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.13.1.tgz#c0633c69c5446967b0e517a590595eeea61dd176"
334+
integrity sha512-HaAt62h3jNUXpJ1v5HNgUiCzPP1c5zc2Q/FeTb2cTk/v09YlhoqKKHQFJI7St50VCJ5q8JVIc03I5bRcBrQxsg==
335335
dependencies:
336336
"@graphql-typed-document-node/core" "^3.1.1"
337337
"@wry/caches" "^1.0.0"
@@ -342,7 +342,6 @@
342342
optimism "^0.18.0"
343343
prop-types "^15.7.2"
344344
rehackt "^0.1.0"
345-
response-iterator "^0.2.6"
346345
symbol-observable "^4.0.0"
347346
ts-invariant "^0.10.3"
348347
tslib "^2.3.0"
@@ -1639,10 +1638,10 @@
16391638
dependencies:
16401639
tslib "^2.6"
16411640

1642-
"@ecodev/natural-editor@^62.0.1":
1643-
version "62.0.1"
1644-
resolved "https://registry.yarnpkg.com/@ecodev/natural-editor/-/natural-editor-62.0.1.tgz#0915f86ed778041fbcdb27ddd34454490d6481c8"
1645-
integrity sha512-TBPDZzXWX0Gb4W0KZkVXwKj/VnrNYKAqUusPI6aEec3Hqn3q5XGMO1R1CfGVlvnJXvfx7lZZBM34La9nvHY8Rg==
1641+
"@ecodev/natural-editor@^62.0.2":
1642+
version "62.0.2"
1643+
resolved "https://registry.yarnpkg.com/@ecodev/natural-editor/-/natural-editor-62.0.2.tgz#0ebbcaee530d97ce4c7874f855cd3e9363fe5372"
1644+
integrity sha512-hlJvtCh986XiDLZg/FgJFHdsYyNnAojFcTTPNXnu8qm6/nllm8RkM0Bc21jPUahVLJuOXsuK5xmqsurZrnLmjA==
16461645
dependencies:
16471646
prosemirror-commands "^1.5.2"
16481647
prosemirror-dropcursor "^1.8.1"
@@ -1664,10 +1663,10 @@
16641663
resolved "https://registry.yarnpkg.com/@ecodev/natural-layout/-/natural-layout-2.0.2.tgz#e2c64c2ddb3c60793a39236b52624fde323e610a"
16651664
integrity sha512-BV75kFQmpfuSBNQ1jyKu+IdGkFTMESjPrtKrEyc3MqcmVhV5IiYU0LXTaghLZozuZgCT9HfMOnEsh05aS2j9uQ==
16661665

1667-
"@ecodev/natural@^62.0.1":
1668-
version "62.0.1"
1669-
resolved "https://registry.yarnpkg.com/@ecodev/natural/-/natural-62.0.1.tgz#f95af7fe7791fbb7eeebd9cee310ad8fae634536"
1670-
integrity sha512-w3aqN3V4+NtqNzy5gTyZ/g2t21xot1vyfTYgUDDQT1BvGI/p0xNHMM2Q0mwzlA1HmNMuxMtAM5hmd0tRev12rg==
1666+
"@ecodev/natural@^62.0.2":
1667+
version "62.0.2"
1668+
resolved "https://registry.yarnpkg.com/@ecodev/natural/-/natural-62.0.2.tgz#ec38ac7788e6718d8b221c9ec4260369333778be"
1669+
integrity sha512-iHZflBUHehrsHoJ/lhbNWBtSKN/SPN1aTt0cNikRD3vOXfoOjYGnv4OZWGb+T9CgZGHyVReQozqaOx5OU+GbBA==
16711670
dependencies:
16721671
crypto-es "^2.0.3"
16731672
extract-files "^13.0.0"
@@ -4050,10 +4049,10 @@ anymatch@~3.1.2:
40504049
normalize-path "^3.0.0"
40514050
picomatch "^2.0.4"
40524051

4053-
apollo-angular@^7.0.2:
4054-
version "7.0.2"
4055-
resolved "https://registry.yarnpkg.com/apollo-angular/-/apollo-angular-7.0.2.tgz#35f4d396aedbc905acd0d40402802666ec6449ce"
4056-
integrity sha512-OBj+KnVfGsJ1wdsOj5CENyjBnd85vseAlgqW1kG4tvgz0QPgPlUHx5KBKhwlf2hWZceNQQcXoWQmnXxzdZbWDg==
4052+
apollo-angular@^10.0.0:
4053+
version "10.0.0"
4054+
resolved "https://registry.yarnpkg.com/apollo-angular/-/apollo-angular-10.0.0.tgz#c033b8dfc361ece206abdc63db3f1c90f4222d4e"
4055+
integrity sha512-Aew8HzqtKii0WKZT+yO13yHTjY24VVVbffAaDBA8suWE91FtnPfvPilPjrCBcvrrtuMTAn49Zx6DDCPgXaElnw==
40574056
dependencies:
40584057
tslib "^2.6.2"
40594058

@@ -8675,11 +8674,6 @@ resolve@1.22.8, resolve@^1.14.2:
86758674
path-parse "^1.0.7"
86768675
supports-preserve-symlinks-flag "^1.0.0"
86778676

8678-
response-iterator@^0.2.6:
8679-
version "0.2.6"
8680-
resolved "https://registry.yarnpkg.com/response-iterator/-/response-iterator-0.2.6.tgz#249005fb14d2e4eeb478a3f735a28fd8b4c9f3da"
8681-
integrity sha512-pVzEEzrsg23Sh053rmDUvLSkGXluZio0qu8VT6ukrYuvtjVfCbDZH9d6PGXb8HZfzdNZt8feXv/jvUzlhRgLnw==
8682-
86838677
restore-cursor@^3.1.0:
86848678
version "3.1.0"
86858679
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e"

0 commit comments

Comments
 (0)