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
@@ -63789,7 +63789,7 @@ async function getConfig({
63789
63789
  }
63790
63790
  }
63791
63791
  _config.plugins = orderedPlugins(plugins);
63792
- await Promise.all(_config.plugins.map((plugin2) => plugin2.after_load?.({ config: _config })));
63792
+ await Promise.all(_config.plugins.map((plugin2) => plugin2.afterLoad?.({ config: _config })));
63793
63793
  resolve2(_config);
63794
63794
  return _config;
63795
63795
  } catch (e2) {
@@ -63744,7 +63744,7 @@ async function getConfig({
63744
63744
  }
63745
63745
  }
63746
63746
  _config.plugins = orderedPlugins(plugins);
63747
- await Promise.all(_config.plugins.map((plugin2) => plugin2.after_load?.({ config: _config })));
63747
+ await Promise.all(_config.plugins.map((plugin2) => plugin2.afterLoad?.({ config: _config })));
63748
63748
  resolve2(_config);
63749
63749
  return _config;
63750
63750
  } catch (e2) {
@@ -1,4 +1,4 @@
1
- import type { CollectedGraphQLDocument } from '../lib';
1
+ import type { Document } from '../lib';
2
2
  import { Config } from '../lib';
3
3
  import type { ConfigFile } from '../runtime/lib/config';
4
4
  export declare function testConfigFile({ plugins, ...config }?: Partial<ConfigFile>): ConfigFile;
@@ -6,6 +6,6 @@ export declare function testConfig(config?: Partial<ConfigFile>): Config;
6
6
  export type Partial<T> = {
7
7
  [P in keyof T]?: T[P];
8
8
  };
9
- export declare function pipelineTest(config: Config, documents: string[], shouldPass: boolean, testBody?: ((result: Error | Error[]) => void) | ((docs: CollectedGraphQLDocument[]) => void)): () => Promise<void>;
10
- export declare function mockCollectedDoc(query: string): CollectedGraphQLDocument;
9
+ export declare function pipelineTest(config: Config, documents: string[], shouldPass: boolean, testBody?: ((result: Error | Error[]) => void) | ((docs: Document[]) => void)): () => Promise<void>;
10
+ export declare function mockCollectedDoc(query: string): Document;
11
11
  export declare function clearMock(): void;
@@ -55502,7 +55502,7 @@ async function fragmentVariables(config2, documents) {
55502
55502
  name: "generated::fragmentVariables",
55503
55503
  kind: "HoudiniFragment" /* Fragment */,
55504
55504
  document: doc,
55505
- originalDocument: doc,
55505
+ originalParsed: doc,
55506
55506
  generateStore: false,
55507
55507
  generateArtifact: false,
55508
55508
  filename: "generated::fragmentVariables",
@@ -56425,7 +56425,7 @@ async function paginate(config2, documents) {
56425
56425
  filename: doc.filename,
56426
56426
  name: refetchQueryName,
56427
56427
  document: queryDoc,
56428
- originalDocument: queryDoc,
56428
+ originalParsed: queryDoc,
56429
56429
  generateArtifact: true,
56430
56430
  generateStore: false,
56431
56431
  refetch: doc.refetch,
@@ -56845,7 +56845,7 @@ async function addListFragments(config2, documents) {
56845
56845
  generateArtifact: false,
56846
56846
  generateStore: false,
56847
56847
  document: generatedDoc,
56848
- originalDocument: generatedDoc,
56848
+ originalParsed: generatedDoc,
56849
56849
  filename: "generated::lists",
56850
56850
  originalString: "",
56851
56851
  artifact: null
@@ -57373,11 +57373,11 @@ function artifactGenerator(stats) {
57373
57373
  };
57374
57374
  const plugin_data = config2.plugins.reduce(
57375
57375
  (prev, plugin2) => {
57376
- if (!plugin2.artifact_data) {
57376
+ if (!plugin2.artifactData) {
57377
57377
  return prev;
57378
57378
  }
57379
57379
  const result = { ...prev };
57380
- const dataToAdd = plugin2.artifact_data({ config: config2, document: doc }) ?? {};
57380
+ const dataToAdd = plugin2.artifactData({ config: config2, document: doc }) ?? {};
57381
57381
  if (Object.keys(dataToAdd).length > 0) {
57382
57382
  result[plugin2.name] = dataToAdd;
57383
57383
  }
@@ -57422,10 +57422,10 @@ function artifactGenerator(stats) {
57422
57422
  }
57423
57423
  doc.artifact = artifact;
57424
57424
  for (const plugin2 of config2.plugins) {
57425
- if (!plugin2.artifact_end) {
57425
+ if (!plugin2.artifactEnd) {
57426
57426
  continue;
57427
57427
  }
57428
- plugin2.artifact_end({ config: config2, document: doc });
57428
+ plugin2.artifactEnd({ config: config2, document: doc });
57429
57429
  }
57430
57430
  const file = AST5.program([
57431
57431
  moduleExport(config2, "default", serializeValue(artifact)),
@@ -57465,18 +57465,18 @@ async function generateGraphqlReturnTypes(config2, docs) {
57465
57465
  const indexPath = path_exports.join(config2.runtimeDirectory, "index.d.ts");
57466
57466
  const fileContent = await fs_exports.readFile(indexPath) || "";
57467
57467
  const contents = await parseJS(fileContent);
57468
- const graphql_tag_return = config2.plugins.find(
57469
- (plugin2) => plugin2.graphql_tag_return
57470
- )?.graphql_tag_return;
57471
- if (!graphql_tag_return || !contents) {
57468
+ const graphqlTagReturn = config2.plugins.find(
57469
+ (plugin2) => plugin2.graphqlTagReturn
57470
+ )?.graphqlTagReturn;
57471
+ if (!graphqlTagReturn || !contents) {
57472
57472
  return fileContent;
57473
57473
  }
57474
57474
  const overloaded_returns = {};
57475
57475
  for (const doc of docs) {
57476
- const return_value = graphql_tag_return({
57476
+ const return_value = graphqlTagReturn({
57477
57477
  config: config2,
57478
57478
  document: doc,
57479
- ensure_import({ identifier, module: module2 }) {
57479
+ ensureImport({ identifier, module: module2 }) {
57480
57480
  ensureImports({
57481
57481
  config: config2,
57482
57482
  body: contents.script.body,
@@ -57524,18 +57524,18 @@ async function injectPlugins({
57524
57524
  importStatement,
57525
57525
  exportStatement
57526
57526
  }) {
57527
- const client_plugins = config2.plugins.filter((plugin2) => plugin2.client_plugins).reduce((acc, plugin2) => {
57528
- let plugins = plugin2.client_plugins;
57527
+ const clientPlugins = config2.plugins.filter((plugin2) => plugin2.clientPlugins).reduce((acc, plugin2) => {
57528
+ let plugins = plugin2.clientPlugins;
57529
57529
  if (typeof plugins === "function") {
57530
57530
  plugins = plugins(config2, config2.pluginConfig(plugin2.name));
57531
57531
  }
57532
57532
  return [...acc, ...Object.entries(plugins)];
57533
57533
  }, []);
57534
- return client_plugins.length > 0 ? `
57535
- ${client_plugins.map((plugin2, i) => importStatement(plugin2[0], `plugin${i}`))}
57534
+ return clientPlugins.length > 0 ? `
57535
+ ${clientPlugins.map((plugin2, i) => importStatement(plugin2[0], `plugin${i}`))}
57536
57536
 
57537
57537
  const plugins = [
57538
- ${client_plugins.map((plugin2, i) => {
57538
+ ${clientPlugins.map((plugin2, i) => {
57539
57539
  const suffix = `(${JSON.stringify(plugin2[1])})`;
57540
57540
  return `plugin${i}${suffix}`;
57541
57541
  }).join(",\n")}
@@ -57579,18 +57579,18 @@ ${exportStatement("config")}
57579
57579
  },
57580
57580
  [path_exports.join(config2.runtimeSource, "client", "plugins", "injectedPlugins.js")]: (content) => injectPlugins({ config: config2, content, importStatement, exportStatement })
57581
57581
  }),
57582
- ...config2.plugins.filter((plugin2) => plugin2.include_runtime).map((plugin2) => generatePluginRuntime(config2, plugin2)),
57582
+ ...config2.plugins.filter((plugin2) => plugin2.includeRuntime).map((plugin2) => generatePluginRuntime(config2, plugin2)),
57583
57583
  generatePluginIndex({ config: config2, exportStatement: exportStar })
57584
57584
  ]);
57585
57585
  await generateGraphqlReturnTypes(config2, docs);
57586
57586
  }
57587
57587
  async function generatePluginRuntime(config2, plugin2) {
57588
- if (houdini_mode.is_testing || !plugin2.include_runtime) {
57588
+ if (houdini_mode.is_testing || !plugin2.includeRuntime) {
57589
57589
  return;
57590
57590
  }
57591
57591
  const runtime_path = path_exports.join(
57592
57592
  path_exports.dirname(plugin2.filepath),
57593
- typeof plugin2.include_runtime === "string" ? plugin2.include_runtime : plugin2.include_runtime[config2.module]
57593
+ typeof plugin2.includeRuntime === "string" ? plugin2.includeRuntime : plugin2.includeRuntime[config2.module]
57594
57594
  );
57595
57595
  try {
57596
57596
  await fs_exports.stat(runtime_path);
@@ -57606,7 +57606,7 @@ async function generatePluginRuntime(config2, plugin2) {
57606
57606
  runtime_path,
57607
57607
  pluginDir,
57608
57608
  Object.fromEntries(
57609
- Object.entries(plugin2.transform_runtime ?? {}).map(([key, value]) => [
57609
+ Object.entries(plugin2.transformRuntime ?? {}).map(([key, value]) => [
57610
57610
  path_exports.join(runtime_path, key),
57611
57611
  (content) => value({ config: config2, content })
57612
57612
  ])
@@ -58000,7 +58000,7 @@ async function generateDocumentTypes(config2, docs) {
58000
58000
  const typePaths = [];
58001
58001
  const fragmentDefinitions = {};
58002
58002
  for (const document of docs) {
58003
- for (const defn of document.originalDocument.definitions.filter(
58003
+ for (const defn of document.originalParsed.definitions.filter(
58004
58004
  ({ kind }) => kind === "FragmentDefinition"
58005
58005
  )) {
58006
58006
  fragmentDefinitions[defn.name.value] = defn;
@@ -58008,47 +58008,54 @@ async function generateDocumentTypes(config2, docs) {
58008
58008
  }
58009
58009
  const missingScalars = /* @__PURE__ */ new Set();
58010
58010
  await Promise.all(
58011
- docs.map(async ({ originalDocument, name, filename, generateArtifact }) => {
58012
- if (!generateArtifact) {
58013
- return;
58014
- }
58015
- const typeDefPath = config2.artifactTypePath(originalDocument);
58016
- const program = AST11.program([]);
58017
- const visitedTypes = /* @__PURE__ */ new Set();
58018
- let definition = originalDocument.definitions.find(
58019
- (def) => (def.kind === "OperationDefinition" || def.kind === "FragmentDefinition") && def.name?.value === name
58020
- );
58021
- const selections = flattenSelections({
58022
- config: config2,
58023
- filepath: filename,
58024
- selections: definition.selectionSet.selections,
58025
- fragmentDefinitions,
58026
- applyFragments: definition.kind === "OperationDefinition"
58027
- });
58028
- if (definition?.kind === "OperationDefinition") {
58029
- await generateOperationTypeDefs(
58030
- config2,
58031
- filename,
58032
- program.body,
58033
- definition,
58034
- selections,
58035
- visitedTypes,
58036
- missingScalars
58037
- );
58038
- } else {
58039
- await generateFragmentTypeDefs(
58040
- config2,
58041
- filename,
58042
- program.body,
58043
- selections,
58044
- originalDocument.definitions,
58045
- visitedTypes,
58046
- missingScalars
58011
+ docs.map(
58012
+ async ({
58013
+ originalParsed: originalDocument,
58014
+ name,
58015
+ filename,
58016
+ generateArtifact
58017
+ }) => {
58018
+ if (!generateArtifact) {
58019
+ return;
58020
+ }
58021
+ const typeDefPath = config2.artifactTypePath(originalDocument);
58022
+ const program = AST11.program([]);
58023
+ const visitedTypes = /* @__PURE__ */ new Set();
58024
+ let definition = originalDocument.definitions.find(
58025
+ (def) => (def.kind === "OperationDefinition" || def.kind === "FragmentDefinition") && def.name?.value === name
58047
58026
  );
58027
+ const selections = flattenSelections({
58028
+ config: config2,
58029
+ filepath: filename,
58030
+ selections: definition.selectionSet.selections,
58031
+ fragmentDefinitions,
58032
+ applyFragments: definition.kind === "OperationDefinition"
58033
+ });
58034
+ if (definition?.kind === "OperationDefinition") {
58035
+ await generateOperationTypeDefs(
58036
+ config2,
58037
+ filename,
58038
+ program.body,
58039
+ definition,
58040
+ selections,
58041
+ visitedTypes,
58042
+ missingScalars
58043
+ );
58044
+ } else {
58045
+ await generateFragmentTypeDefs(
58046
+ config2,
58047
+ filename,
58048
+ program.body,
58049
+ selections,
58050
+ originalDocument.definitions,
58051
+ visitedTypes,
58052
+ missingScalars
58053
+ );
58054
+ }
58055
+ await fs_exports.writeFile(typeDefPath, recast11.print(program).code);
58056
+ typePaths.push(typeDefPath);
58048
58057
  }
58049
- await fs_exports.writeFile(typeDefPath, recast11.print(program).code);
58050
- typePaths.push(typeDefPath);
58051
- })
58058
+ )
58052
58059
  );
58053
58060
  const typeIndex = AST11.program(
58054
58061
  typePaths.sort((a, b) => a.localeCompare(b)).map((typePath) => {
@@ -58063,28 +58070,28 @@ async function generateDocumentTypes(config2, docs) {
58063
58070
  AST11.exportAllDeclaration(AST11.literal("./graphql"), null)
58064
58071
  ])
58065
58072
  );
58066
- const export_default_as = ({ module: module2, as }) => `
58073
+ const exportDefaultAs = ({ module: module2, as }) => `
58067
58074
  export { default as ${as} } from "${module2}"
58068
58075
  `;
58069
- const export_star_from = ({ module: module2 }) => `
58076
+ const exportStarFrom2 = ({ module: module2 }) => `
58070
58077
  export * from "${module2}"
58071
58078
  `;
58072
58079
  let indexContent = recast11.print(typeIndex).code;
58073
58080
  for (const plugin2 of config2.plugins) {
58074
- if (!plugin2.index_file) {
58081
+ if (!plugin2.indexFile) {
58075
58082
  continue;
58076
58083
  }
58077
- indexContent = plugin2.index_file({
58084
+ indexContent = plugin2.indexFile({
58078
58085
  config: config2,
58079
58086
  content: indexContent,
58080
- export_default_as,
58081
- export_star_from,
58082
- plugin_root: config2.pluginDirectory(plugin2.name),
58087
+ exportDefaultAs,
58088
+ exportStarFrom: exportStarFrom2,
58089
+ pluginRoot: config2.pluginDirectory(plugin2.name),
58083
58090
  typedef: true,
58084
58091
  documents: docs
58085
58092
  });
58086
- if (plugin2.include_runtime) {
58087
- indexContent += export_star_from({
58093
+ if (plugin2.includeRuntime) {
58094
+ indexContent += exportStarFrom2({
58088
58095
  module: "./" + path_exports.relative(config2.rootDir, config2.pluginRuntimeDirectory(plugin2.name))
58089
58096
  });
58090
58097
  }
@@ -58331,10 +58338,10 @@ var graphql17 = __toESM(require_graphql2(), 1);
58331
58338
  var recast12 = __toESM(require_main2(), 1);
58332
58339
  var AST12 = recast12.types.builders;
58333
58340
  async function imperativeCacheTypef(config2, docs) {
58334
- const returnType = (doc) => config2.plugins.find((plugin2) => plugin2.graphql_tag_return)?.graphql_tag_return?.({
58341
+ const returnType = (doc) => config2.plugins.find((plugin2) => plugin2.graphqlTagReturn)?.graphqlTagReturn?.({
58335
58342
  config: config2,
58336
58343
  document: doc,
58337
- ensure_import({ identifier, module: module2 }) {
58344
+ ensureImport({ identifier, module: module2 }) {
58338
58345
  ensureImports({
58339
58346
  config: config2,
58340
58347
  body,
@@ -58705,27 +58712,30 @@ async function persistOutputGenerator(config2, docs) {
58705
58712
  console.log("Can only write the queryMap to a json file");
58706
58713
  return;
58707
58714
  }
58708
- const queryMap = docs.reduce((acc, { document, generateArtifact }) => {
58709
- if (!generateArtifact) {
58710
- return acc;
58711
- }
58712
- let rawString = graphql18.print(
58713
- graphql18.visit(document, {
58714
- Directive(node) {
58715
- if (config2.isInternalDirective(node.name.value)) {
58716
- return null;
58715
+ const queryMap = docs.reduce(
58716
+ (acc, { document, generateArtifact }) => {
58717
+ if (!generateArtifact) {
58718
+ return acc;
58719
+ }
58720
+ let rawString = graphql18.print(
58721
+ graphql18.visit(document, {
58722
+ Directive(node) {
58723
+ if (config2.isInternalDirective(node.name.value)) {
58724
+ return null;
58725
+ }
58717
58726
  }
58718
- }
58719
- })
58720
- );
58721
- const operations = document.definitions.filter(
58722
- ({ kind }) => kind === graphql18.Kind.OPERATION_DEFINITION
58723
- );
58724
- if (operations.length > 0 && operations[0].kind === "OperationDefinition") {
58725
- acc[hashDocument({ config: config2, document: rawString })] = rawString;
58726
- }
58727
- return acc;
58728
- }, {});
58727
+ })
58728
+ );
58729
+ const operations = document.definitions.filter(
58730
+ ({ kind }) => kind === graphql18.Kind.OPERATION_DEFINITION
58731
+ );
58732
+ if (operations.length > 0 && operations[0].kind === "OperationDefinition") {
58733
+ acc[hashDocument({ config: config2, document: rawString })] = rawString;
58734
+ }
58735
+ return acc;
58736
+ },
58737
+ {}
58738
+ );
58729
58739
  if (Object.keys(queryMap).length === 0)
58730
58740
  return;
58731
58741
  await fs_exports.writeFile(config2.persistedQueryPath, JSON.stringify(queryMap, null, 4));
@@ -58794,32 +58804,32 @@ async function writeIndexFile2(config2, docs) {
58794
58804
  const definitionsDir = relative2(config2.definitionsDirectory);
58795
58805
  const cjs = config2.module === "commonjs";
58796
58806
  let body = cjs ? cjsIndexFilePreamble : "";
58797
- const export_star_from = ({ module: module2 }) => "\n" + (cjs ? exportStarFrom(module2) : `export * from "${module2}"`) + "\n";
58798
- const export_default_as = ({ module: module2, as }) => "\n" + (cjs ? exportDefaultFrom(module2, as) : `export { default as ${as} } from "${module2}"`) + "\n";
58807
+ const exportStar = ({ module: module2 }) => "\n" + (cjs ? exportStarFrom(module2) : `export * from "${module2}"`) + "\n";
58808
+ const exportDefaultAs = ({ module: module2, as }) => "\n" + (cjs ? exportDefaultFrom(module2, as) : `export { default as ${as} } from "${module2}"`) + "\n";
58799
58809
  body += [
58800
- export_star_from({ module: "./" + path_exports.join(runtimeDir, "client") }),
58801
- export_star_from({ module: runtimeDir }),
58802
- export_star_from({ module: artifactDir }),
58803
- export_star_from({ module: definitionsDir })
58810
+ exportStar({ module: "./" + path_exports.join(runtimeDir, "client") }),
58811
+ exportStar({ module: runtimeDir }),
58812
+ exportStar({ module: artifactDir }),
58813
+ exportStar({ module: definitionsDir })
58804
58814
  ].join("");
58805
58815
  for (const plugin2 of config2.plugins) {
58806
- if (plugin2.index_file) {
58807
- body = plugin2.index_file({
58816
+ if (plugin2.indexFile) {
58817
+ body = plugin2.indexFile({
58808
58818
  config: config2,
58809
58819
  content: body,
58810
- export_default_as,
58811
- export_star_from,
58812
- plugin_root: config2.pluginDirectory(plugin2.name),
58820
+ exportDefaultAs,
58821
+ exportStarFrom: exportStar,
58822
+ pluginRoot: config2.pluginDirectory(plugin2.name),
58813
58823
  typedef: false,
58814
58824
  documents: docs
58815
58825
  });
58816
58826
  }
58817
- if (plugin2.include_runtime) {
58818
- body += export_star_from({
58827
+ if (plugin2.includeRuntime) {
58828
+ body += exportStar({
58819
58829
  module: relative2(config2.pluginRuntimeDirectory(plugin2.name))
58820
58830
  });
58821
58831
  }
58822
- if (!plugin2.index_file) {
58832
+ if (!plugin2.indexFile) {
58823
58833
  continue;
58824
58834
  }
58825
58835
  }
@@ -59863,10 +59873,10 @@ async function runPipeline2(config2, docs) {
59863
59873
  deleted: []
59864
59874
  };
59865
59875
  const generatePlugins = config2.plugins.filter((plugin2) => plugin2.generate);
59866
- const after_validate = config2.plugins.filter((plugin2) => plugin2.after_validate).map((plugin2) => plugin2.after_validate);
59876
+ const afterValidate = config2.plugins.filter((plugin2) => plugin2.afterValidate).map((plugin2) => plugin2.afterValidate);
59867
59877
  const validate2 = config2.plugins.filter((plugin2) => plugin2.validate).map((plugin2) => plugin2.validate);
59868
- const before_validate = config2.plugins.filter((plugin2) => plugin2.before_validate).map((plugin2) => plugin2.before_validate);
59869
- const transform_before_generate = config2.plugins.filter((plugin2) => plugin2.transform_before_generate).map((plugin2) => plugin2.transform_before_generate);
59878
+ const beforeValidate = config2.plugins.filter((plugin2) => plugin2.beforeValidate).map((plugin2) => plugin2.beforeValidate);
59879
+ const beforeGenerate = config2.plugins.filter((plugin2) => plugin2.beforeGenerate).map((plugin2) => plugin2.beforeGenerate);
59870
59880
  const wrapHook = (hooks) => hooks.map(
59871
59881
  (fn) => (config3, docs2) => fn({
59872
59882
  config: config3,
@@ -59879,20 +59889,20 @@ async function runPipeline2(config2, docs) {
59879
59889
  config2,
59880
59890
  [
59881
59891
  graphqlExtensions,
59882
- ...wrapHook(before_validate),
59892
+ ...wrapHook(beforeValidate),
59883
59893
  typeCheck,
59884
59894
  uniqueDocumentNames,
59885
59895
  noIDAlias,
59886
59896
  validatePlugins,
59887
59897
  ...wrapHook(validate2),
59888
- ...wrapHook(after_validate),
59898
+ ...wrapHook(afterValidate),
59889
59899
  addID,
59890
59900
  addTypename,
59891
59901
  addListFragments,
59892
59902
  paginate,
59893
59903
  fragmentVariables,
59894
59904
  includeFragmentDefinitions,
59895
- ...wrapHook(transform_before_generate),
59905
+ ...wrapHook(beforeGenerate),
59896
59906
  artifactGenerator(artifactStats),
59897
59907
  runtimeGenerator,
59898
59908
  writeIndexFile2,
@@ -59903,14 +59913,13 @@ async function runPipeline2(config2, docs) {
59903
59913
  (plugin2) => async (config3, docs2) => await plugin2.generate({
59904
59914
  config: config3,
59905
59915
  documents: docs2,
59906
- plugin_root: config3.pluginDirectory(plugin2.name)
59916
+ pluginRoot: config3.pluginDirectory(plugin2.name)
59907
59917
  })
59908
59918
  )
59909
59919
  ],
59910
59920
  docs
59911
59921
  );
59912
59922
  } catch (e) {
59913
- console.log(e);
59914
59923
  error = e;
59915
59924
  }
59916
59925
  const unchanged = artifactStats.total.length - artifactStats.changed.length - artifactStats.new.length - artifactStats.deleted.length;
@@ -60277,7 +60286,7 @@ function mockCollectedDoc(query) {
60277
60286
  name,
60278
60287
  kind,
60279
60288
  document: parsed,
60280
- originalDocument: parsed,
60289
+ originalParsed: parsed,
60281
60290
  filename: `${name}.ts`,
60282
60291
  generateArtifact: true,
60283
60292
  generateStore: true,