houdini 1.0.0-next.5 → 1.0.0-next.6

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.
Files changed (36) hide show
  1. package/build/cmd-cjs/index.js +130 -121
  2. package/build/cmd-esm/index.js +130 -121
  3. package/build/codegen/generators/artifacts/index.d.ts +2 -2
  4. package/build/codegen/generators/artifacts/indexFile.d.ts +2 -2
  5. package/build/codegen/generators/artifacts/selection.d.ts +2 -2
  6. package/build/codegen/generators/indexFile/index.d.ts +2 -2
  7. package/build/codegen/generators/persistedQueries/index.d.ts +2 -2
  8. package/build/codegen/generators/runtime/graphqlFunction.d.ts +2 -2
  9. package/build/codegen/generators/runtime/index.d.ts +2 -2
  10. package/build/codegen/generators/typescript/documentTypes.d.ts +2 -2
  11. package/build/codegen/generators/typescript/imperativeTypeDef.d.ts +2 -2
  12. package/build/codegen/generators/typescript/index.d.ts +2 -2
  13. package/build/codegen/index.d.ts +2 -2
  14. package/build/codegen/transforms/addID.d.ts +2 -2
  15. package/build/codegen/transforms/composeQueries.d.ts +4 -4
  16. package/build/codegen/transforms/fragmentVariables.d.ts +2 -2
  17. package/build/codegen/transforms/list.d.ts +2 -2
  18. package/build/codegen/transforms/paginate.d.ts +2 -2
  19. package/build/codegen/transforms/schema.d.ts +2 -2
  20. package/build/codegen/transforms/typename.d.ts +2 -2
  21. package/build/codegen/validators/noIDAlias.d.ts +2 -2
  22. package/build/codegen/validators/plugins.d.ts +2 -2
  23. package/build/codegen/validators/typeCheck.d.ts +2 -2
  24. package/build/codegen/validators/uniqueNames.d.ts +2 -2
  25. package/build/codegen-cjs/index.js +127 -118
  26. package/build/codegen-esm/index.js +127 -118
  27. package/build/lib/graphql.d.ts +2 -2
  28. package/build/lib/types.d.ts +35 -35
  29. package/build/lib-cjs/index.js +1 -1
  30. package/build/lib-esm/index.js +1 -1
  31. package/build/test/index.d.ts +3 -3
  32. package/build/test-cjs/index.js +125 -116
  33. package/build/test-esm/index.js +125 -116
  34. package/build/vite-cjs/index.js +130 -121
  35. package/build/vite-esm/index.js +130 -121
  36. package/package.json +1 -1
@@ -70504,7 +70504,7 @@ async function getConfig({
70504
70504
  }
70505
70505
  }
70506
70506
  _config.plugins = orderedPlugins(plugins);
70507
- await Promise.all(_config.plugins.map((plugin2) => plugin2.after_load?.({ config: _config })));
70507
+ await Promise.all(_config.plugins.map((plugin2) => plugin2.afterLoad?.({ config: _config })));
70508
70508
  resolve2(_config);
70509
70509
  return _config;
70510
70510
  } catch (e2) {
@@ -71424,7 +71424,7 @@ async function fragmentVariables(config2, documents) {
71424
71424
  name: "generated::fragmentVariables",
71425
71425
  kind: "HoudiniFragment" /* Fragment */,
71426
71426
  document: doc,
71427
- originalDocument: doc,
71427
+ originalParsed: doc,
71428
71428
  generateStore: false,
71429
71429
  generateArtifact: false,
71430
71430
  filename: "generated::fragmentVariables",
@@ -72347,7 +72347,7 @@ async function paginate(config2, documents) {
72347
72347
  filename: doc.filename,
72348
72348
  name: refetchQueryName,
72349
72349
  document: queryDoc,
72350
- originalDocument: queryDoc,
72350
+ originalParsed: queryDoc,
72351
72351
  generateArtifact: true,
72352
72352
  generateStore: false,
72353
72353
  refetch: doc.refetch,
@@ -72767,7 +72767,7 @@ async function addListFragments(config2, documents) {
72767
72767
  generateArtifact: false,
72768
72768
  generateStore: false,
72769
72769
  document: generatedDoc,
72770
- originalDocument: generatedDoc,
72770
+ originalParsed: generatedDoc,
72771
72771
  filename: "generated::lists",
72772
72772
  originalString: "",
72773
72773
  artifact: null
@@ -73295,11 +73295,11 @@ function artifactGenerator(stats) {
73295
73295
  };
73296
73296
  const plugin_data = config2.plugins.reduce(
73297
73297
  (prev, plugin2) => {
73298
- if (!plugin2.artifact_data) {
73298
+ if (!plugin2.artifactData) {
73299
73299
  return prev;
73300
73300
  }
73301
73301
  const result = { ...prev };
73302
- const dataToAdd = plugin2.artifact_data({ config: config2, document: doc }) ?? {};
73302
+ const dataToAdd = plugin2.artifactData({ config: config2, document: doc }) ?? {};
73303
73303
  if (Object.keys(dataToAdd).length > 0) {
73304
73304
  result[plugin2.name] = dataToAdd;
73305
73305
  }
@@ -73344,10 +73344,10 @@ function artifactGenerator(stats) {
73344
73344
  }
73345
73345
  doc.artifact = artifact;
73346
73346
  for (const plugin2 of config2.plugins) {
73347
- if (!plugin2.artifact_end) {
73347
+ if (!plugin2.artifactEnd) {
73348
73348
  continue;
73349
73349
  }
73350
- plugin2.artifact_end({ config: config2, document: doc });
73350
+ plugin2.artifactEnd({ config: config2, document: doc });
73351
73351
  }
73352
73352
  const file = AST5.program([
73353
73353
  moduleExport(config2, "default", serializeValue(artifact)),
@@ -73387,18 +73387,18 @@ async function generateGraphqlReturnTypes(config2, docs) {
73387
73387
  const indexPath = path_exports.join(config2.runtimeDirectory, "index.d.ts");
73388
73388
  const fileContent = await fs_exports.readFile(indexPath) || "";
73389
73389
  const contents = await parseJS(fileContent);
73390
- const graphql_tag_return = config2.plugins.find(
73391
- (plugin2) => plugin2.graphql_tag_return
73392
- )?.graphql_tag_return;
73393
- if (!graphql_tag_return || !contents) {
73390
+ const graphqlTagReturn = config2.plugins.find(
73391
+ (plugin2) => plugin2.graphqlTagReturn
73392
+ )?.graphqlTagReturn;
73393
+ if (!graphqlTagReturn || !contents) {
73394
73394
  return fileContent;
73395
73395
  }
73396
73396
  const overloaded_returns = {};
73397
73397
  for (const doc of docs) {
73398
- const return_value = graphql_tag_return({
73398
+ const return_value = graphqlTagReturn({
73399
73399
  config: config2,
73400
73400
  document: doc,
73401
- ensure_import({ identifier, module: module2 }) {
73401
+ ensureImport({ identifier, module: module2 }) {
73402
73402
  ensureImports({
73403
73403
  config: config2,
73404
73404
  body: contents.script.body,
@@ -73446,18 +73446,18 @@ async function injectPlugins({
73446
73446
  importStatement,
73447
73447
  exportStatement
73448
73448
  }) {
73449
- const client_plugins = config2.plugins.filter((plugin2) => plugin2.client_plugins).reduce((acc, plugin2) => {
73450
- let plugins = plugin2.client_plugins;
73449
+ const clientPlugins = config2.plugins.filter((plugin2) => plugin2.clientPlugins).reduce((acc, plugin2) => {
73450
+ let plugins = plugin2.clientPlugins;
73451
73451
  if (typeof plugins === "function") {
73452
73452
  plugins = plugins(config2, config2.pluginConfig(plugin2.name));
73453
73453
  }
73454
73454
  return [...acc, ...Object.entries(plugins)];
73455
73455
  }, []);
73456
- return client_plugins.length > 0 ? `
73457
- ${client_plugins.map((plugin2, i2) => importStatement(plugin2[0], `plugin${i2}`))}
73456
+ return clientPlugins.length > 0 ? `
73457
+ ${clientPlugins.map((plugin2, i2) => importStatement(plugin2[0], `plugin${i2}`))}
73458
73458
 
73459
73459
  const plugins = [
73460
- ${client_plugins.map((plugin2, i2) => {
73460
+ ${clientPlugins.map((plugin2, i2) => {
73461
73461
  const suffix = `(${JSON.stringify(plugin2[1])})`;
73462
73462
  return `plugin${i2}${suffix}`;
73463
73463
  }).join(",\n")}
@@ -73501,18 +73501,18 @@ ${exportStatement("config")}
73501
73501
  },
73502
73502
  [path_exports.join(config2.runtimeSource, "client", "plugins", "injectedPlugins.js")]: (content) => injectPlugins({ config: config2, content, importStatement, exportStatement })
73503
73503
  }),
73504
- ...config2.plugins.filter((plugin2) => plugin2.include_runtime).map((plugin2) => generatePluginRuntime(config2, plugin2)),
73504
+ ...config2.plugins.filter((plugin2) => plugin2.includeRuntime).map((plugin2) => generatePluginRuntime(config2, plugin2)),
73505
73505
  generatePluginIndex({ config: config2, exportStatement: exportStar })
73506
73506
  ]);
73507
73507
  await generateGraphqlReturnTypes(config2, docs);
73508
73508
  }
73509
73509
  async function generatePluginRuntime(config2, plugin2) {
73510
- if (houdini_mode.is_testing || !plugin2.include_runtime) {
73510
+ if (houdini_mode.is_testing || !plugin2.includeRuntime) {
73511
73511
  return;
73512
73512
  }
73513
73513
  const runtime_path = path_exports.join(
73514
73514
  path_exports.dirname(plugin2.filepath),
73515
- typeof plugin2.include_runtime === "string" ? plugin2.include_runtime : plugin2.include_runtime[config2.module]
73515
+ typeof plugin2.includeRuntime === "string" ? plugin2.includeRuntime : plugin2.includeRuntime[config2.module]
73516
73516
  );
73517
73517
  try {
73518
73518
  await fs_exports.stat(runtime_path);
@@ -73528,7 +73528,7 @@ async function generatePluginRuntime(config2, plugin2) {
73528
73528
  runtime_path,
73529
73529
  pluginDir,
73530
73530
  Object.fromEntries(
73531
- Object.entries(plugin2.transform_runtime ?? {}).map(([key, value]) => [
73531
+ Object.entries(plugin2.transformRuntime ?? {}).map(([key, value]) => [
73532
73532
  path_exports.join(runtime_path, key),
73533
73533
  (content) => value({ config: config2, content })
73534
73534
  ])
@@ -73922,7 +73922,7 @@ async function generateDocumentTypes(config2, docs) {
73922
73922
  const typePaths = [];
73923
73923
  const fragmentDefinitions = {};
73924
73924
  for (const document of docs) {
73925
- for (const defn of document.originalDocument.definitions.filter(
73925
+ for (const defn of document.originalParsed.definitions.filter(
73926
73926
  ({ kind }) => kind === "FragmentDefinition"
73927
73927
  )) {
73928
73928
  fragmentDefinitions[defn.name.value] = defn;
@@ -73930,47 +73930,54 @@ async function generateDocumentTypes(config2, docs) {
73930
73930
  }
73931
73931
  const missingScalars = /* @__PURE__ */ new Set();
73932
73932
  await Promise.all(
73933
- docs.map(async ({ originalDocument, name, filename, generateArtifact }) => {
73934
- if (!generateArtifact) {
73935
- return;
73936
- }
73937
- const typeDefPath = config2.artifactTypePath(originalDocument);
73938
- const program3 = AST11.program([]);
73939
- const visitedTypes = /* @__PURE__ */ new Set();
73940
- let definition = originalDocument.definitions.find(
73941
- (def) => (def.kind === "OperationDefinition" || def.kind === "FragmentDefinition") && def.name?.value === name
73942
- );
73943
- const selections = flattenSelections({
73944
- config: config2,
73945
- filepath: filename,
73946
- selections: definition.selectionSet.selections,
73947
- fragmentDefinitions,
73948
- applyFragments: definition.kind === "OperationDefinition"
73949
- });
73950
- if (definition?.kind === "OperationDefinition") {
73951
- await generateOperationTypeDefs(
73952
- config2,
73953
- filename,
73954
- program3.body,
73955
- definition,
73956
- selections,
73957
- visitedTypes,
73958
- missingScalars
73959
- );
73960
- } else {
73961
- await generateFragmentTypeDefs(
73962
- config2,
73963
- filename,
73964
- program3.body,
73965
- selections,
73966
- originalDocument.definitions,
73967
- visitedTypes,
73968
- missingScalars
73933
+ docs.map(
73934
+ async ({
73935
+ originalParsed: originalDocument,
73936
+ name,
73937
+ filename,
73938
+ generateArtifact
73939
+ }) => {
73940
+ if (!generateArtifact) {
73941
+ return;
73942
+ }
73943
+ const typeDefPath = config2.artifactTypePath(originalDocument);
73944
+ const program3 = AST11.program([]);
73945
+ const visitedTypes = /* @__PURE__ */ new Set();
73946
+ let definition = originalDocument.definitions.find(
73947
+ (def) => (def.kind === "OperationDefinition" || def.kind === "FragmentDefinition") && def.name?.value === name
73969
73948
  );
73949
+ const selections = flattenSelections({
73950
+ config: config2,
73951
+ filepath: filename,
73952
+ selections: definition.selectionSet.selections,
73953
+ fragmentDefinitions,
73954
+ applyFragments: definition.kind === "OperationDefinition"
73955
+ });
73956
+ if (definition?.kind === "OperationDefinition") {
73957
+ await generateOperationTypeDefs(
73958
+ config2,
73959
+ filename,
73960
+ program3.body,
73961
+ definition,
73962
+ selections,
73963
+ visitedTypes,
73964
+ missingScalars
73965
+ );
73966
+ } else {
73967
+ await generateFragmentTypeDefs(
73968
+ config2,
73969
+ filename,
73970
+ program3.body,
73971
+ selections,
73972
+ originalDocument.definitions,
73973
+ visitedTypes,
73974
+ missingScalars
73975
+ );
73976
+ }
73977
+ await fs_exports.writeFile(typeDefPath, recast11.print(program3).code);
73978
+ typePaths.push(typeDefPath);
73970
73979
  }
73971
- await fs_exports.writeFile(typeDefPath, recast11.print(program3).code);
73972
- typePaths.push(typeDefPath);
73973
- })
73980
+ )
73974
73981
  );
73975
73982
  const typeIndex = AST11.program(
73976
73983
  typePaths.sort((a, b) => a.localeCompare(b)).map((typePath) => {
@@ -73985,28 +73992,28 @@ async function generateDocumentTypes(config2, docs) {
73985
73992
  AST11.exportAllDeclaration(AST11.literal("./graphql"), null)
73986
73993
  ])
73987
73994
  );
73988
- const export_default_as = ({ module: module2, as }) => `
73995
+ const exportDefaultAs = ({ module: module2, as }) => `
73989
73996
  export { default as ${as} } from "${module2}"
73990
73997
  `;
73991
- const export_star_from = ({ module: module2 }) => `
73998
+ const exportStarFrom2 = ({ module: module2 }) => `
73992
73999
  export * from "${module2}"
73993
74000
  `;
73994
74001
  let indexContent = recast11.print(typeIndex).code;
73995
74002
  for (const plugin2 of config2.plugins) {
73996
- if (!plugin2.index_file) {
74003
+ if (!plugin2.indexFile) {
73997
74004
  continue;
73998
74005
  }
73999
- indexContent = plugin2.index_file({
74006
+ indexContent = plugin2.indexFile({
74000
74007
  config: config2,
74001
74008
  content: indexContent,
74002
- export_default_as,
74003
- export_star_from,
74004
- plugin_root: config2.pluginDirectory(plugin2.name),
74009
+ exportDefaultAs,
74010
+ exportStarFrom: exportStarFrom2,
74011
+ pluginRoot: config2.pluginDirectory(plugin2.name),
74005
74012
  typedef: true,
74006
74013
  documents: docs
74007
74014
  });
74008
- if (plugin2.include_runtime) {
74009
- indexContent += export_star_from({
74015
+ if (plugin2.includeRuntime) {
74016
+ indexContent += exportStarFrom2({
74010
74017
  module: "./" + path_exports.relative(config2.rootDir, config2.pluginRuntimeDirectory(plugin2.name))
74011
74018
  });
74012
74019
  }
@@ -74253,10 +74260,10 @@ var graphql19 = __toESM(require_graphql2(), 1);
74253
74260
  var recast12 = __toESM(require_main2(), 1);
74254
74261
  var AST12 = recast12.types.builders;
74255
74262
  async function imperativeCacheTypef(config2, docs) {
74256
- const returnType = (doc) => config2.plugins.find((plugin2) => plugin2.graphql_tag_return)?.graphql_tag_return?.({
74263
+ const returnType = (doc) => config2.plugins.find((plugin2) => plugin2.graphqlTagReturn)?.graphqlTagReturn?.({
74257
74264
  config: config2,
74258
74265
  document: doc,
74259
- ensure_import({ identifier, module: module2 }) {
74266
+ ensureImport({ identifier, module: module2 }) {
74260
74267
  ensureImports({
74261
74268
  config: config2,
74262
74269
  body,
@@ -74627,27 +74634,30 @@ async function persistOutputGenerator(config2, docs) {
74627
74634
  console.log("Can only write the queryMap to a json file");
74628
74635
  return;
74629
74636
  }
74630
- const queryMap = docs.reduce((acc, { document, generateArtifact }) => {
74631
- if (!generateArtifact) {
74632
- return acc;
74633
- }
74634
- let rawString = graphql20.print(
74635
- graphql20.visit(document, {
74636
- Directive(node) {
74637
- if (config2.isInternalDirective(node.name.value)) {
74638
- return null;
74637
+ const queryMap = docs.reduce(
74638
+ (acc, { document, generateArtifact }) => {
74639
+ if (!generateArtifact) {
74640
+ return acc;
74641
+ }
74642
+ let rawString = graphql20.print(
74643
+ graphql20.visit(document, {
74644
+ Directive(node) {
74645
+ if (config2.isInternalDirective(node.name.value)) {
74646
+ return null;
74647
+ }
74639
74648
  }
74640
- }
74641
- })
74642
- );
74643
- const operations = document.definitions.filter(
74644
- ({ kind }) => kind === graphql20.Kind.OPERATION_DEFINITION
74645
- );
74646
- if (operations.length > 0 && operations[0].kind === "OperationDefinition") {
74647
- acc[hashDocument({ config: config2, document: rawString })] = rawString;
74648
- }
74649
- return acc;
74650
- }, {});
74649
+ })
74650
+ );
74651
+ const operations = document.definitions.filter(
74652
+ ({ kind }) => kind === graphql20.Kind.OPERATION_DEFINITION
74653
+ );
74654
+ if (operations.length > 0 && operations[0].kind === "OperationDefinition") {
74655
+ acc[hashDocument({ config: config2, document: rawString })] = rawString;
74656
+ }
74657
+ return acc;
74658
+ },
74659
+ {}
74660
+ );
74651
74661
  if (Object.keys(queryMap).length === 0)
74652
74662
  return;
74653
74663
  await fs_exports.writeFile(config2.persistedQueryPath, JSON.stringify(queryMap, null, 4));
@@ -74716,32 +74726,32 @@ async function writeIndexFile2(config2, docs) {
74716
74726
  const definitionsDir = relative2(config2.definitionsDirectory);
74717
74727
  const cjs = config2.module === "commonjs";
74718
74728
  let body = cjs ? cjsIndexFilePreamble : "";
74719
- const export_star_from = ({ module: module2 }) => "\n" + (cjs ? exportStarFrom(module2) : `export * from "${module2}"`) + "\n";
74720
- const export_default_as = ({ module: module2, as }) => "\n" + (cjs ? exportDefaultFrom(module2, as) : `export { default as ${as} } from "${module2}"`) + "\n";
74729
+ const exportStar = ({ module: module2 }) => "\n" + (cjs ? exportStarFrom(module2) : `export * from "${module2}"`) + "\n";
74730
+ const exportDefaultAs = ({ module: module2, as }) => "\n" + (cjs ? exportDefaultFrom(module2, as) : `export { default as ${as} } from "${module2}"`) + "\n";
74721
74731
  body += [
74722
- export_star_from({ module: "./" + path_exports.join(runtimeDir, "client") }),
74723
- export_star_from({ module: runtimeDir }),
74724
- export_star_from({ module: artifactDir }),
74725
- export_star_from({ module: definitionsDir })
74732
+ exportStar({ module: "./" + path_exports.join(runtimeDir, "client") }),
74733
+ exportStar({ module: runtimeDir }),
74734
+ exportStar({ module: artifactDir }),
74735
+ exportStar({ module: definitionsDir })
74726
74736
  ].join("");
74727
74737
  for (const plugin2 of config2.plugins) {
74728
- if (plugin2.index_file) {
74729
- body = plugin2.index_file({
74738
+ if (plugin2.indexFile) {
74739
+ body = plugin2.indexFile({
74730
74740
  config: config2,
74731
74741
  content: body,
74732
- export_default_as,
74733
- export_star_from,
74734
- plugin_root: config2.pluginDirectory(plugin2.name),
74742
+ exportDefaultAs,
74743
+ exportStarFrom: exportStar,
74744
+ pluginRoot: config2.pluginDirectory(plugin2.name),
74735
74745
  typedef: false,
74736
74746
  documents: docs
74737
74747
  });
74738
74748
  }
74739
- if (plugin2.include_runtime) {
74740
- body += export_star_from({
74749
+ if (plugin2.includeRuntime) {
74750
+ body += exportStar({
74741
74751
  module: relative2(config2.pluginRuntimeDirectory(plugin2.name))
74742
74752
  });
74743
74753
  }
74744
- if (!plugin2.index_file) {
74754
+ if (!plugin2.indexFile) {
74745
74755
  continue;
74746
74756
  }
74747
74757
  }
@@ -75789,10 +75799,10 @@ async function runPipeline2(config2, docs) {
75789
75799
  deleted: []
75790
75800
  };
75791
75801
  const generatePlugins = config2.plugins.filter((plugin2) => plugin2.generate);
75792
- const after_validate = config2.plugins.filter((plugin2) => plugin2.after_validate).map((plugin2) => plugin2.after_validate);
75802
+ const afterValidate = config2.plugins.filter((plugin2) => plugin2.afterValidate).map((plugin2) => plugin2.afterValidate);
75793
75803
  const validate2 = config2.plugins.filter((plugin2) => plugin2.validate).map((plugin2) => plugin2.validate);
75794
- const before_validate = config2.plugins.filter((plugin2) => plugin2.before_validate).map((plugin2) => plugin2.before_validate);
75795
- const transform_before_generate = config2.plugins.filter((plugin2) => plugin2.transform_before_generate).map((plugin2) => plugin2.transform_before_generate);
75804
+ const beforeValidate = config2.plugins.filter((plugin2) => plugin2.beforeValidate).map((plugin2) => plugin2.beforeValidate);
75805
+ const beforeGenerate = config2.plugins.filter((plugin2) => plugin2.beforeGenerate).map((plugin2) => plugin2.beforeGenerate);
75796
75806
  const wrapHook = (hooks) => hooks.map(
75797
75807
  (fn) => (config3, docs2) => fn({
75798
75808
  config: config3,
@@ -75805,20 +75815,20 @@ async function runPipeline2(config2, docs) {
75805
75815
  config2,
75806
75816
  [
75807
75817
  graphqlExtensions,
75808
- ...wrapHook(before_validate),
75818
+ ...wrapHook(beforeValidate),
75809
75819
  typeCheck,
75810
75820
  uniqueDocumentNames,
75811
75821
  noIDAlias,
75812
75822
  validatePlugins,
75813
75823
  ...wrapHook(validate2),
75814
- ...wrapHook(after_validate),
75824
+ ...wrapHook(afterValidate),
75815
75825
  addID,
75816
75826
  addTypename,
75817
75827
  addListFragments,
75818
75828
  paginate,
75819
75829
  fragmentVariables,
75820
75830
  includeFragmentDefinitions,
75821
- ...wrapHook(transform_before_generate),
75831
+ ...wrapHook(beforeGenerate),
75822
75832
  artifactGenerator(artifactStats),
75823
75833
  runtimeGenerator,
75824
75834
  writeIndexFile2,
@@ -75829,14 +75839,13 @@ async function runPipeline2(config2, docs) {
75829
75839
  (plugin2) => async (config3, docs2) => await plugin2.generate({
75830
75840
  config: config3,
75831
75841
  documents: docs2,
75832
- plugin_root: config3.pluginDirectory(plugin2.name)
75842
+ pluginRoot: config3.pluginDirectory(plugin2.name)
75833
75843
  })
75834
75844
  )
75835
75845
  ],
75836
75846
  docs
75837
75847
  );
75838
75848
  } catch (e2) {
75839
- console.log(e2);
75840
75849
  error = e2;
75841
75850
  }
75842
75851
  const unchanged = artifactStats.total.length - artifactStats.changed.length - artifactStats.new.length - artifactStats.deleted.length;
@@ -75886,9 +75895,9 @@ async function collectDocuments(config2) {
75886
75895
  ".ts": []
75887
75896
  };
75888
75897
  for (const plugin2 of config2.plugins) {
75889
- if (plugin2.extensions && plugin2.extract_documents) {
75898
+ if (plugin2.extensions && plugin2.extractDocuments) {
75890
75899
  for (const extension of plugin2.extensions) {
75891
- extractors[extension] = [...extractors[extension] || [], plugin2.extract_documents];
75900
+ extractors[extension] = [...extractors[extension] || [], plugin2.extractDocuments];
75892
75901
  }
75893
75902
  }
75894
75903
  }
@@ -75987,7 +75996,7 @@ async function processGraphQLDocument(config2, filepath, document) {
75987
75996
  kind,
75988
75997
  document: parsedDoc,
75989
75998
  filename: filepath,
75990
- originalDocument: parsedDoc,
75999
+ originalParsed: parsedDoc,
75991
76000
  generateArtifact: true,
75992
76001
  generateStore: true,
75993
76002
  originalString: document,
@@ -76471,8 +76480,8 @@ async function updatePackageJSON(targetPath) {
76471
76480
  }
76472
76481
  packageJSON.devDependencies = {
76473
76482
  ...packageJSON.devDependencies,
76474
- houdini: "^1.0.0-next.5",
76475
- "houdini-svelte": "^1.0.0-next.5"
76483
+ houdini: "^1.0.0-next.6",
76484
+ "houdini-svelte": "^1.0.0-next.6"
76476
76485
  };
76477
76486
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
76478
76487
  }