houdini 1.1.0 → 1.1.1-next.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.
@@ -73586,9 +73586,10 @@ var FieldCollection = class {
73586
73586
  for (const subselect of selection.selectionSet?.selections || []) {
73587
73587
  this.fields[key].selection.add(subselect);
73588
73588
  }
73589
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
73590
- selection.selectionSet?.selections ?? []
73591
- );
73589
+ this.fields[key].selection.fragmentSpreads = {
73590
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
73591
+ ...this.fields[key].selection.fragmentSpreads
73592
+ };
73592
73593
  return;
73593
73594
  }
73594
73595
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -73677,12 +73678,26 @@ var FieldCollection = class {
73677
73678
  return [fragment2.astNode];
73678
73679
  }).concat(
73679
73680
  Object.values(this.fields).map((field) => {
73680
- if (field.astNode.selectionSet) {
73681
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
73682
- }
73683
- return field.astNode;
73681
+ return {
73682
+ ...field.astNode,
73683
+ selectionSet: field.astNode.selectionSet ? {
73684
+ kind: "SelectionSet",
73685
+ selections: field.selection.toSelectionSet()
73686
+ } : void 0
73687
+ };
73684
73688
  })
73685
- ).concat(Object.values(this.fragmentSpreads));
73689
+ ).concat(
73690
+ Object.values(this.fragmentSpreads).map((spread) => {
73691
+ return {
73692
+ kind: "FragmentSpread",
73693
+ name: {
73694
+ kind: "Name",
73695
+ value: spread.name.value
73696
+ },
73697
+ directives: spread.directives
73698
+ };
73699
+ })
73700
+ );
73686
73701
  }
73687
73702
  walkInlineFragment(selection) {
73688
73703
  const key = selection.typeCondition.name.value;
@@ -79219,8 +79234,8 @@ async function updatePackageJSON(targetPath) {
79219
79234
  }
79220
79235
  packageJSON.devDependencies = {
79221
79236
  ...packageJSON.devDependencies,
79222
- houdini: "^1.1.0",
79223
- "houdini-svelte": "^1.1.0"
79237
+ houdini: "^1.1.1-next.0",
79238
+ "houdini-svelte": "^1.1.1-next.0"
79224
79239
  };
79225
79240
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
79226
79241
  }
@@ -73591,9 +73591,10 @@ var FieldCollection = class {
73591
73591
  for (const subselect of selection.selectionSet?.selections || []) {
73592
73592
  this.fields[key].selection.add(subselect);
73593
73593
  }
73594
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
73595
- selection.selectionSet?.selections ?? []
73596
- );
73594
+ this.fields[key].selection.fragmentSpreads = {
73595
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
73596
+ ...this.fields[key].selection.fragmentSpreads
73597
+ };
73597
73598
  return;
73598
73599
  }
73599
73600
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -73682,12 +73683,26 @@ var FieldCollection = class {
73682
73683
  return [fragment2.astNode];
73683
73684
  }).concat(
73684
73685
  Object.values(this.fields).map((field) => {
73685
- if (field.astNode.selectionSet) {
73686
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
73687
- }
73688
- return field.astNode;
73686
+ return {
73687
+ ...field.astNode,
73688
+ selectionSet: field.astNode.selectionSet ? {
73689
+ kind: "SelectionSet",
73690
+ selections: field.selection.toSelectionSet()
73691
+ } : void 0
73692
+ };
73689
73693
  })
73690
- ).concat(Object.values(this.fragmentSpreads));
73694
+ ).concat(
73695
+ Object.values(this.fragmentSpreads).map((spread) => {
73696
+ return {
73697
+ kind: "FragmentSpread",
73698
+ name: {
73699
+ kind: "Name",
73700
+ value: spread.name.value
73701
+ },
73702
+ directives: spread.directives
73703
+ };
73704
+ })
73705
+ );
73691
73706
  }
73692
73707
  walkInlineFragment(selection) {
73693
73708
  const key = selection.typeCondition.name.value;
@@ -79224,8 +79239,8 @@ async function updatePackageJSON(targetPath) {
79224
79239
  }
79225
79240
  packageJSON.devDependencies = {
79226
79241
  ...packageJSON.devDependencies,
79227
- houdini: "^1.1.0",
79228
- "houdini-svelte": "^1.1.0"
79242
+ houdini: "^1.1.1-next.0",
79243
+ "houdini-svelte": "^1.1.1-next.0"
79229
79244
  };
79230
79245
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
79231
79246
  }
@@ -57234,9 +57234,10 @@ var FieldCollection = class {
57234
57234
  for (const subselect of selection.selectionSet?.selections || []) {
57235
57235
  this.fields[key].selection.add(subselect);
57236
57236
  }
57237
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
57238
- selection.selectionSet?.selections ?? []
57239
- );
57237
+ this.fields[key].selection.fragmentSpreads = {
57238
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
57239
+ ...this.fields[key].selection.fragmentSpreads
57240
+ };
57240
57241
  return;
57241
57242
  }
57242
57243
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -57325,12 +57326,26 @@ var FieldCollection = class {
57325
57326
  return [fragment2.astNode];
57326
57327
  }).concat(
57327
57328
  Object.values(this.fields).map((field) => {
57328
- if (field.astNode.selectionSet) {
57329
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
57330
- }
57331
- return field.astNode;
57329
+ return {
57330
+ ...field.astNode,
57331
+ selectionSet: field.astNode.selectionSet ? {
57332
+ kind: "SelectionSet",
57333
+ selections: field.selection.toSelectionSet()
57334
+ } : void 0
57335
+ };
57332
57336
  })
57333
- ).concat(Object.values(this.fragmentSpreads));
57337
+ ).concat(
57338
+ Object.values(this.fragmentSpreads).map((spread) => {
57339
+ return {
57340
+ kind: "FragmentSpread",
57341
+ name: {
57342
+ kind: "Name",
57343
+ value: spread.name.value
57344
+ },
57345
+ directives: spread.directives
57346
+ };
57347
+ })
57348
+ );
57334
57349
  }
57335
57350
  walkInlineFragment(selection) {
57336
57351
  const key = selection.typeCondition.name.value;
@@ -57232,9 +57232,10 @@ var FieldCollection = class {
57232
57232
  for (const subselect of selection.selectionSet?.selections || []) {
57233
57233
  this.fields[key].selection.add(subselect);
57234
57234
  }
57235
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
57236
- selection.selectionSet?.selections ?? []
57237
- );
57235
+ this.fields[key].selection.fragmentSpreads = {
57236
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
57237
+ ...this.fields[key].selection.fragmentSpreads
57238
+ };
57238
57239
  return;
57239
57240
  }
57240
57241
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -57323,12 +57324,26 @@ var FieldCollection = class {
57323
57324
  return [fragment2.astNode];
57324
57325
  }).concat(
57325
57326
  Object.values(this.fields).map((field) => {
57326
- if (field.astNode.selectionSet) {
57327
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
57328
- }
57329
- return field.astNode;
57327
+ return {
57328
+ ...field.astNode,
57329
+ selectionSet: field.astNode.selectionSet ? {
57330
+ kind: "SelectionSet",
57331
+ selections: field.selection.toSelectionSet()
57332
+ } : void 0
57333
+ };
57330
57334
  })
57331
- ).concat(Object.values(this.fragmentSpreads));
57335
+ ).concat(
57336
+ Object.values(this.fragmentSpreads).map((spread) => {
57337
+ return {
57338
+ kind: "FragmentSpread",
57339
+ name: {
57340
+ kind: "Name",
57341
+ value: spread.name.value
57342
+ },
57343
+ directives: spread.directives
57344
+ };
57345
+ })
57346
+ );
57332
57347
  }
57333
57348
  walkInlineFragment(selection) {
57334
57349
  const key = selection.typeCondition.name.value;
@@ -57609,9 +57609,10 @@ var FieldCollection = class {
57609
57609
  for (const subselect of selection.selectionSet?.selections || []) {
57610
57610
  this.fields[key].selection.add(subselect);
57611
57611
  }
57612
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
57613
- selection.selectionSet?.selections ?? []
57614
- );
57612
+ this.fields[key].selection.fragmentSpreads = {
57613
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
57614
+ ...this.fields[key].selection.fragmentSpreads
57615
+ };
57615
57616
  return;
57616
57617
  }
57617
57618
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -57700,12 +57701,26 @@ var FieldCollection = class {
57700
57701
  return [fragment2.astNode];
57701
57702
  }).concat(
57702
57703
  Object.values(this.fields).map((field) => {
57703
- if (field.astNode.selectionSet) {
57704
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
57705
- }
57706
- return field.astNode;
57704
+ return {
57705
+ ...field.astNode,
57706
+ selectionSet: field.astNode.selectionSet ? {
57707
+ kind: "SelectionSet",
57708
+ selections: field.selection.toSelectionSet()
57709
+ } : void 0
57710
+ };
57707
57711
  })
57708
- ).concat(Object.values(this.fragmentSpreads));
57712
+ ).concat(
57713
+ Object.values(this.fragmentSpreads).map((spread) => {
57714
+ return {
57715
+ kind: "FragmentSpread",
57716
+ name: {
57717
+ kind: "Name",
57718
+ value: spread.name.value
57719
+ },
57720
+ directives: spread.directives
57721
+ };
57722
+ })
57723
+ );
57709
57724
  }
57710
57725
  walkInlineFragment(selection) {
57711
57726
  const key = selection.typeCondition.name.value;
@@ -57604,9 +57604,10 @@ var FieldCollection = class {
57604
57604
  for (const subselect of selection.selectionSet?.selections || []) {
57605
57605
  this.fields[key].selection.add(subselect);
57606
57606
  }
57607
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
57608
- selection.selectionSet?.selections ?? []
57609
- );
57607
+ this.fields[key].selection.fragmentSpreads = {
57608
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
57609
+ ...this.fields[key].selection.fragmentSpreads
57610
+ };
57610
57611
  return;
57611
57612
  }
57612
57613
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -57695,12 +57696,26 @@ var FieldCollection = class {
57695
57696
  return [fragment2.astNode];
57696
57697
  }).concat(
57697
57698
  Object.values(this.fields).map((field) => {
57698
- if (field.astNode.selectionSet) {
57699
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
57700
- }
57701
- return field.astNode;
57699
+ return {
57700
+ ...field.astNode,
57701
+ selectionSet: field.astNode.selectionSet ? {
57702
+ kind: "SelectionSet",
57703
+ selections: field.selection.toSelectionSet()
57704
+ } : void 0
57705
+ };
57702
57706
  })
57703
- ).concat(Object.values(this.fragmentSpreads));
57707
+ ).concat(
57708
+ Object.values(this.fragmentSpreads).map((spread) => {
57709
+ return {
57710
+ kind: "FragmentSpread",
57711
+ name: {
57712
+ kind: "Name",
57713
+ value: spread.name.value
57714
+ },
57715
+ directives: spread.directives
57716
+ };
57717
+ })
57718
+ );
57704
57719
  }
57705
57720
  walkInlineFragment(selection) {
57706
57721
  const key = selection.typeCondition.name.value;
@@ -70393,9 +70393,10 @@ var FieldCollection = class {
70393
70393
  for (const subselect of selection.selectionSet?.selections || []) {
70394
70394
  this.fields[key].selection.add(subselect);
70395
70395
  }
70396
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
70397
- selection.selectionSet?.selections ?? []
70398
- );
70396
+ this.fields[key].selection.fragmentSpreads = {
70397
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
70398
+ ...this.fields[key].selection.fragmentSpreads
70399
+ };
70399
70400
  return;
70400
70401
  }
70401
70402
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -70484,12 +70485,26 @@ var FieldCollection = class {
70484
70485
  return [fragment2.astNode];
70485
70486
  }).concat(
70486
70487
  Object.values(this.fields).map((field) => {
70487
- if (field.astNode.selectionSet) {
70488
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
70489
- }
70490
- return field.astNode;
70488
+ return {
70489
+ ...field.astNode,
70490
+ selectionSet: field.astNode.selectionSet ? {
70491
+ kind: "SelectionSet",
70492
+ selections: field.selection.toSelectionSet()
70493
+ } : void 0
70494
+ };
70491
70495
  })
70492
- ).concat(Object.values(this.fragmentSpreads));
70496
+ ).concat(
70497
+ Object.values(this.fragmentSpreads).map((spread) => {
70498
+ return {
70499
+ kind: "FragmentSpread",
70500
+ name: {
70501
+ kind: "Name",
70502
+ value: spread.name.value
70503
+ },
70504
+ directives: spread.directives
70505
+ };
70506
+ })
70507
+ );
70493
70508
  }
70494
70509
  walkInlineFragment(selection) {
70495
70510
  const key = selection.typeCondition.name.value;
@@ -70387,9 +70387,10 @@ var FieldCollection = class {
70387
70387
  for (const subselect of selection.selectionSet?.selections || []) {
70388
70388
  this.fields[key].selection.add(subselect);
70389
70389
  }
70390
- this.fields[key].selection.fragmentSpreads = this.collectFragmentSpreads(
70391
- selection.selectionSet?.selections ?? []
70392
- );
70390
+ this.fields[key].selection.fragmentSpreads = {
70391
+ ...this.collectFragmentSpreads(selection.selectionSet?.selections ?? []),
70392
+ ...this.fields[key].selection.fragmentSpreads
70393
+ };
70393
70394
  return;
70394
70395
  }
70395
70396
  if (selection.kind === "InlineFragment" && !selection.typeCondition) {
@@ -70478,12 +70479,26 @@ var FieldCollection = class {
70478
70479
  return [fragment2.astNode];
70479
70480
  }).concat(
70480
70481
  Object.values(this.fields).map((field) => {
70481
- if (field.astNode.selectionSet) {
70482
- field.astNode.selectionSet.selections = field.selection.toSelectionSet();
70483
- }
70484
- return field.astNode;
70482
+ return {
70483
+ ...field.astNode,
70484
+ selectionSet: field.astNode.selectionSet ? {
70485
+ kind: "SelectionSet",
70486
+ selections: field.selection.toSelectionSet()
70487
+ } : void 0
70488
+ };
70485
70489
  })
70486
- ).concat(Object.values(this.fragmentSpreads));
70490
+ ).concat(
70491
+ Object.values(this.fragmentSpreads).map((spread) => {
70492
+ return {
70493
+ kind: "FragmentSpread",
70494
+ name: {
70495
+ kind: "Name",
70496
+ value: spread.name.value
70497
+ },
70498
+ directives: spread.directives
70499
+ };
70500
+ })
70501
+ );
70487
70502
  }
70488
70503
  walkInlineFragment(selection) {
70489
70504
  const key = selection.typeCondition.name.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.1.0",
3
+ "version": "1.1.1-next.0",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",