Commit b24798d
authored
chore(deps): update gql to v4 (#598)
* chore(deps): update gql to v4.0.0
* fix: use non-deprecated gql calls
It's worth mentioning that the documentation suggests[^1] setting `variable_values`
directly on the (in our case, global) query object, and doesn't really talk about race conditions,
but I would assume they can happen, especially in async code.
It might be fine if you call `gql.gql(<str>)` every time, which might be what the documentation suggests,
but that seems like a performance nightmare.
Therefore, we just construct a new `GraphQLRequest` from the existing globals,
which automatically copies over the parsed `Document` node, so it should have little to no overhead.
[^1]: https://gql.readthedocs.io/en/latest/usage/variables.html
* feat: improve gql logging level overrides
transports now log with `DEBUG` instead of `INFO`,
so we can go back up to `INFO` without getting too spammy.
* fix: remove now unnecessary ssl param for gql transport1 parent 62c2409 commit b24798d
4 files changed
+22
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | | - | |
| 224 | + | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
| |||
575 | 573 | | |
576 | 574 | | |
577 | 575 | | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1017 | 1019 | | |
1018 | 1020 | | |
1019 | 1021 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments