houdini 0.18.1 → 0.18.3

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 (51) hide show
  1. package/build/cmd-cjs/index.js +2191 -1659
  2. package/build/cmd-esm/index.js +2191 -1659
  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/utils/objectIdentificationSelection.d.ts +3 -0
  14. package/build/codegen-cjs/index.js +2085 -1560
  15. package/build/codegen-esm/index.js +2085 -1560
  16. package/build/lib/config.d.ts +6 -6
  17. package/build/lib/fs.d.ts +3 -3
  18. package/build/lib/graphql.d.ts +1 -1
  19. package/build/lib/imports.d.ts +1 -1
  20. package/build/lib/parse.d.ts +1 -1
  21. package/build/lib/pipeline.d.ts +1 -1
  22. package/build/lib/types.d.ts +5 -5
  23. package/build/lib/walk.d.ts +2 -2
  24. package/build/lib-cjs/index.js +1916 -1376
  25. package/build/lib-esm/index.js +1916 -1376
  26. package/build/runtime/cache/cache.d.ts +1 -1
  27. package/build/runtime/cache/storage.d.ts +12 -12
  28. package/build/runtime/lib/config.d.ts +5 -5
  29. package/build/runtime/lib/network.d.ts +5 -5
  30. package/build/runtime/lib/networkUtils.d.ts +1 -1
  31. package/build/runtime/lib/types.d.ts +23 -23
  32. package/build/runtime-cjs/cache/cache.d.ts +1 -1
  33. package/build/runtime-cjs/cache/storage.d.ts +12 -12
  34. package/build/runtime-cjs/lib/config.d.ts +5 -5
  35. package/build/runtime-cjs/lib/network.d.ts +5 -5
  36. package/build/runtime-cjs/lib/networkUtils.d.ts +1 -1
  37. package/build/runtime-cjs/lib/types.d.ts +23 -23
  38. package/build/runtime-esm/cache/cache.d.ts +1 -1
  39. package/build/runtime-esm/cache/storage.d.ts +12 -12
  40. package/build/runtime-esm/lib/config.d.ts +5 -5
  41. package/build/runtime-esm/lib/network.d.ts +5 -5
  42. package/build/runtime-esm/lib/networkUtils.d.ts +1 -1
  43. package/build/runtime-esm/lib/types.d.ts +23 -23
  44. package/build/test/index.d.ts +1 -1
  45. package/build/test-cjs/index.js +2093 -1558
  46. package/build/test-esm/index.js +2093 -1558
  47. package/build/vite/ast.d.ts +5 -5
  48. package/build/vite/imports.d.ts +1 -1
  49. package/build/vite-cjs/index.js +3776 -2489
  50. package/build/vite-esm/index.js +3776 -2489
  51. package/package.json +4 -4
@@ -4,7 +4,7 @@ import { MutationOperation } from '../../../runtime/lib/types';
4
4
  export declare function operationsByPath(config: Config, filepath: string, definition: graphql.OperationDefinitionNode, filterTypes: FilterMap): {
5
5
  [path: string]: MutationOperation[];
6
6
  };
7
- export declare type FilterMap = {
7
+ export type FilterMap = {
8
8
  [listName: string]: {
9
9
  [filterName: string]: 'String' | 'Float' | 'Int' | 'Boolean';
10
10
  };
@@ -1,4 +1,4 @@
1
- import type { ExpressionKind } from 'ast-types/gen/kinds';
1
+ import type { ExpressionKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
3
  export declare function serializeValue(value: any): ExpressionKind;
4
4
  export declare function deepMerge(filepath: string, ...targets: {}[]): {};
@@ -1,4 +1,4 @@
1
- import type { StatementKind } from 'ast-types/gen/kinds';
1
+ import type { StatementKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
3
  import { Config } from '../../../lib';
4
4
  export declare function addReferencedInputTypes(config: Config, filepath: string, body: StatementKind[], visitedTypes: Set<string>, missingScalars: Set<string>, rootType: graphql.TypeNode): void;
@@ -1,4 +1,4 @@
1
- import type { TSTypeKind, StatementKind } from 'ast-types/gen/kinds';
1
+ import type { TSTypeKind, StatementKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
3
  import { Config } from '../../../lib';
4
4
  export declare const fragmentKey = "$fragments";
@@ -1,4 +1,4 @@
1
- import type { TSTypeKind } from 'ast-types/gen/kinds';
1
+ import type { TSTypeKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
3
  import { Config } from '../../../lib';
4
4
  export declare function tsTypeReference(config: Config, missingScalars: Set<string>, definition: {
@@ -1,4 +1,4 @@
1
- import type { TSTypeKind } from 'ast-types/gen/kinds';
1
+ import type { TSTypeKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as graphql from 'graphql';
3
3
  import * as recast from 'recast';
4
4
  import { Config } from '../../../lib';
@@ -1,7 +1,7 @@
1
1
  import { Config, CollectedGraphQLDocument } from '../lib';
2
2
  export default function compile(config: Config): Promise<void>;
3
3
  export declare function runPipeline(config: Config, docs: CollectedGraphQLDocument[]): Promise<void>;
4
- export declare type DiscoveredDoc = {
4
+ export type DiscoveredDoc = {
5
5
  filepath: string;
6
6
  document: string;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import graphql from 'graphql';
2
2
  import { Config, CollectedGraphQLDocument } from '../../lib';
3
- export declare type FragmentDependency = {
3
+ export type FragmentDependency = {
4
4
  definition: graphql.FragmentDefinitionNode;
5
5
  requiredFragments: string[];
6
6
  document: CollectedGraphQLDocument;
@@ -2,7 +2,7 @@ import * as graphql from 'graphql';
2
2
  import { Config, CollectedGraphQLDocument } from '../../lib';
3
3
  import { FragmentDependency } from './composeQueries';
4
4
  export default function fragmentVariables(config: Config, documents: CollectedGraphQLDocument[]): Promise<void>;
5
- declare type ValueMap = Record<string, graphql.ValueNode>;
5
+ type ValueMap = Record<string, graphql.ValueNode>;
6
6
  export declare function inlineFragmentArgs({ config, filepath, fragmentDefinitions, document, generatedFragments, visitedFragments, scope, newName, }: {
7
7
  config: Config;
8
8
  filepath: string;
@@ -14,7 +14,7 @@ export declare function inlineFragmentArgs({ config, filepath, fragmentDefinitio
14
14
  newName?: string;
15
15
  }): any;
16
16
  export declare function withArguments(config: Config, node: graphql.FragmentSpreadNode): graphql.ArgumentNode[];
17
- export declare type FragmentArgument = {
17
+ export type FragmentArgument = {
18
18
  name: string;
19
19
  type: string;
20
20
  required: boolean;
@@ -1,4 +1,4 @@
1
- import type { ExpressionKind } from 'ast-types/gen/kinds';
1
+ import type { ExpressionKind } from 'ast-types/lib/gen/kinds';
2
2
  import * as recast from 'recast';
3
3
  import { Config } from '../../lib';
4
4
  export declare function moduleExport(config: Config, key: string, value: ExpressionKind): recast.types.namedTypes.ExpressionStatement | recast.types.namedTypes.ExportNamedDeclaration | recast.types.namedTypes.ExportDefaultDeclaration;
@@ -0,0 +1,3 @@
1
+ import * as graphql from 'graphql';
2
+ import { Config } from '../../lib';
3
+ export declare const objectIdentificationSelection: (config: Config, type: graphql.GraphQLNamedType) => graphql.SelectionNode[];