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.
Files changed (42) hide show
  1. package/build/cmd-cjs/index.js +484 -475
  2. package/build/cmd-esm/index.js +484 -475
  3. package/build/codegen/generators/artifacts/index.d.ts +2 -2
  4. package/build/codegen/generators/artifacts/indexFile.d.ts +2 -2
  5. package/build/codegen/generators/artifacts/selection.d.ts +2 -2
  6. package/build/codegen/generators/indexFile/index.d.ts +2 -2
  7. package/build/codegen/generators/persistedQueries/index.d.ts +2 -2
  8. package/build/codegen/generators/runtime/graphqlFunction.d.ts +2 -2
  9. package/build/codegen/generators/runtime/index.d.ts +2 -2
  10. package/build/codegen/generators/typescript/documentTypes.d.ts +2 -2
  11. package/build/codegen/generators/typescript/imperativeTypeDef.d.ts +2 -2
  12. package/build/codegen/generators/typescript/index.d.ts +2 -2
  13. package/build/codegen/index.d.ts +2 -2
  14. package/build/codegen/transforms/addID.d.ts +2 -2
  15. package/build/codegen/transforms/composeQueries.d.ts +4 -4
  16. package/build/codegen/transforms/fragmentVariables.d.ts +2 -2
  17. package/build/codegen/transforms/list.d.ts +2 -2
  18. package/build/codegen/transforms/paginate.d.ts +2 -2
  19. package/build/codegen/transforms/schema.d.ts +2 -2
  20. package/build/codegen/transforms/typename.d.ts +2 -2
  21. package/build/codegen/validators/noIDAlias.d.ts +2 -2
  22. package/build/codegen/validators/plugins.d.ts +2 -2
  23. package/build/codegen/validators/typeCheck.d.ts +2 -2
  24. package/build/codegen/validators/uniqueNames.d.ts +2 -2
  25. package/build/codegen-cjs/index.js +481 -472
  26. package/build/codegen-esm/index.js +481 -472
  27. package/build/lib/graphql.d.ts +2 -2
  28. package/build/lib/types.d.ts +35 -35
  29. package/build/lib-cjs/index.js +355 -355
  30. package/build/lib-esm/index.js +355 -355
  31. package/build/runtime/client/documentStore.d.ts +1 -1
  32. package/build/runtime/client/index.d.ts +7 -6
  33. package/build/runtime-cjs/client/documentStore.d.ts +1 -1
  34. package/build/runtime-cjs/client/index.d.ts +7 -6
  35. package/build/runtime-esm/client/documentStore.d.ts +1 -1
  36. package/build/runtime-esm/client/index.d.ts +7 -6
  37. package/build/test/index.d.ts +3 -3
  38. package/build/test-cjs/index.js +479 -470
  39. package/build/test-esm/index.js +479 -470
  40. package/build/vite-cjs/index.js +484 -475
  41. package/build/vite-esm/index.js +484 -475
  42. package/package.json +1 -1
@@ -9,7 +9,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
9
9
  artifact: DocumentArtifact;
10
10
  plugins?: ClientPlugin[];
11
11
  pipeline?: ClientPlugin[];
12
- client: HoudiniClient;
12
+ client: HoudiniClient | null;
13
13
  cache?: boolean;
14
14
  initialValue?: _Data | null;
15
15
  fetching?: boolean;
@@ -12,14 +12,15 @@ type ConstructorArgs = {
12
12
  pipeline?: ClientPlugin[];
13
13
  throwOnError?: ThrowOnErrorParams;
14
14
  };
15
+ export type ObserveParams<_Data extends GraphQLObject, _Artifact extends DocumentArtifact = DocumentArtifact> = {
16
+ artifact: _Artifact;
17
+ cache?: boolean;
18
+ initialValue?: _Data | null;
19
+ fetching?: boolean;
20
+ };
15
21
  export declare class HoudiniClient {
16
22
  #private;
17
23
  url: string;
18
24
  constructor({ url, fetchParams, plugins, pipeline, throwOnError }: ConstructorArgs);
19
- observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: {
20
- artifact: DocumentArtifact;
21
- cache?: boolean;
22
- initialValue?: _Data | null;
23
- fetching?: boolean;
24
- }): DocumentStore<_Data, _Input>;
25
+ observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: ObserveParams<_Data>): DocumentStore<_Data, _Input>;
25
26
  }
@@ -9,7 +9,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
9
9
  artifact: DocumentArtifact;
10
10
  plugins?: ClientPlugin[];
11
11
  pipeline?: ClientPlugin[];
12
- client: HoudiniClient;
12
+ client: HoudiniClient | null;
13
13
  cache?: boolean;
14
14
  initialValue?: _Data | null;
15
15
  fetching?: boolean;
@@ -12,14 +12,15 @@ type ConstructorArgs = {
12
12
  pipeline?: ClientPlugin[];
13
13
  throwOnError?: ThrowOnErrorParams;
14
14
  };
15
+ export type ObserveParams<_Data extends GraphQLObject, _Artifact extends DocumentArtifact = DocumentArtifact> = {
16
+ artifact: _Artifact;
17
+ cache?: boolean;
18
+ initialValue?: _Data | null;
19
+ fetching?: boolean;
20
+ };
15
21
  export declare class HoudiniClient {
16
22
  #private;
17
23
  url: string;
18
24
  constructor({ url, fetchParams, plugins, pipeline, throwOnError }: ConstructorArgs);
19
- observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: {
20
- artifact: DocumentArtifact;
21
- cache?: boolean;
22
- initialValue?: _Data | null;
23
- fetching?: boolean;
24
- }): DocumentStore<_Data, _Input>;
25
+ observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: ObserveParams<_Data>): DocumentStore<_Data, _Input>;
25
26
  }
@@ -9,7 +9,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
9
9
  artifact: DocumentArtifact;
10
10
  plugins?: ClientPlugin[];
11
11
  pipeline?: ClientPlugin[];
12
- client: HoudiniClient;
12
+ client: HoudiniClient | null;
13
13
  cache?: boolean;
14
14
  initialValue?: _Data | null;
15
15
  fetching?: boolean;
@@ -12,14 +12,15 @@ type ConstructorArgs = {
12
12
  pipeline?: ClientPlugin[];
13
13
  throwOnError?: ThrowOnErrorParams;
14
14
  };
15
+ export type ObserveParams<_Data extends GraphQLObject, _Artifact extends DocumentArtifact = DocumentArtifact> = {
16
+ artifact: _Artifact;
17
+ cache?: boolean;
18
+ initialValue?: _Data | null;
19
+ fetching?: boolean;
20
+ };
15
21
  export declare class HoudiniClient {
16
22
  #private;
17
23
  url: string;
18
24
  constructor({ url, fetchParams, plugins, pipeline, throwOnError }: ConstructorArgs);
19
- observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: {
20
- artifact: DocumentArtifact;
21
- cache?: boolean;
22
- initialValue?: _Data | null;
23
- fetching?: boolean;
24
- }): DocumentStore<_Data, _Input>;
25
+ observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: ObserveParams<_Data>): DocumentStore<_Data, _Input>;
25
26
  }
@@ -1,4 +1,4 @@
1
- import type { CollectedGraphQLDocument } from '../lib';
1
+ import type { Document } from '../lib';
2
2
  import { Config } from '../lib';
3
3
  import type { ConfigFile } from '../runtime/lib/config';
4
4
  export declare function testConfigFile({ plugins, ...config }?: Partial<ConfigFile>): ConfigFile;
@@ -6,6 +6,6 @@ export declare function testConfig(config?: Partial<ConfigFile>): Config;
6
6
  export type Partial<T> = {
7
7
  [P in keyof T]?: T[P];
8
8
  };
9
- export declare function pipelineTest(config: Config, documents: string[], shouldPass: boolean, testBody?: ((result: Error | Error[]) => void) | ((docs: CollectedGraphQLDocument[]) => void)): () => Promise<void>;
10
- export declare function mockCollectedDoc(query: string): CollectedGraphQLDocument;
9
+ export declare function pipelineTest(config: Config, documents: string[], shouldPass: boolean, testBody?: ((result: Error | Error[]) => void) | ((docs: Document[]) => void)): () => Promise<void>;
10
+ export declare function mockCollectedDoc(query: string): Document;
11
11
  export declare function clearMock(): void;