houdini 1.0.0-next.9 → 1.0.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 +4 -1
- package/build/cmd-cjs/index.js +2368 -151
- package/build/cmd-esm/index.js +2368 -151
- package/build/codegen/generators/runtime/runtimeConfig.d.ts +7 -0
- package/build/codegen/transforms/fragmentVariables.d.ts +2 -1
- package/build/codegen/utils/flattenSelections.d.ts +1 -1
- package/build/codegen/validators/typeCheck.d.ts +1 -0
- package/build/codegen-cjs/index.js +2962 -719
- package/build/codegen-esm/index.js +2962 -719
- package/build/lib/config.d.ts +4 -6
- package/build/lib/types.d.ts +18 -15
- package/build/lib-cjs/index.js +3159 -171
- package/build/lib-esm/index.js +3152 -171
- package/build/runtime/cache/storage.d.ts +18 -15
- package/build/runtime/client/documentStore.d.ts +15 -13
- package/build/runtime/client/utils/documentPlugins.d.ts +2 -2
- package/build/runtime/imports/pluginConfig.d.ts +3 -0
- package/build/runtime/lib/config.d.ts +2 -2
- package/build/runtime/lib/scalars.d.ts +1 -1
- package/build/runtime/lib/types.d.ts +41 -42
- package/build/runtime-cjs/cache/storage.d.ts +18 -15
- package/build/runtime-cjs/cache/storage.js +9 -11
- package/build/runtime-cjs/client/documentStore.d.ts +15 -13
- package/build/runtime-cjs/client/documentStore.js +10 -7
- package/build/runtime-cjs/client/index.js +3 -0
- package/build/runtime-cjs/client/plugins/cache.js +3 -3
- package/build/runtime-cjs/client/plugins/fetch.js +2 -2
- package/build/runtime-cjs/client/plugins/query.js +1 -1
- package/build/runtime-cjs/client/plugins/subscription.js +2 -2
- package/build/runtime-cjs/client/utils/documentPlugins.d.ts +2 -2
- package/build/runtime-cjs/imports/pluginConfig.d.ts +3 -0
- package/build/runtime-cjs/imports/pluginConfig.js +27 -0
- package/build/runtime-cjs/lib/config.d.ts +2 -2
- package/build/runtime-cjs/lib/config.js +11 -1
- package/build/runtime-cjs/lib/scalars.d.ts +1 -1
- package/build/runtime-cjs/lib/scalars.js +13 -2
- package/build/runtime-cjs/lib/types.d.ts +41 -42
- package/build/runtime-cjs/lib/types.js +26 -30
- package/build/runtime-esm/cache/storage.d.ts +18 -15
- package/build/runtime-esm/cache/storage.js +9 -11
- package/build/runtime-esm/client/documentStore.d.ts +15 -13
- package/build/runtime-esm/client/documentStore.js +10 -7
- package/build/runtime-esm/client/index.js +5 -2
- package/build/runtime-esm/client/plugins/cache.js +3 -3
- package/build/runtime-esm/client/plugins/fetch.js +2 -2
- package/build/runtime-esm/client/plugins/query.js +1 -1
- package/build/runtime-esm/client/plugins/subscription.js +2 -2
- package/build/runtime-esm/client/utils/documentPlugins.d.ts +2 -2
- package/build/runtime-esm/imports/pluginConfig.d.ts +3 -0
- package/build/runtime-esm/imports/pluginConfig.js +5 -0
- package/build/runtime-esm/lib/config.d.ts +2 -2
- package/build/runtime-esm/lib/config.js +11 -1
- package/build/runtime-esm/lib/scalars.d.ts +1 -1
- package/build/runtime-esm/lib/scalars.js +13 -2
- package/build/runtime-esm/lib/types.d.ts +41 -42
- package/build/runtime-esm/lib/types.js +26 -30
- package/build/test-cjs/index.js +2346 -128
- package/build/test-esm/index.js +2346 -128
- package/build/vite/houdini.d.ts +2 -0
- package/build/vite-cjs/index.js +2371 -152
- package/build/vite-esm/index.js +2371 -152
- package/package.json +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Config } from '../../../lib';
|
|
2
|
+
export declare function injectConfig({ config, content, importStatement, exportStatement, }: {
|
|
3
|
+
config: Config;
|
|
4
|
+
exportStatement: (as: string) => string;
|
|
5
|
+
importStatement: (where: string, as: string) => string;
|
|
6
|
+
content: string;
|
|
7
|
+
}): Promise<string>;
|
|
@@ -16,11 +16,12 @@ export declare function inlineFragmentArgs({ config, filepath, fragmentDefinitio
|
|
|
16
16
|
export declare function withArguments(config: Config, node: graphql.FragmentSpreadNode): graphql.ArgumentNode[];
|
|
17
17
|
export type FragmentArgument = {
|
|
18
18
|
name: string;
|
|
19
|
-
type:
|
|
19
|
+
type: graphql.TypeNode;
|
|
20
20
|
required: boolean;
|
|
21
21
|
defaultValue: graphql.ValueNode | null;
|
|
22
22
|
};
|
|
23
23
|
export declare function fragmentArguments(config: Config, filepath: string, definition: graphql.FragmentDefinitionNode): FragmentArgument[];
|
|
24
|
+
export declare function parseArgumentTypeString(input: string): graphql.TypeNode;
|
|
24
25
|
export declare function collectWithArguments(config: Config, filepath: string, node: graphql.FragmentSpreadNode, scope?: ValueMap | null): {
|
|
25
26
|
args: ValueMap | null;
|
|
26
27
|
hash: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type graphql from 'graphql';
|
|
2
2
|
import type { Config } from '../../lib';
|
|
3
3
|
export declare function flattenSelections({ config, filepath, selections, fragmentDefinitions, applyFragments, ignoreMaskDisable, }: {
|
|
4
4
|
config: Config;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as graphql from 'graphql';
|
|
2
2
|
import type { Config, Document } from '../../lib';
|
|
3
3
|
export default function typeCheck(config: Config, docs: Document[]): Promise<void>;
|
|
4
|
+
export declare function valueIsType(config: Config, value: graphql.ValueNode, targetType: graphql.TypeNode): boolean;
|
|
4
5
|
export declare function getAndVerifyNodeInterface(config: Config): graphql.GraphQLInterfaceType | null;
|