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
package/build/lib/config.d.ts
CHANGED
|
@@ -134,8 +134,8 @@ export declare enum LogLevel {
|
|
|
134
134
|
ShortSummary = "short-summary",
|
|
135
135
|
Quiet = "quiet"
|
|
136
136
|
}
|
|
137
|
-
export
|
|
138
|
-
export
|
|
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
|
-
|
|
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
|
|
186
|
-
export
|
|
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
|
|
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
|
-
|
|
18
|
+
type MockFilesystem = {
|
|
19
19
|
[key: string]: string | MockFilesystem;
|
|
20
20
|
};
|
|
21
21
|
export declare function mock(target: MockFilesystem[string], filepath?: string): Promise<void>;
|
package/build/lib/graphql.d.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/build/lib/imports.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as recast from 'recast';
|
|
2
2
|
import { Config } from './config';
|
|
3
|
-
|
|
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: {
|
package/build/lib/parse.d.ts
CHANGED
package/build/lib/pipeline.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Config } from './config';
|
|
2
|
-
export
|
|
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>;
|
package/build/lib/types.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
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
|
|
14
|
+
export type CollectedGraphQLDocument = {
|
|
15
15
|
kind: ArtifactKind;
|
|
16
16
|
filename: string;
|
|
17
17
|
name: string;
|
package/build/lib/walk.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
19
|
+
type GraphqlTagWalker = {
|
|
20
20
|
where?: (tag: graphql.DocumentNode) => boolean;
|
|
21
21
|
dependency?: (fp: string) => void;
|
|
22
22
|
tag: (tag: EmbeddedGraphqlDocument) => void | Promise<void>;
|