houdini 1.0.0-next.5 → 1.0.0-next.7
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 +484 -475
- package/build/cmd-esm/index.js +484 -475
- package/build/codegen/generators/artifacts/index.d.ts +2 -2
- package/build/codegen/generators/artifacts/indexFile.d.ts +2 -2
- package/build/codegen/generators/artifacts/selection.d.ts +2 -2
- package/build/codegen/generators/indexFile/index.d.ts +2 -2
- package/build/codegen/generators/persistedQueries/index.d.ts +2 -2
- package/build/codegen/generators/runtime/graphqlFunction.d.ts +2 -2
- package/build/codegen/generators/runtime/index.d.ts +2 -2
- package/build/codegen/generators/typescript/documentTypes.d.ts +2 -2
- package/build/codegen/generators/typescript/imperativeTypeDef.d.ts +2 -2
- package/build/codegen/generators/typescript/index.d.ts +2 -2
- package/build/codegen/index.d.ts +2 -2
- package/build/codegen/transforms/addID.d.ts +2 -2
- package/build/codegen/transforms/composeQueries.d.ts +4 -4
- package/build/codegen/transforms/fragmentVariables.d.ts +2 -2
- package/build/codegen/transforms/list.d.ts +2 -2
- package/build/codegen/transforms/paginate.d.ts +2 -2
- package/build/codegen/transforms/schema.d.ts +2 -2
- package/build/codegen/transforms/typename.d.ts +2 -2
- package/build/codegen/validators/noIDAlias.d.ts +2 -2
- package/build/codegen/validators/plugins.d.ts +2 -2
- package/build/codegen/validators/typeCheck.d.ts +2 -2
- package/build/codegen/validators/uniqueNames.d.ts +2 -2
- package/build/codegen-cjs/index.js +481 -472
- package/build/codegen-esm/index.js +481 -472
- package/build/lib/graphql.d.ts +2 -2
- package/build/lib/types.d.ts +35 -35
- package/build/lib-cjs/index.js +355 -355
- package/build/lib-esm/index.js +355 -355
- package/build/runtime/client/documentStore.d.ts +1 -1
- package/build/runtime/client/index.d.ts +7 -6
- package/build/runtime-cjs/client/documentStore.d.ts +1 -1
- package/build/runtime-cjs/client/index.d.ts +7 -6
- package/build/runtime-esm/client/documentStore.d.ts +1 -1
- package/build/runtime-esm/client/index.d.ts +7 -6
- package/build/test/index.d.ts +3 -3
- package/build/test-cjs/index.js +479 -470
- package/build/test-esm/index.js +479 -470
- package/build/vite-cjs/index.js +484 -475
- package/build/vite-esm/index.js +484 -475
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Config,
|
|
1
|
+
import type { Config, Document } from '../../../lib';
|
|
2
2
|
export default function artifactGenerator(stats: {
|
|
3
3
|
total: string[];
|
|
4
4
|
new: string[];
|
|
5
5
|
changed: string[];
|
|
6
6
|
deleted: string[];
|
|
7
|
-
}): (config: Config, docs:
|
|
7
|
+
}): (config: Config, docs: Document[]) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function writeIndexFile(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../../lib';
|
|
2
|
+
export default function writeIndexFile(config: Config, docs: Document[]): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as graphql from 'graphql';
|
|
2
|
-
import type { Config,
|
|
2
|
+
import type { Config, Document } from '../../../lib';
|
|
3
3
|
import { type MutationOperation, type SubscriptionSelection } from '../../../runtime/lib/types';
|
|
4
4
|
export default function selection({ config, filepath, rootType, selections, operations, path, includeFragments, document, inConnection, }: {
|
|
5
5
|
config: Config;
|
|
@@ -11,6 +11,6 @@ export default function selection({ config, filepath, rootType, selections, oper
|
|
|
11
11
|
};
|
|
12
12
|
path?: string[];
|
|
13
13
|
includeFragments: boolean;
|
|
14
|
-
document:
|
|
14
|
+
document: Document;
|
|
15
15
|
inConnection?: boolean;
|
|
16
16
|
}): SubscriptionSelection;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function writeIndexFile(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../../lib';
|
|
2
|
+
export default function writeIndexFile(config: Config, docs: Document[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function persistOutputGenerator(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../../lib';
|
|
2
|
+
export default function persistOutputGenerator(config: Config, docs: Document[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type Config, type
|
|
2
|
-
export default function generateGraphqlReturnTypes(config: Config, docs:
|
|
1
|
+
import { type Config, type Document } from '../../../lib';
|
|
2
|
+
export default function generateGraphqlReturnTypes(config: Config, docs: Document[]): Promise<string | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function runtimeGenerator(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../../lib';
|
|
2
|
+
export default function runtimeGenerator(config: Config, docs: Document[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export declare function generateDocumentTypes(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../../lib';
|
|
2
|
+
export declare function generateDocumentTypes(config: Config, docs: Document[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type Config, type
|
|
2
|
-
export default function imperativeCacheTypef(config: Config, docs:
|
|
1
|
+
import { type Config, type Document } from '../../../lib';
|
|
2
|
+
export default function imperativeCacheTypef(config: Config, docs: Document[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function typescriptGenerator(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../../lib';
|
|
2
|
+
export default function typescriptGenerator(config: Config, docs: Document[]): Promise<void>;
|
package/build/codegen/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Config,
|
|
1
|
+
import type { Config, Document } from '../lib';
|
|
2
2
|
export default function compile(config: Config): Promise<void>;
|
|
3
|
-
export declare function runPipeline(config: Config, docs:
|
|
3
|
+
export declare function runPipeline(config: Config, docs: Document[]): Promise<void>;
|
|
4
4
|
export type DiscoveredDoc = {
|
|
5
5
|
filepath: string;
|
|
6
6
|
document: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function addID(config: Config, documents:
|
|
1
|
+
import type { Config, Document } from '../../lib';
|
|
2
|
+
export default function addID(config: Config, documents: Document[]): Promise<void>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type graphql from 'graphql';
|
|
2
|
-
import type { Config,
|
|
2
|
+
import type { Config, Document } from '../../lib';
|
|
3
3
|
export type FragmentDependency = {
|
|
4
4
|
definition: graphql.FragmentDefinitionNode;
|
|
5
5
|
requiredFragments: string[];
|
|
6
|
-
document:
|
|
6
|
+
document: Document;
|
|
7
7
|
};
|
|
8
|
-
export default function includeFragmentDefinitions(config: Config, documents:
|
|
9
|
-
export declare function collectFragments(config: Config, docs:
|
|
8
|
+
export default function includeFragmentDefinitions(config: Config, documents: Document[]): Promise<void>;
|
|
9
|
+
export declare function collectFragments(config: Config, docs: Document[]): Record<string, FragmentDependency>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as graphql from 'graphql';
|
|
2
|
-
import type { Config,
|
|
2
|
+
import type { Config, Document } from '../../lib';
|
|
3
3
|
import type { FragmentDependency } from './composeQueries';
|
|
4
|
-
export default function fragmentVariables(config: Config, documents:
|
|
4
|
+
export default function fragmentVariables(config: Config, documents: Document[]): 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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as graphql from 'graphql';
|
|
2
|
-
import type { Config,
|
|
3
|
-
export default function addListFragments(config: Config, documents:
|
|
2
|
+
import type { Config, Document } from '../../lib';
|
|
3
|
+
export default function addListFragments(config: Config, documents: Document[]): Promise<void>;
|
|
4
4
|
export declare function connectionSelection(config: Config, field: graphql.GraphQLField<any, any>, type: graphql.GraphQLObjectType, selection: graphql.SelectionSetNode | undefined): {
|
|
5
5
|
selection: graphql.SelectionSetNode | undefined;
|
|
6
6
|
type: graphql.GraphQLObjectType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function paginate(config: Config, documents:
|
|
1
|
+
import type { Config, Document } from '../../lib';
|
|
2
|
+
export default function paginate(config: Config, documents: Document[]): Promise<void>;
|
|
3
3
|
export declare const pageInfoSelection: {
|
|
4
4
|
kind: "Field";
|
|
5
5
|
name: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function graphqlExtensions(config: Config, documents:
|
|
1
|
+
import type { Config, Document } from '../../lib';
|
|
2
|
+
export default function graphqlExtensions(config: Config, documents: Document[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function addTypename(config: Config, documents:
|
|
1
|
+
import type { Config, Document } from '../../lib';
|
|
2
|
+
export default function addTypename(config: Config, documents: Document[]): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function noIDAlias(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../lib';
|
|
2
|
+
export default function noIDAlias(config: Config, docs: Document[]): Promise<void>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Config } from '../../lib/config';
|
|
2
|
-
import type {
|
|
3
|
-
export default function validatePlugins(config: Config, documents:
|
|
2
|
+
import type { Document } from '../../lib/types';
|
|
3
|
+
export default function validatePlugins(config: Config, documents: Document[]): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as graphql from 'graphql';
|
|
2
|
-
import type { Config,
|
|
3
|
-
export default function typeCheck(config: Config, docs:
|
|
2
|
+
import type { Config, Document } from '../../lib';
|
|
3
|
+
export default function typeCheck(config: Config, docs: Document[]): Promise<void>;
|
|
4
4
|
export declare function getAndVerifyNodeInterface(config: Config): graphql.GraphQLInterfaceType | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export default function uniqueDocumentNames(config: Config, docs:
|
|
1
|
+
import type { Config, Document } from '../../lib';
|
|
2
|
+
export default function uniqueDocumentNames(config: Config, docs: Document[]): Promise<void>;
|