@depup/graphql-codegen__plugin-helpers 7.3.0-depup.0 → 7.4.0-depup.0

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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/graphql-codegen__plugin-helpers
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@graphql-codegen/plugin-helpers](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers) @ 7.3.0 |
17
- | Processed | 2026-09-01 |
16
+ | Original | [@graphql-codegen/plugin-helpers](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers) @ 7.4.0 |
17
+ | Processed | 2026-09-28 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 2 |
20
20
 
@@ -22,7 +22,7 @@ npm install @depup/graphql-codegen__plugin-helpers
22
22
 
23
23
  | Dependency | From | To |
24
24
  |------------|------|-----|
25
- | @graphql-tools/utils | ^11.2.0 | ^12.0.0 |
25
+ | @graphql-tools/utils | ^11.2.0 | ^12.0.1 |
26
26
  | tslib | ^2.8.0 | ^2.8.1 |
27
27
 
28
28
  ---
package/changes.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "bumped": {
3
3
  "@graphql-tools/utils": {
4
4
  "from": "^11.2.0",
5
- "to": "^12.0.0"
5
+ "to": "^12.0.1"
6
6
  },
7
7
  "tslib": {
8
8
  "from": "^2.8.0",
9
9
  "to": "^2.8.1"
10
10
  }
11
11
  },
12
- "timestamp": "2026-09-01T16:30:50.311Z",
12
+ "timestamp": "2026-09-28T16:10:23.358Z",
13
13
  "totalUpdated": 2
14
14
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@depup/graphql-codegen__plugin-helpers",
3
- "version": "7.3.0-depup.0",
3
+ "version": "7.4.0-depup.0",
4
4
  "description": "GraphQL Code Generator common utils and types (with updated dependencies)",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-tools/utils": "^12.0.0",
9
+ "@graphql-tools/utils": "^12.0.1",
10
10
  "change-case-all": "^2.1.0",
11
11
  "common-tags": "1.8.2",
12
12
  "import-from": "4.0.0",
@@ -57,7 +57,7 @@
57
57
  "changes": {
58
58
  "@graphql-tools/utils": {
59
59
  "from": "^11.2.0",
60
- "to": "^12.0.0"
60
+ "to": "^12.0.1"
61
61
  },
62
62
  "tslib": {
63
63
  "from": "^2.8.0",
@@ -66,8 +66,8 @@
66
66
  },
67
67
  "depsUpdated": 2,
68
68
  "originalPackage": "@graphql-codegen/plugin-helpers",
69
- "originalVersion": "7.3.0",
70
- "processedAt": "2026-09-01T16:30:52.613Z",
69
+ "originalVersion": "7.4.0",
70
+ "processedAt": "2026-09-28T16:10:27.084Z",
71
71
  "smokeTest": "passed"
72
72
  }
73
73
  }
@@ -1,2 +1,19 @@
1
- import { ASTNode } from 'graphql';
2
- export declare function oldVisit(root: ASTNode, { enter: enterVisitors, leave: leaveVisitors, ...newVisitor }: any): any;
1
+ import { ASTNode, DocumentNode } from 'graphql';
2
+ /**
3
+ * The result of `oldVisit` on a `DocumentNode` with `leave` visitors.
4
+ *
5
+ * Each definition is replaced by whatever its leave visitor returned (usually a string). Definitions
6
+ * without a leave visitor stay as AST nodes, so check each one before using it.
7
+ */
8
+ export type OldVisitDocumentResult = Omit<DocumentNode, 'definitions'> & {
9
+ definitions: unknown[];
10
+ };
11
+ /**
12
+ * Visits `root` with `enter` and `leave` visitor maps keyed by AST node kind.
13
+ *
14
+ * Leave visitors replace nodes with whatever they return, so the result's shape depends on the
15
+ * visitor. For a `DocumentNode`, it defaults to `OldVisitDocumentResult`. When a `Document` leave
16
+ * visitor returns a value of its own, pass its type as `TResult`.
17
+ */
18
+ export declare function oldVisit<TResult = OldVisitDocumentResult>(root: DocumentNode, visitor: any): TResult;
19
+ export declare function oldVisit<TResult = unknown>(root: ASTNode, visitor: any): TResult;
@@ -1,2 +1,19 @@
1
- import { ASTNode } from 'graphql';
2
- export declare function oldVisit(root: ASTNode, { enter: enterVisitors, leave: leaveVisitors, ...newVisitor }: any): any;
1
+ import { ASTNode, DocumentNode } from 'graphql';
2
+ /**
3
+ * The result of `oldVisit` on a `DocumentNode` with `leave` visitors.
4
+ *
5
+ * Each definition is replaced by whatever its leave visitor returned (usually a string). Definitions
6
+ * without a leave visitor stay as AST nodes, so check each one before using it.
7
+ */
8
+ export type OldVisitDocumentResult = Omit<DocumentNode, 'definitions'> & {
9
+ definitions: unknown[];
10
+ };
11
+ /**
12
+ * Visits `root` with `enter` and `leave` visitor maps keyed by AST node kind.
13
+ *
14
+ * Leave visitors replace nodes with whatever they return, so the result's shape depends on the
15
+ * visitor. For a `DocumentNode`, it defaults to `OldVisitDocumentResult`. When a `Document` leave
16
+ * visitor returns a value of its own, pass its type as `TResult`.
17
+ */
18
+ export declare function oldVisit<TResult = OldVisitDocumentResult>(root: DocumentNode, visitor: any): TResult;
19
+ export declare function oldVisit<TResult = unknown>(root: ASTNode, visitor: any): TResult;