@trackunit/graphql-build-tools 0.0.89 → 0.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 0.0.92 (2026-09-04)
2
+
3
+ This was a version bump only for graphql-build-tools to align it with other projects, there were no code changes.
4
+
5
+ ## 0.0.91 (2026-09-04)
6
+
7
+ This was a version bump only for graphql-build-tools to align it with other projects, there were no code changes.
8
+
9
+ ## 0.0.90 (2026-09-02)
10
+
11
+ ### 🩹 Fixes
12
+
13
+ - **graphql-build-tools:** inject id for list-typed Node selection sets ([881eb3b789f](https://github.com/Trackunit/manager/commit/881eb3b789f))
14
+
15
+ ### ❤️ Thank You
16
+
17
+ - Cursor @cursoragent
18
+ - Piotr Wdowiak
19
+
1
20
  ## 0.0.89 (2026-09-01)
2
21
 
3
22
  This was a version bump only for graphql-build-tools to align it with other projects, there were no code changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/graphql-build-tools",
3
- "version": "0.0.89",
3
+ "version": "0.0.92",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "engines": {
6
6
  "node": ">=24.x"
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@graphql-tools/delegate": "^10.2.13",
24
- "@graphql-tools/schema": "^10.0.19",
24
+ "@graphql-tools/schema": "^10.1.0",
25
25
  "@graphql-tools/utils": "^10.8.2",
26
26
  "@graphql-tools/wrap": "^10.0.31",
27
27
  "es-toolkit": "^1.39.10",
@@ -37,11 +37,10 @@ class MapIDValues {
37
37
  [graphql_1.Kind.FIELD]: node => this.transformFieldNode(node, variableValues, args),
38
38
  [graphql_1.Kind.SELECTION_SET]: node => {
39
39
  const nodeIdFieldName = "id";
40
- let type = typeInfo.getType();
41
- if (type) {
42
- if (type instanceof graphql_1.GraphQLNonNull) {
43
- type = type.ofType;
44
- }
40
+ const rawType = typeInfo.getType();
41
+ if (rawType) {
42
+ // Unwrap non-null and list wrappers so list-typed Node fields also get `id` injected.
43
+ const type = (0, graphql_1.getNamedType)(rawType);
45
44
  if ("getInterfaces" in type &&
46
45
  type.getInterfaces().some(typeInterface => typeInterface.name === "Node")) {
47
46
  if (!node.selections.some(selection => selection.kind === graphql_1.Kind.FIELD && selection.name.value === nodeIdFieldName)) {