Commit 99d72bf
authored
Add a new helper that detects network errors from the link chain (#12561)
* Inline type of network error in persisted-queries
* Remove NetworkError type in errors/index
* Add a NetworkError class
* Add tests for NetworkError
* Add tsdoc
* Add equality tester for NetworkError
* Export isErrorLike
* Leave cause as raw value in NetworkError
* Add a link that wraps errors with NetworkError
* Update exports snapshot
* Add changeset
* Rerun api report
* Update size limits
* Move isErrorLike to own file
* Update api report
* Update size limits
* Update doc
* Remove equality matcher
* Remove NetworkError from is tests
* Update NetworkError to be a facade object that registers errors
* Register network errors from the link chain
* Register errors from mutations
* Handle mutations
* Handle subscriptions
* Add watchQuery check
* Create separate internal function
* Update exports snapshot
* Remove network error link
* Update exports snapshot
* Update api report
* Update size limits
* Remove outdated file
* Export NetworkError in core
* Update changeset
* Add failing test case for mutations
* Wrap and register network error sooner in the chain
* Remove need to check CombinedGraphQLErrors
* Rename NetworkError to LinkError
* Add type to WeakSet
* Update changeset
* Rerun api report
* Update size limits
* Update exports snapshot1 parent 90bf0e6 commit 99d72bf
File tree
15 files changed
+374
-40
lines changed- .api-reports
- .changeset
- src
- __tests__/__snapshots__
- core
- errors
- __tests__
- link/persisted-queries
15 files changed
+374
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| 410 | + | |
| 411 | + | |
409 | 412 | | |
410 | 413 | | |
411 | 414 | | |
| |||
1113 | 1116 | | |
1114 | 1117 | | |
1115 | 1118 | | |
1116 | | - | |
1117 | | - | |
| 1119 | + | |
| 1120 | + | |
1118 | 1121 | | |
1119 | 1122 | | |
1120 | 1123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1609 | 1609 | | |
1610 | 1610 | | |
1611 | 1611 | | |
1612 | | - | |
1613 | | - | |
| 1612 | + | |
| 1613 | + | |
1614 | 1614 | | |
1615 | 1615 | | |
1616 | 1616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1297 | 1302 | | |
1298 | 1303 | | |
1299 | 1304 | | |
| |||
2533 | 2538 | | |
2534 | 2539 | | |
2535 | 2540 | | |
2536 | | - | |
2537 | | - | |
| 2541 | + | |
| 2542 | + | |
2538 | 2543 | | |
2539 | 2544 | | |
2540 | 2545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
414 | | - | |
415 | | - | |
416 | | - | |
| 415 | + | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
| |||
1100 | 1099 | | |
1101 | 1100 | | |
1102 | 1101 | | |
1103 | | - | |
| 1102 | + | |
1104 | 1103 | | |
1105 | 1104 | | |
1106 | 1105 | | |
| |||
1233 | 1232 | | |
1234 | 1233 | | |
1235 | 1234 | | |
1236 | | - | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
1237 | 1242 | | |
1238 | 1243 | | |
1239 | 1244 | | |
| |||
1307 | 1312 | | |
1308 | 1313 | | |
1309 | 1314 | | |
1310 | | - | |
1311 | | - | |
1312 | 1315 | | |
1313 | 1316 | | |
1314 | 1317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
0 commit comments