Commit 01b9e80
fix(deps): support graphql 16 and 17 (#503)
* fix(deps): support graphql 16 and 17
Widen the graphql range to ^16.12.0 || ^17.0.0 (dependency + new
peerDependency) and adjust the code to the v16-and-v17 API intersection:
- errors.ts: use the object-form GraphQLError constructor (the positional
form was removed in v17).
- resolvers: read info.variableValues via a getVariableValues() helper that
handles both v16's plain record and v17's { sources, coerced } shape.
Verified: build + lint + full jest suite green against both graphql@16.14.2
and graphql@17.0.1.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* chore: adjust matrix
* huebscher
* debug
* debug
* idefix
* upgrade packages
* fix: green CI after package upgrades (lint + tsc build)
The 'upgrade packages' commit regenerated the lockfile, which pulled:
- @typescript-eslint 8.63 — now flags the pre-existing union
`Knex.RawBinding | Knex.ValueDict` in permissions/check.ts as
no-redundant-type-constituents (RawBinding already subsumes it / collapses
to any). Neither caller passes a ValueDict, so narrow the param to
Knex.RawBinding.
- @types/node 25.9.4 (was 25.3.3) — no longer auto-included into the build
tsconfig's global scope, so tsc fails with TS2591 (Cannot find name
'process'/'http'/'crypto'). Add "types": ["node"] to tsconfig.json as TS
itself recommends; version-independent and the build only needs node globals.
Both issues fail 'npm run test' on every matrix cell (lint runs first, so the
graphql-16/pg14 cell that finished first is what CI reported; fail-fast
cancelled the rest). Verified green under graphql 16 and 17.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* cleanup
* types
---------
Co-authored-by: Nicola Marcacci Rossi <nicola@smartive.ch>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Moreno Feltscher <moreno@smartive.ch>1 parent 2fd243a commit 01b9e80
7 files changed
Lines changed: 2233 additions & 1245 deletions
File tree
- .github/workflows
- src
- resolvers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
56 | 54 | | |
57 | | - | |
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| 79 | + | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
26 | 39 | | |
27 | 40 | | |
28 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments