houdini 1.1.6 → 1.2.0-next.0
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 +30836 -30260
- package/build/cmd-esm/index.js +30836 -30260
- 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-cjs/index.js +30791 -30254
- package/build/codegen-esm/index.js +30791 -30254
- package/build/lib/code.d.ts +11 -0
- package/build/lib/config.d.ts +5 -0
- package/build/lib/graphql.d.ts +5 -1
- package/build/lib/index.d.ts +1 -0
- package/build/lib/parse.d.ts +0 -7
- package/build/lib/types.d.ts +4 -1
- package/build/lib-cjs/index.js +29983 -29749
- package/build/lib-esm/index.js +29980 -29749
- package/build/runtime/cache/cache.d.ts +5 -6
- package/build/runtime/client/documentStore.d.ts +3 -0
- package/build/runtime/client/index.d.ts +7 -6
- 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/pageInfo.d.ts +7 -0
- package/build/runtime/lib/pagination.d.ts +27 -0
- package/build/runtime/lib/selection.d.ts +1 -1
- package/build/runtime/lib/types.d.ts +75 -3
- package/build/runtime-cjs/cache/cache.d.ts +5 -6
- package/build/runtime-cjs/cache/cache.js +78 -36
- package/build/runtime-cjs/cache/subscription.js +5 -5
- package/build/runtime-cjs/client/documentStore.d.ts +3 -0
- package/build/runtime-cjs/client/documentStore.js +20 -7
- package/build/runtime-cjs/client/index.d.ts +7 -6
- 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 +12 -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/fragment.js +8 -1
- package/build/runtime-cjs/client/plugins/query.js +2 -1
- 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/pageInfo.d.ts +7 -0
- package/build/runtime-cjs/lib/pageInfo.js +79 -0
- package/build/runtime-cjs/lib/pagination.d.ts +27 -0
- package/build/runtime-cjs/lib/pagination.js +219 -0
- 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 +75 -3
- package/build/runtime-cjs/lib/types.js +3 -0
- package/build/runtime-esm/cache/cache.d.ts +5 -6
- package/build/runtime-esm/cache/cache.js +79 -37
- package/build/runtime-esm/cache/subscription.js +5 -5
- package/build/runtime-esm/client/documentStore.d.ts +3 -0
- package/build/runtime-esm/client/documentStore.js +20 -7
- package/build/runtime-esm/client/index.d.ts +7 -6
- 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 +12 -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/fragment.js +8 -1
- package/build/runtime-esm/client/plugins/query.js +2 -1
- 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/pageInfo.d.ts +7 -0
- package/build/runtime-esm/lib/pageInfo.js +52 -0
- package/build/runtime-esm/lib/pagination.d.ts +27 -0
- package/build/runtime-esm/lib/pagination.js +194 -0
- 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 +75 -3
- package/build/runtime-esm/lib/types.js +2 -0
- package/build/test/index.d.ts +15 -0
- package/build/test-cjs/index.js +30708 -30140
- package/build/test-esm/index.js +30708 -30140
- package/build/vite-cjs/index.js +30864 -30290
- package/build/vite-esm/index.js +30864 -30290
- package/package.json +5 -1
|
@@ -29,6 +29,7 @@ const DataSource = {
|
|
|
29
29
|
Ssr: "ssr"
|
|
30
30
|
};
|
|
31
31
|
const fragmentKey = " $fragments";
|
|
32
|
+
const PendingValue = Symbol("houdini_loading");
|
|
32
33
|
export {
|
|
33
34
|
ArtifactKind,
|
|
34
35
|
CachePolicy,
|
|
@@ -38,6 +39,7 @@ export {
|
|
|
38
39
|
CompiledSubscriptionKind,
|
|
39
40
|
DataSource,
|
|
40
41
|
PaginateMode,
|
|
42
|
+
PendingValue,
|
|
41
43
|
RefetchUpdateMode,
|
|
42
44
|
fragmentKey
|
|
43
45
|
};
|
package/build/test/index.d.ts
CHANGED
|
@@ -9,3 +9,18 @@ export type Partial<T> = {
|
|
|
9
9
|
export declare function pipelineTest(config: Config, documents: string[], shouldPass: boolean, testBody?: ((result: Error | Error[]) => void) | ((docs: Document[]) => void)): () => Promise<void>;
|
|
10
10
|
export declare function mockCollectedDoc(query: string, data?: Partial<Document>): Document;
|
|
11
11
|
export declare function clearMock(): void;
|
|
12
|
+
export type Row = {
|
|
13
|
+
title: string;
|
|
14
|
+
pass: true;
|
|
15
|
+
documents: string[];
|
|
16
|
+
check?: (docs: Document[]) => void;
|
|
17
|
+
partial_config?: Partial<Config>;
|
|
18
|
+
nb_of_fail?: number;
|
|
19
|
+
} | {
|
|
20
|
+
title: string;
|
|
21
|
+
pass: false;
|
|
22
|
+
documents: string[];
|
|
23
|
+
check?: (result: Error | Error[]) => void;
|
|
24
|
+
partial_config?: Partial<Config>;
|
|
25
|
+
nb_of_fail?: number;
|
|
26
|
+
};
|