houdini 1.0.0-next.12 → 1.0.0-next.14
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 +9 -3
- package/build/cmd-esm/index.js +9 -3
- package/build/codegen/utils/flattenSelections.d.ts +1 -1
- package/build/codegen-cjs/index.js +7 -1
- package/build/codegen-esm/index.js +7 -1
- package/build/runtime/client/documentStore.d.ts +12 -11
- package/build/runtime-cjs/client/documentStore.d.ts +12 -11
- package/build/runtime-esm/client/documentStore.d.ts +12 -11
- package/build/test-cjs/index.js +7 -1
- package/build/test-esm/index.js +7 -1
- package/build/vite-cjs/index.js +7 -1
- package/build/vite-esm/index.js +7 -1
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -71201,7 +71201,13 @@ var FieldCollection = class {
|
|
|
71201
71201
|
if (fragment.selection.size === 0) {
|
|
71202
71202
|
return [];
|
|
71203
71203
|
}
|
|
71204
|
-
fragment.astNode
|
|
71204
|
+
fragment.astNode = {
|
|
71205
|
+
...fragment.astNode,
|
|
71206
|
+
selectionSet: {
|
|
71207
|
+
...fragment.astNode.selectionSet,
|
|
71208
|
+
selections: fragment.selection.toSelectionSet()
|
|
71209
|
+
}
|
|
71210
|
+
};
|
|
71205
71211
|
return [fragment.astNode];
|
|
71206
71212
|
}).concat(
|
|
71207
71213
|
Object.values(this.fields).map((field) => {
|
|
@@ -76507,8 +76513,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
76507
76513
|
}
|
|
76508
76514
|
packageJSON.devDependencies = {
|
|
76509
76515
|
...packageJSON.devDependencies,
|
|
76510
|
-
houdini: "^1.0.0-next.
|
|
76511
|
-
"houdini-svelte": "^1.0.0-next.
|
|
76516
|
+
houdini: "^1.0.0-next.14",
|
|
76517
|
+
"houdini-svelte": "^1.0.0-next.14"
|
|
76512
76518
|
};
|
|
76513
76519
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
76514
76520
|
}
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -71206,7 +71206,13 @@ var FieldCollection = class {
|
|
|
71206
71206
|
if (fragment.selection.size === 0) {
|
|
71207
71207
|
return [];
|
|
71208
71208
|
}
|
|
71209
|
-
fragment.astNode
|
|
71209
|
+
fragment.astNode = {
|
|
71210
|
+
...fragment.astNode,
|
|
71211
|
+
selectionSet: {
|
|
71212
|
+
...fragment.astNode.selectionSet,
|
|
71213
|
+
selections: fragment.selection.toSelectionSet()
|
|
71214
|
+
}
|
|
71215
|
+
};
|
|
71210
71216
|
return [fragment.astNode];
|
|
71211
71217
|
}).concat(
|
|
71212
71218
|
Object.values(this.fields).map((field) => {
|
|
@@ -76512,8 +76518,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
76512
76518
|
}
|
|
76513
76519
|
packageJSON.devDependencies = {
|
|
76514
76520
|
...packageJSON.devDependencies,
|
|
76515
|
-
houdini: "^1.0.0-next.
|
|
76516
|
-
"houdini-svelte": "^1.0.0-next.
|
|
76521
|
+
houdini: "^1.0.0-next.14",
|
|
76522
|
+
"houdini-svelte": "^1.0.0-next.14"
|
|
76517
76523
|
};
|
|
76518
76524
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
76519
76525
|
}
|
|
@@ -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;
|
|
@@ -54929,7 +54929,13 @@ var FieldCollection = class {
|
|
|
54929
54929
|
if (fragment.selection.size === 0) {
|
|
54930
54930
|
return [];
|
|
54931
54931
|
}
|
|
54932
|
-
fragment.astNode
|
|
54932
|
+
fragment.astNode = {
|
|
54933
|
+
...fragment.astNode,
|
|
54934
|
+
selectionSet: {
|
|
54935
|
+
...fragment.astNode.selectionSet,
|
|
54936
|
+
selections: fragment.selection.toSelectionSet()
|
|
54937
|
+
}
|
|
54938
|
+
};
|
|
54933
54939
|
return [fragment.astNode];
|
|
54934
54940
|
}).concat(
|
|
54935
54941
|
Object.values(this.fields).map((field) => {
|
|
@@ -54927,7 +54927,13 @@ var FieldCollection = class {
|
|
|
54927
54927
|
if (fragment.selection.size === 0) {
|
|
54928
54928
|
return [];
|
|
54929
54929
|
}
|
|
54930
|
-
fragment.astNode
|
|
54930
|
+
fragment.astNode = {
|
|
54931
|
+
...fragment.astNode,
|
|
54932
|
+
selectionSet: {
|
|
54933
|
+
...fragment.astNode.selectionSet,
|
|
54934
|
+
selections: fragment.selection.toSelectionSet()
|
|
54935
|
+
}
|
|
54936
|
+
};
|
|
54931
54937
|
return [fragment.astNode];
|
|
54932
54938
|
}).concat(
|
|
54933
54939
|
Object.values(this.fields).map((field) => {
|
|
@@ -14,17 +14,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
|
|
|
14
14
|
initialValue?: _Data | null;
|
|
15
15
|
fetching?: boolean;
|
|
16
16
|
});
|
|
17
|
-
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?:
|
|
18
|
-
fetch?: Fetch;
|
|
19
|
-
variables?: Record<string, any> | null;
|
|
20
|
-
metadata?: App.Metadata | null;
|
|
21
|
-
session?: App.Session | null;
|
|
22
|
-
policy?: CachePolicy;
|
|
23
|
-
stuff?: Partial<App.Stuff>;
|
|
24
|
-
cacheParams?: ClientPluginContext['cacheParams'];
|
|
25
|
-
setup?: boolean;
|
|
26
|
-
silenceEcho?: boolean;
|
|
27
|
-
}): Promise<QueryResult<_Data, _Input>>;
|
|
17
|
+
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?: SendParams): Promise<QueryResult<_Data, _Input>>;
|
|
28
18
|
}
|
|
29
19
|
declare function marshalVariables<_Data extends GraphQLObject, _Input extends {}>(ctx: ClientPluginContext): Record<string, any>;
|
|
30
20
|
export type ClientPlugin = () => ClientHooks | null | (ClientHooks | ClientPlugin | null)[];
|
|
@@ -86,4 +76,15 @@ export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'
|
|
|
86
76
|
export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
|
|
87
77
|
error: unknown;
|
|
88
78
|
};
|
|
79
|
+
export type SendParams = {
|
|
80
|
+
fetch?: Fetch;
|
|
81
|
+
variables?: Record<string, any> | null;
|
|
82
|
+
metadata?: App.Metadata | null;
|
|
83
|
+
session?: App.Session | null;
|
|
84
|
+
policy?: CachePolicy;
|
|
85
|
+
stuff?: Partial<App.Stuff>;
|
|
86
|
+
cacheParams?: ClientPluginContext['cacheParams'];
|
|
87
|
+
setup?: boolean;
|
|
88
|
+
silenceEcho?: boolean;
|
|
89
|
+
};
|
|
89
90
|
export {};
|
|
@@ -14,17 +14,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
|
|
|
14
14
|
initialValue?: _Data | null;
|
|
15
15
|
fetching?: boolean;
|
|
16
16
|
});
|
|
17
|
-
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?:
|
|
18
|
-
fetch?: Fetch;
|
|
19
|
-
variables?: Record<string, any> | null;
|
|
20
|
-
metadata?: App.Metadata | null;
|
|
21
|
-
session?: App.Session | null;
|
|
22
|
-
policy?: CachePolicy;
|
|
23
|
-
stuff?: Partial<App.Stuff>;
|
|
24
|
-
cacheParams?: ClientPluginContext['cacheParams'];
|
|
25
|
-
setup?: boolean;
|
|
26
|
-
silenceEcho?: boolean;
|
|
27
|
-
}): Promise<QueryResult<_Data, _Input>>;
|
|
17
|
+
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?: SendParams): Promise<QueryResult<_Data, _Input>>;
|
|
28
18
|
}
|
|
29
19
|
declare function marshalVariables<_Data extends GraphQLObject, _Input extends {}>(ctx: ClientPluginContext): Record<string, any>;
|
|
30
20
|
export type ClientPlugin = () => ClientHooks | null | (ClientHooks | ClientPlugin | null)[];
|
|
@@ -86,4 +76,15 @@ export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'
|
|
|
86
76
|
export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
|
|
87
77
|
error: unknown;
|
|
88
78
|
};
|
|
79
|
+
export type SendParams = {
|
|
80
|
+
fetch?: Fetch;
|
|
81
|
+
variables?: Record<string, any> | null;
|
|
82
|
+
metadata?: App.Metadata | null;
|
|
83
|
+
session?: App.Session | null;
|
|
84
|
+
policy?: CachePolicy;
|
|
85
|
+
stuff?: Partial<App.Stuff>;
|
|
86
|
+
cacheParams?: ClientPluginContext['cacheParams'];
|
|
87
|
+
setup?: boolean;
|
|
88
|
+
silenceEcho?: boolean;
|
|
89
|
+
};
|
|
89
90
|
export {};
|
|
@@ -14,17 +14,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
|
|
|
14
14
|
initialValue?: _Data | null;
|
|
15
15
|
fetching?: boolean;
|
|
16
16
|
});
|
|
17
|
-
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?:
|
|
18
|
-
fetch?: Fetch;
|
|
19
|
-
variables?: Record<string, any> | null;
|
|
20
|
-
metadata?: App.Metadata | null;
|
|
21
|
-
session?: App.Session | null;
|
|
22
|
-
policy?: CachePolicy;
|
|
23
|
-
stuff?: Partial<App.Stuff>;
|
|
24
|
-
cacheParams?: ClientPluginContext['cacheParams'];
|
|
25
|
-
setup?: boolean;
|
|
26
|
-
silenceEcho?: boolean;
|
|
27
|
-
}): Promise<QueryResult<_Data, _Input>>;
|
|
17
|
+
send({ metadata, session, fetch, variables, policy, stuff, cacheParams, setup, silenceEcho, }?: SendParams): Promise<QueryResult<_Data, _Input>>;
|
|
28
18
|
}
|
|
29
19
|
declare function marshalVariables<_Data extends GraphQLObject, _Input extends {}>(ctx: ClientPluginContext): Record<string, any>;
|
|
30
20
|
export type ClientPlugin = () => ClientHooks | null | (ClientHooks | ClientPlugin | null)[];
|
|
@@ -86,4 +76,15 @@ export type ClientPluginExitHandlers = Omit<ClientPluginEnterHandlers, 'resolve'
|
|
|
86
76
|
export type ClientPluginErrorHandlers = ClientPluginEnterHandlers & {
|
|
87
77
|
error: unknown;
|
|
88
78
|
};
|
|
79
|
+
export type SendParams = {
|
|
80
|
+
fetch?: Fetch;
|
|
81
|
+
variables?: Record<string, any> | null;
|
|
82
|
+
metadata?: App.Metadata | null;
|
|
83
|
+
session?: App.Session | null;
|
|
84
|
+
policy?: CachePolicy;
|
|
85
|
+
stuff?: Partial<App.Stuff>;
|
|
86
|
+
cacheParams?: ClientPluginContext['cacheParams'];
|
|
87
|
+
setup?: boolean;
|
|
88
|
+
silenceEcho?: boolean;
|
|
89
|
+
};
|
|
89
90
|
export {};
|
package/build/test-cjs/index.js
CHANGED
|
@@ -55276,7 +55276,13 @@ var FieldCollection = class {
|
|
|
55276
55276
|
if (fragment.selection.size === 0) {
|
|
55277
55277
|
return [];
|
|
55278
55278
|
}
|
|
55279
|
-
fragment.astNode
|
|
55279
|
+
fragment.astNode = {
|
|
55280
|
+
...fragment.astNode,
|
|
55281
|
+
selectionSet: {
|
|
55282
|
+
...fragment.astNode.selectionSet,
|
|
55283
|
+
selections: fragment.selection.toSelectionSet()
|
|
55284
|
+
}
|
|
55285
|
+
};
|
|
55280
55286
|
return [fragment.astNode];
|
|
55281
55287
|
}).concat(
|
|
55282
55288
|
Object.values(this.fields).map((field) => {
|
package/build/test-esm/index.js
CHANGED
|
@@ -55271,7 +55271,13 @@ var FieldCollection = class {
|
|
|
55271
55271
|
if (fragment.selection.size === 0) {
|
|
55272
55272
|
return [];
|
|
55273
55273
|
}
|
|
55274
|
-
fragment.astNode
|
|
55274
|
+
fragment.astNode = {
|
|
55275
|
+
...fragment.astNode,
|
|
55276
|
+
selectionSet: {
|
|
55277
|
+
...fragment.astNode.selectionSet,
|
|
55278
|
+
selections: fragment.selection.toSelectionSet()
|
|
55279
|
+
}
|
|
55280
|
+
};
|
|
55275
55281
|
return [fragment.astNode];
|
|
55276
55282
|
}).concat(
|
|
55277
55283
|
Object.values(this.fields).map((field) => {
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -68059,7 +68059,13 @@ var FieldCollection = class {
|
|
|
68059
68059
|
if (fragment.selection.size === 0) {
|
|
68060
68060
|
return [];
|
|
68061
68061
|
}
|
|
68062
|
-
fragment.astNode
|
|
68062
|
+
fragment.astNode = {
|
|
68063
|
+
...fragment.astNode,
|
|
68064
|
+
selectionSet: {
|
|
68065
|
+
...fragment.astNode.selectionSet,
|
|
68066
|
+
selections: fragment.selection.toSelectionSet()
|
|
68067
|
+
}
|
|
68068
|
+
};
|
|
68063
68069
|
return [fragment.astNode];
|
|
68064
68070
|
}).concat(
|
|
68065
68071
|
Object.values(this.fields).map((field) => {
|
package/build/vite-esm/index.js
CHANGED
|
@@ -68053,7 +68053,13 @@ var FieldCollection = class {
|
|
|
68053
68053
|
if (fragment.selection.size === 0) {
|
|
68054
68054
|
return [];
|
|
68055
68055
|
}
|
|
68056
|
-
fragment.astNode
|
|
68056
|
+
fragment.astNode = {
|
|
68057
|
+
...fragment.astNode,
|
|
68058
|
+
selectionSet: {
|
|
68059
|
+
...fragment.astNode.selectionSet,
|
|
68060
|
+
selections: fragment.selection.toSelectionSet()
|
|
68061
|
+
}
|
|
68062
|
+
};
|
|
68057
68063
|
return [fragment.astNode];
|
|
68058
68064
|
}).concat(
|
|
68059
68065
|
Object.values(this.fields).map((field) => {
|