houdini 0.18.1 → 0.18.2

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 (50) hide show
  1. package/build/cmd-cjs/index.js +1936 -1397
  2. package/build/cmd-esm/index.js +1936 -1397
  3. package/build/codegen/generators/artifacts/operations.d.ts +1 -1
  4. package/build/codegen/generators/artifacts/utils.d.ts +1 -1
  5. package/build/codegen/generators/typescript/addReferencedInputTypes.d.ts +1 -1
  6. package/build/codegen/generators/typescript/inlineType.d.ts +1 -1
  7. package/build/codegen/generators/typescript/typeReference.d.ts +1 -1
  8. package/build/codegen/generators/typescript/types.d.ts +1 -1
  9. package/build/codegen/index.d.ts +1 -1
  10. package/build/codegen/transforms/composeQueries.d.ts +1 -1
  11. package/build/codegen/transforms/fragmentVariables.d.ts +2 -2
  12. package/build/codegen/utils/moduleExport.d.ts +1 -1
  13. package/build/codegen-cjs/index.js +1830 -1298
  14. package/build/codegen-esm/index.js +1830 -1298
  15. package/build/lib/config.d.ts +6 -6
  16. package/build/lib/fs.d.ts +3 -3
  17. package/build/lib/graphql.d.ts +1 -1
  18. package/build/lib/imports.d.ts +1 -1
  19. package/build/lib/parse.d.ts +1 -1
  20. package/build/lib/pipeline.d.ts +1 -1
  21. package/build/lib/types.d.ts +5 -5
  22. package/build/lib/walk.d.ts +2 -2
  23. package/build/lib-cjs/index.js +1916 -1376
  24. package/build/lib-esm/index.js +1916 -1376
  25. package/build/runtime/cache/cache.d.ts +1 -1
  26. package/build/runtime/cache/storage.d.ts +12 -12
  27. package/build/runtime/lib/config.d.ts +4 -4
  28. package/build/runtime/lib/network.d.ts +5 -5
  29. package/build/runtime/lib/networkUtils.d.ts +1 -1
  30. package/build/runtime/lib/types.d.ts +23 -23
  31. package/build/runtime-cjs/cache/cache.d.ts +1 -1
  32. package/build/runtime-cjs/cache/storage.d.ts +12 -12
  33. package/build/runtime-cjs/lib/config.d.ts +4 -4
  34. package/build/runtime-cjs/lib/network.d.ts +5 -5
  35. package/build/runtime-cjs/lib/networkUtils.d.ts +1 -1
  36. package/build/runtime-cjs/lib/types.d.ts +23 -23
  37. package/build/runtime-esm/cache/cache.d.ts +1 -1
  38. package/build/runtime-esm/cache/storage.d.ts +12 -12
  39. package/build/runtime-esm/lib/config.d.ts +4 -4
  40. package/build/runtime-esm/lib/network.d.ts +5 -5
  41. package/build/runtime-esm/lib/networkUtils.d.ts +1 -1
  42. package/build/runtime-esm/lib/types.d.ts +23 -23
  43. package/build/test/index.d.ts +1 -1
  44. package/build/test-cjs/index.js +1830 -1298
  45. package/build/test-esm/index.js +1830 -1298
  46. package/build/vite/ast.d.ts +5 -5
  47. package/build/vite/imports.d.ts +1 -1
  48. package/build/vite-cjs/index.js +3529 -2235
  49. package/build/vite-esm/index.js +3529 -2235
  50. package/package.json +4 -4
@@ -134,8 +134,8 @@ export declare enum LogLevel {
134
134
  ShortSummary = "short-summary",
135
135
  Quiet = "quiet"
136
136
  }
137
- export declare type PluginFactory = (args?: PluginConfig) => Promise<Plugin>;
138
- export declare type Plugin = {
137
+ export type PluginFactory = (args?: PluginConfig) => Promise<Plugin>;
138
+ export type Plugin = {
139
139
  extensions?: string[];
140
140
  transform_runtime?: Record<string, (args: {
141
141
  config: Config;
@@ -168,7 +168,7 @@ export declare type Plugin = {
168
168
  };
169
169
  include?: (config: Config, filepath: string) => boolean | null | undefined;
170
170
  };
171
- declare type ModuleIndexTransform = (arg: {
171
+ type ModuleIndexTransform = (arg: {
172
172
  config: Config;
173
173
  content: string;
174
174
  export_default_as(args: {
@@ -182,13 +182,13 @@ declare type ModuleIndexTransform = (arg: {
182
182
  typedef: boolean;
183
183
  documents: CollectedGraphQLDocument[];
184
184
  }) => string;
185
- export declare type GenerateHook = (args: GenerateHookInput) => Promise<void> | void;
186
- export declare type GenerateHookInput = {
185
+ export type GenerateHook = (args: GenerateHookInput) => Promise<void> | void;
186
+ export type GenerateHookInput = {
187
187
  config: Config;
188
188
  documents: CollectedGraphQLDocument[];
189
189
  plugin_root: string;
190
190
  };
191
- export declare type PluginConfig = {
191
+ export type PluginConfig = {
192
192
  configPath?: string;
193
193
  } & Partial<ConfigFile>;
194
194
  export {};
package/build/lib/fs.d.ts CHANGED
@@ -7,15 +7,15 @@ export declare function readFile(filepath: string): Promise<string | null>;
7
7
  export declare function readFileSync(filepath: string): string | null;
8
8
  export declare function writeFile(filepath: string, data: string): Promise<void>;
9
9
  export declare function access(filepath: string): Promise<void | import("memfs/lib/Stats").Stats<number>>;
10
- export declare function mkdirp(filepath: string): Promise<void>;
11
- export declare function mkdirpSync(filepath: string): Promise<void>;
10
+ export declare function mkdirp(filepath: string): Promise<string | void>;
11
+ export declare function mkdirpSync(filepath: string): Promise<string | void>;
12
12
  export declare function mkdir(filepath: string): Promise<void>;
13
13
  export declare function rmdir(filepath: string): Promise<unknown>;
14
14
  export declare function stat(filepath: string): Promise<import("memfs/lib/Stats").Stats<number> | fsExtra.Stats>;
15
15
  export declare function existsSync(dirPath: string): boolean;
16
16
  export declare function readdir(filepath: string): Promise<string[]>;
17
17
  export declare function remove(filepath: string): Promise<void>;
18
- declare type MockFilesystem = {
18
+ type MockFilesystem = {
19
19
  [key: string]: string | MockFilesystem;
20
20
  };
21
21
  export declare function mock(target: MockFilesystem[string], filepath?: string): Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import * as graphql from 'graphql';
2
2
  export declare function getRootType(type: graphql.GraphQLType): graphql.GraphQLType;
3
3
  export declare function hashDocument(document: string | graphql.DocumentNode): string;
4
- declare type GraphQLParentType = graphql.GraphQLObjectType | graphql.GraphQLInputObjectType | graphql.GraphQLInterfaceType;
4
+ type GraphQLParentType = graphql.GraphQLObjectType | graphql.GraphQLInputObjectType | graphql.GraphQLInterfaceType;
5
5
  export declare function parentTypeFromAncestors(schema: graphql.GraphQLSchema, filepath: string, ancestors: readonly any[]): GraphQLParentType;
6
6
  export declare function definitionFromAncestors(ancestors: readonly any[]): graphql.OperationDefinitionNode | graphql.FragmentDefinitionNode;
7
7
  export declare function formatErrors(e: unknown, afterError?: (e: Error) => void): void;
@@ -1,6 +1,6 @@
1
1
  import * as recast from 'recast';
2
2
  import { Config } from './config';
3
- declare type Statement = recast.types.namedTypes.Statement;
3
+ type Statement = recast.types.namedTypes.Statement;
4
4
  export declare function ensureArtifactImport({ config, artifact, body, local, withExtension, }: {
5
5
  config: Config;
6
6
  artifact: {
@@ -1,5 +1,5 @@
1
1
  import type { Maybe, Script } from './types';
2
- export declare type ParsedFile = Maybe<{
2
+ export type ParsedFile = Maybe<{
3
3
  script: Script;
4
4
  start: number;
5
5
  end: number;
@@ -1,3 +1,3 @@
1
1
  import type { Config } from './config';
2
- export declare type Transform<_TransformType> = null | ((config: Config, documents: _TransformType) => Promise<void>);
2
+ export type Transform<_TransformType> = null | ((config: Config, documents: _TransformType) => Promise<void>);
3
3
  export declare function runPipeline<_TransformType>(config: Config, pipeline: Transform<_TransformType>[], target: _TransformType): Promise<void>;
@@ -2,16 +2,16 @@ import graphql from 'graphql';
2
2
  import * as recast from 'recast';
3
3
  import { ArtifactKind, BaseCompiledDocument } from '../runtime/lib/types';
4
4
  import type { Config } from './config';
5
- declare type Program = recast.types.namedTypes.Program;
6
- export declare type Maybe<T> = T | null | undefined;
7
- export declare type Script = Program;
8
- export declare type TransformDocument = {
5
+ type Program = recast.types.namedTypes.Program;
6
+ export type Maybe<T> = T | null | undefined;
7
+ export type Script = Program;
8
+ export type TransformDocument = {
9
9
  instance: Maybe<Script>;
10
10
  config: Config;
11
11
  dependencies: string[];
12
12
  filename: string;
13
13
  };
14
- export declare type CollectedGraphQLDocument = {
14
+ export type CollectedGraphQLDocument = {
15
15
  kind: ArtifactKind;
16
16
  filename: string;
17
17
  name: string;
@@ -3,7 +3,7 @@ import * as graphql from 'graphql';
3
3
  import { CompiledDocumentKind } from '../runtime/lib/types';
4
4
  import { Config } from './config';
5
5
  import { Script } from './types';
6
- export declare type EmbeddedGraphqlDocument = {
6
+ export type EmbeddedGraphqlDocument = {
7
7
  parsedDocument: graphql.DocumentNode;
8
8
  artifact: {
9
9
  name: string;
@@ -16,7 +16,7 @@ export declare type EmbeddedGraphqlDocument = {
16
16
  tagContent: string;
17
17
  parent: BaseNode;
18
18
  };
19
- declare type GraphqlTagWalker = {
19
+ type GraphqlTagWalker = {
20
20
  where?: (tag: graphql.DocumentNode) => boolean;
21
21
  dependency?: (fp: string) => void;
22
22
  tag: (tag: EmbeddedGraphqlDocument) => void | Promise<void>;