@graphql-hive/router-query-planner 0.0.51 → 0.0.52

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/dist/index.d.ts CHANGED
@@ -22,7 +22,6 @@ export type PlanNode =
22
22
  | SequenceNode
23
23
  | ParallelNode
24
24
  | FlattenNode
25
- | ConditionNode
26
25
  | SubscriptionNode
27
26
  | DeferNode;
28
27
 
@@ -38,6 +37,14 @@ export interface FetchNode {
38
37
  outputRewrites?: OutputRewrite[];
39
38
  contextRewrites?: KeyRenamer[];
40
39
  contextVariables?: string[];
40
+ /** The fetch runs when any of these holds, always when missing. */
41
+ runIf?: ConditionGroup[];
42
+ }
43
+
44
+ /** Holds when every `includeIf` variable is `true` and no `skipIf` one is. */
45
+ export interface ConditionGroup {
46
+ includeIf?: string[];
47
+ skipIf?: string[];
41
48
  }
42
49
 
43
50
  export interface BatchFetchNode {
@@ -140,13 +147,6 @@ export interface FlattenNode {
140
147
  node: PlanNode;
141
148
  }
142
149
 
143
- export interface ConditionNode {
144
- kind: "Condition";
145
- condition: string;
146
- ifClause?: PlanNode;
147
- elseClause?: PlanNode;
148
- }
149
-
150
150
  export interface DeferNode {
151
151
  kind: "Defer";
152
152
  primary: DeferPrimary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/router-query-planner",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,6 +55,6 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "26.6.5",
58
- "@napi-rs/cli": "3.10.8"
58
+ "@napi-rs/cli": "3.10.9"
59
59
  }
60
60
  }