houdini 1.2.0-react.1 → 1.2.1
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/README.md +1 -1
- package/build/cmd-cjs/index.js +2285 -1577
- package/build/cmd-esm/index.js +2285 -1577
- package/build/codegen/generators/artifacts/selection.d.ts +2 -1
- package/build/codegen/generators/typescript/inlineType.d.ts +5 -2
- package/build/codegen/generators/typescript/loadingState.d.ts +8 -0
- package/build/codegen/transforms/fragmentVariables.d.ts +0 -11
- package/build/codegen/utils/flattenSelections.d.ts +2 -1
- package/build/codegen-cjs/index.js +2215 -1531
- package/build/codegen-esm/index.js +2215 -1531
- package/build/lib/config.d.ts +5 -0
- package/build/lib/graphql.d.ts +5 -1
- package/build/lib/parse.d.ts +10 -1
- package/build/lib-cjs/index.js +702 -578
- package/build/lib-esm/index.js +699 -578
- package/build/runtime/cache/cache.d.ts +9 -8
- package/build/runtime/cache/stuff.d.ts +1 -4
- package/build/runtime/client/documentStore.d.ts +3 -3
- package/build/runtime/client/index.d.ts +8 -7
- package/build/runtime/client/plugins/cache.d.ts +1 -1
- package/build/runtime/client/plugins/fetch.d.ts +1 -0
- package/build/runtime/client/plugins/subscription.d.ts +1 -0
- package/build/runtime/client/plugins/throwOnError.d.ts +2 -1
- package/build/runtime/lib/pagination.d.ts +4 -6
- package/build/runtime/lib/selection.d.ts +1 -1
- package/build/runtime/lib/types.d.ts +37 -4
- package/build/runtime-cjs/cache/cache.d.ts +9 -8
- package/build/runtime-cjs/cache/cache.js +108 -43
- package/build/runtime-cjs/cache/stuff.d.ts +1 -4
- package/build/runtime-cjs/cache/stuff.js +2 -2
- package/build/runtime-cjs/cache/subscription.js +5 -5
- package/build/runtime-cjs/client/documentStore.d.ts +3 -3
- package/build/runtime-cjs/client/documentStore.js +10 -2
- package/build/runtime-cjs/client/index.d.ts +8 -7
- package/build/runtime-cjs/client/index.js +12 -4
- package/build/runtime-cjs/client/plugins/cache.d.ts +1 -1
- package/build/runtime-cjs/client/plugins/cache.js +10 -2
- package/build/runtime-cjs/client/plugins/fetch.d.ts +1 -0
- package/build/runtime-cjs/client/plugins/fetch.js +3 -2
- package/build/runtime-cjs/client/plugins/subscription.d.ts +1 -0
- package/build/runtime-cjs/client/plugins/subscription.js +1 -0
- package/build/runtime-cjs/client/plugins/throwOnError.d.ts +2 -1
- package/build/runtime-cjs/lib/config.js +2 -1
- package/build/runtime-cjs/lib/pagination.d.ts +4 -6
- package/build/runtime-cjs/lib/pagination.js +0 -12
- package/build/runtime-cjs/lib/scalars.js +1 -1
- package/build/runtime-cjs/lib/selection.d.ts +1 -1
- package/build/runtime-cjs/lib/selection.js +28 -1
- package/build/runtime-cjs/lib/types.d.ts +37 -4
- package/build/runtime-cjs/lib/types.js +3 -0
- package/build/runtime-esm/cache/cache.d.ts +9 -8
- package/build/runtime-esm/cache/cache.js +109 -44
- package/build/runtime-esm/cache/stuff.d.ts +1 -4
- package/build/runtime-esm/cache/stuff.js +2 -2
- package/build/runtime-esm/cache/subscription.js +5 -5
- package/build/runtime-esm/client/documentStore.d.ts +3 -3
- package/build/runtime-esm/client/documentStore.js +10 -2
- package/build/runtime-esm/client/index.d.ts +8 -7
- package/build/runtime-esm/client/index.js +15 -7
- package/build/runtime-esm/client/plugins/cache.d.ts +1 -1
- package/build/runtime-esm/client/plugins/cache.js +10 -2
- package/build/runtime-esm/client/plugins/fetch.d.ts +1 -0
- package/build/runtime-esm/client/plugins/fetch.js +3 -2
- package/build/runtime-esm/client/plugins/subscription.d.ts +1 -0
- package/build/runtime-esm/client/plugins/subscription.js +1 -0
- package/build/runtime-esm/client/plugins/throwOnError.d.ts +2 -1
- package/build/runtime-esm/lib/config.js +2 -1
- package/build/runtime-esm/lib/pagination.d.ts +4 -6
- package/build/runtime-esm/lib/pagination.js +0 -12
- package/build/runtime-esm/lib/scalars.js +1 -1
- package/build/runtime-esm/lib/selection.d.ts +1 -1
- package/build/runtime-esm/lib/selection.js +28 -1
- package/build/runtime-esm/lib/types.d.ts +37 -4
- package/build/runtime-esm/lib/types.js +2 -0
- package/build/test/index.d.ts +15 -0
- package/build/test-cjs/index.js +2248 -1534
- package/build/test-esm/index.js +2248 -1534
- package/build/vite-cjs/index.js +2315 -1605
- package/build/vite-esm/index.js +2315 -1605
- package/package.json +7 -1
|
@@ -2,7 +2,7 @@ import * as graphql from 'graphql';
|
|
|
2
2
|
import type { Config, Document } from '../../../lib';
|
|
3
3
|
import { type MutationOperation, type SubscriptionSelection } from '../../../runtime/lib/types';
|
|
4
4
|
export default function (args: Omit<Parameters<typeof prepareSelection>[0], 'typeMap' | 'abstractTypes'>): SubscriptionSelection;
|
|
5
|
-
declare function prepareSelection({ config, filepath, rootType, selections, operations, path, document, inConnection, typeMap, abstractTypes, }: {
|
|
5
|
+
declare function prepareSelection({ config, filepath, rootType, selections, operations, path, document, inConnection, typeMap, abstractTypes, globalLoading, }: {
|
|
6
6
|
config: Config;
|
|
7
7
|
filepath: string;
|
|
8
8
|
rootType: string;
|
|
@@ -15,5 +15,6 @@ declare function prepareSelection({ config, filepath, rootType, selections, oper
|
|
|
15
15
|
inConnection?: boolean;
|
|
16
16
|
typeMap: Record<string, string[]>;
|
|
17
17
|
abstractTypes: string[];
|
|
18
|
+
globalLoading?: boolean;
|
|
18
19
|
}): SubscriptionSelection;
|
|
19
20
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { TSTypeKind, StatementKind } from 'ast-types/lib/gen/kinds';
|
|
2
2
|
import * as graphql from 'graphql';
|
|
3
3
|
import type { Config } from '../../../lib';
|
|
4
|
-
|
|
5
|
-
export declare
|
|
4
|
+
import { TypeWrapper } from '../../../lib';
|
|
5
|
+
export declare const fragmentKey: " $fragments";
|
|
6
|
+
export declare function inlineType({ config, filepath, rootType, selections, root, allowReadonly, body, visitedTypes, missingScalars, includeFragments, allOptional, forceNonNull, }: {
|
|
6
7
|
config: Config;
|
|
7
8
|
filepath: string;
|
|
8
9
|
rootType: graphql.GraphQLNamedType;
|
|
@@ -14,7 +15,9 @@ export declare function inlineType({ config, filepath, rootType, selections, roo
|
|
|
14
15
|
missingScalars: Set<string>;
|
|
15
16
|
includeFragments: boolean;
|
|
16
17
|
allOptional?: boolean;
|
|
18
|
+
forceNonNull?: boolean;
|
|
17
19
|
}): TSTypeKind;
|
|
20
|
+
export declare function wrapType(wrappers: TypeWrapper[], result: TSTypeKind, root: boolean, forceNullable?: boolean, forceNonNull?: boolean): TSTypeKind;
|
|
18
21
|
export declare function selectionTypeInfo(schema: graphql.GraphQLSchema, filepath: string, rootType: graphql.GraphQLObjectType<any, any>, selection: graphql.SelectionNode): {
|
|
19
22
|
field: graphql.GraphQLField<any, any>;
|
|
20
23
|
type: graphql.GraphQLNamedType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StatementKind, TSTypeKind } from 'ast-types/lib/gen/kinds';
|
|
2
|
+
import { type Config, type Document } from '../../../lib';
|
|
3
|
+
export declare function withLoadingState(args: {
|
|
4
|
+
config: Config;
|
|
5
|
+
document: Document;
|
|
6
|
+
base: TSTypeKind;
|
|
7
|
+
body: StatementKind[];
|
|
8
|
+
}): TSTypeKind;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import * as graphql from 'graphql';
|
|
2
2
|
import type { Config, Document, ValueMap } from '../../lib';
|
|
3
|
-
import type { FragmentDependency } from './collectDefinitions';
|
|
4
3
|
export default function fragmentVariables(config: Config, documents: Document[]): Promise<void>;
|
|
5
|
-
export declare function inlineFragmentArgs({ config, filepath, fragmentDefinitions, document, generatedFragments, visitedFragments, scope, newName, }: {
|
|
6
|
-
config: Config;
|
|
7
|
-
filepath: string;
|
|
8
|
-
fragmentDefinitions: Record<string, FragmentDependency>;
|
|
9
|
-
document: graphql.ASTNode;
|
|
10
|
-
generatedFragments: Record<string, graphql.FragmentDefinitionNode>;
|
|
11
|
-
visitedFragments: Set<string>;
|
|
12
|
-
scope: ValueMap | undefined | null;
|
|
13
|
-
newName?: string;
|
|
14
|
-
}): any;
|
|
15
4
|
export declare function withArguments(config: Config, node: graphql.FragmentSpreadNode): graphql.ArgumentNode[];
|
|
16
5
|
export type FragmentArgument = {
|
|
17
6
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type graphql from 'graphql';
|
|
2
2
|
import type { Config } from '../../lib';
|
|
3
|
-
export declare function flattenSelections({ config, filepath, selections, fragmentDefinitions, ignoreMaskDisable, keepFragmentSpreadNodes, }: {
|
|
3
|
+
export declare function flattenSelections({ config, filepath, selections, fragmentDefinitions, ignoreMaskDisable, keepFragmentSpreadNodes, hoistFragments, }: {
|
|
4
4
|
config: Config;
|
|
5
5
|
filepath: string;
|
|
6
6
|
selections: readonly graphql.SelectionNode[];
|
|
@@ -9,4 +9,5 @@ export declare function flattenSelections({ config, filepath, selections, fragme
|
|
|
9
9
|
};
|
|
10
10
|
ignoreMaskDisable?: boolean;
|
|
11
11
|
keepFragmentSpreadNodes?: boolean;
|
|
12
|
+
hoistFragments?: boolean;
|
|
12
13
|
}): readonly graphql.SelectionNode[];
|