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.
- package/build/cmd-cjs/index.js +1936 -1397
- package/build/cmd-esm/index.js +1936 -1397
- package/build/codegen/generators/artifacts/operations.d.ts +1 -1
- package/build/codegen/generators/artifacts/utils.d.ts +1 -1
- package/build/codegen/generators/typescript/addReferencedInputTypes.d.ts +1 -1
- package/build/codegen/generators/typescript/inlineType.d.ts +1 -1
- package/build/codegen/generators/typescript/typeReference.d.ts +1 -1
- package/build/codegen/generators/typescript/types.d.ts +1 -1
- package/build/codegen/index.d.ts +1 -1
- package/build/codegen/transforms/composeQueries.d.ts +1 -1
- package/build/codegen/transforms/fragmentVariables.d.ts +2 -2
- package/build/codegen/utils/moduleExport.d.ts +1 -1
- package/build/codegen-cjs/index.js +1830 -1298
- package/build/codegen-esm/index.js +1830 -1298
- package/build/lib/config.d.ts +6 -6
- package/build/lib/fs.d.ts +3 -3
- package/build/lib/graphql.d.ts +1 -1
- package/build/lib/imports.d.ts +1 -1
- package/build/lib/parse.d.ts +1 -1
- package/build/lib/pipeline.d.ts +1 -1
- package/build/lib/types.d.ts +5 -5
- package/build/lib/walk.d.ts +2 -2
- package/build/lib-cjs/index.js +1916 -1376
- package/build/lib-esm/index.js +1916 -1376
- package/build/runtime/cache/cache.d.ts +1 -1
- package/build/runtime/cache/storage.d.ts +12 -12
- package/build/runtime/lib/config.d.ts +4 -4
- package/build/runtime/lib/network.d.ts +5 -5
- package/build/runtime/lib/networkUtils.d.ts +1 -1
- package/build/runtime/lib/types.d.ts +23 -23
- package/build/runtime-cjs/cache/cache.d.ts +1 -1
- package/build/runtime-cjs/cache/storage.d.ts +12 -12
- package/build/runtime-cjs/lib/config.d.ts +4 -4
- package/build/runtime-cjs/lib/network.d.ts +5 -5
- package/build/runtime-cjs/lib/networkUtils.d.ts +1 -1
- package/build/runtime-cjs/lib/types.d.ts +23 -23
- package/build/runtime-esm/cache/cache.d.ts +1 -1
- package/build/runtime-esm/cache/storage.d.ts +12 -12
- package/build/runtime-esm/lib/config.d.ts +4 -4
- package/build/runtime-esm/lib/network.d.ts +5 -5
- package/build/runtime-esm/lib/networkUtils.d.ts +1 -1
- package/build/runtime-esm/lib/types.d.ts +23 -23
- package/build/test/index.d.ts +1 -1
- package/build/test-cjs/index.js +1830 -1298
- package/build/test-esm/index.js +1830 -1298
- package/build/vite/ast.d.ts +5 -5
- package/build/vite/imports.d.ts +1 -1
- package/build/vite-cjs/index.js +3529 -2235
- package/build/vite-esm/index.js +3529 -2235
- 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
|
|
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: {
|
package/build/codegen/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
|
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;
|