houdini 1.0.0-next.21 → 1.0.0-next.22
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 +2 -2
- package/build/cmd-esm/index.js +2 -2
- package/build/lib-cjs/index.js +6 -6
- package/build/lib-esm/index.js +6 -6
- package/build/runtime/client/documentStore.d.ts +1 -1
- package/build/runtime/lib/types.d.ts +1 -1
- package/build/runtime-cjs/client/documentStore.d.ts +1 -1
- package/build/runtime-cjs/client/documentStore.js +4 -4
- package/build/runtime-cjs/client/plugins/cache.js +2 -2
- package/build/runtime-cjs/lib/types.d.ts +1 -1
- package/build/runtime-esm/client/documentStore.d.ts +1 -1
- package/build/runtime-esm/client/documentStore.js +4 -4
- package/build/runtime-esm/client/plugins/cache.js +2 -2
- package/build/runtime-esm/lib/types.d.ts +1 -1
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -78683,8 +78683,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
78683
78683
|
}
|
|
78684
78684
|
packageJSON.devDependencies = {
|
|
78685
78685
|
...packageJSON.devDependencies,
|
|
78686
|
-
houdini: "^1.0.0-next.
|
|
78687
|
-
"houdini-svelte": "^1.0.0-next.
|
|
78686
|
+
houdini: "^1.0.0-next.22",
|
|
78687
|
+
"houdini-svelte": "^1.0.0-next.22"
|
|
78688
78688
|
};
|
|
78689
78689
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
78690
78690
|
}
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -78688,8 +78688,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
78688
78688
|
}
|
|
78689
78689
|
packageJSON.devDependencies = {
|
|
78690
78690
|
...packageJSON.devDependencies,
|
|
78691
|
-
houdini: "^1.0.0-next.
|
|
78692
|
-
"houdini-svelte": "^1.0.0-next.
|
|
78691
|
+
houdini: "^1.0.0-next.22",
|
|
78692
|
+
"houdini-svelte": "^1.0.0-next.22"
|
|
78693
78693
|
};
|
|
78694
78694
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
78695
78695
|
}
|
package/build/lib-cjs/index.js
CHANGED
|
@@ -65495,7 +65495,7 @@ var cachePolicy = ({
|
|
|
65495
65495
|
if (policy === CachePolicy.CacheOnly) {
|
|
65496
65496
|
return resolve2(ctx, {
|
|
65497
65497
|
fetching: false,
|
|
65498
|
-
variables: ctx.variables ??
|
|
65498
|
+
variables: ctx.variables ?? null,
|
|
65499
65499
|
data: allowed ? value.data : initialValue.data,
|
|
65500
65500
|
errors: null,
|
|
65501
65501
|
source: DataSource.Cache,
|
|
@@ -65507,7 +65507,7 @@ var cachePolicy = ({
|
|
|
65507
65507
|
if (useCache) {
|
|
65508
65508
|
resolve2(ctx, {
|
|
65509
65509
|
fetching: false,
|
|
65510
|
-
variables: ctx.variables ??
|
|
65510
|
+
variables: ctx.variables ?? null,
|
|
65511
65511
|
data: value.data,
|
|
65512
65512
|
errors: null,
|
|
65513
65513
|
source: DataSource.Cache,
|
|
@@ -65816,7 +65816,7 @@ var DocumentStore = class extends Writable {
|
|
|
65816
65816
|
stale: false,
|
|
65817
65817
|
source: null,
|
|
65818
65818
|
fetching,
|
|
65819
|
-
variables:
|
|
65819
|
+
variables: null
|
|
65820
65820
|
};
|
|
65821
65821
|
super(initialState, () => {
|
|
65822
65822
|
return () => {
|
|
@@ -65854,7 +65854,7 @@ var DocumentStore = class extends Writable {
|
|
|
65854
65854
|
text: this.#artifact.raw,
|
|
65855
65855
|
hash: this.#artifact.hash,
|
|
65856
65856
|
policy: policy ?? this.#artifact.policy,
|
|
65857
|
-
variables:
|
|
65857
|
+
variables: null,
|
|
65858
65858
|
metadata,
|
|
65859
65859
|
session,
|
|
65860
65860
|
fetch: fetch3,
|
|
@@ -65871,7 +65871,7 @@ var DocumentStore = class extends Writable {
|
|
|
65871
65871
|
cacheParams
|
|
65872
65872
|
});
|
|
65873
65873
|
const draft = context.draft();
|
|
65874
|
-
draft.variables = variables ??
|
|
65874
|
+
draft.variables = variables ?? null;
|
|
65875
65875
|
context = context.apply(draft, false);
|
|
65876
65876
|
return await new Promise((resolve2, reject) => {
|
|
65877
65877
|
const state = {
|
|
@@ -66049,7 +66049,7 @@ var ClientPluginContextWrapper = class {
|
|
|
66049
66049
|
ctx.stuff = val;
|
|
66050
66050
|
},
|
|
66051
66051
|
get variables() {
|
|
66052
|
-
return ctx.variables ??
|
|
66052
|
+
return ctx.variables ?? null;
|
|
66053
66053
|
},
|
|
66054
66054
|
set variables(val) {
|
|
66055
66055
|
Object.assign(ctx, applyVariables(ctx, { variables: val }));
|
package/build/lib-esm/index.js
CHANGED
|
@@ -65444,7 +65444,7 @@ var cachePolicy = ({
|
|
|
65444
65444
|
if (policy === CachePolicy.CacheOnly) {
|
|
65445
65445
|
return resolve2(ctx, {
|
|
65446
65446
|
fetching: false,
|
|
65447
|
-
variables: ctx.variables ??
|
|
65447
|
+
variables: ctx.variables ?? null,
|
|
65448
65448
|
data: allowed ? value.data : initialValue.data,
|
|
65449
65449
|
errors: null,
|
|
65450
65450
|
source: DataSource.Cache,
|
|
@@ -65456,7 +65456,7 @@ var cachePolicy = ({
|
|
|
65456
65456
|
if (useCache) {
|
|
65457
65457
|
resolve2(ctx, {
|
|
65458
65458
|
fetching: false,
|
|
65459
|
-
variables: ctx.variables ??
|
|
65459
|
+
variables: ctx.variables ?? null,
|
|
65460
65460
|
data: value.data,
|
|
65461
65461
|
errors: null,
|
|
65462
65462
|
source: DataSource.Cache,
|
|
@@ -65765,7 +65765,7 @@ var DocumentStore = class extends Writable {
|
|
|
65765
65765
|
stale: false,
|
|
65766
65766
|
source: null,
|
|
65767
65767
|
fetching,
|
|
65768
|
-
variables:
|
|
65768
|
+
variables: null
|
|
65769
65769
|
};
|
|
65770
65770
|
super(initialState, () => {
|
|
65771
65771
|
return () => {
|
|
@@ -65803,7 +65803,7 @@ var DocumentStore = class extends Writable {
|
|
|
65803
65803
|
text: this.#artifact.raw,
|
|
65804
65804
|
hash: this.#artifact.hash,
|
|
65805
65805
|
policy: policy ?? this.#artifact.policy,
|
|
65806
|
-
variables:
|
|
65806
|
+
variables: null,
|
|
65807
65807
|
metadata,
|
|
65808
65808
|
session,
|
|
65809
65809
|
fetch: fetch3,
|
|
@@ -65820,7 +65820,7 @@ var DocumentStore = class extends Writable {
|
|
|
65820
65820
|
cacheParams
|
|
65821
65821
|
});
|
|
65822
65822
|
const draft = context.draft();
|
|
65823
|
-
draft.variables = variables ??
|
|
65823
|
+
draft.variables = variables ?? null;
|
|
65824
65824
|
context = context.apply(draft, false);
|
|
65825
65825
|
return await new Promise((resolve2, reject) => {
|
|
65826
65826
|
const state = {
|
|
@@ -65998,7 +65998,7 @@ var ClientPluginContextWrapper = class {
|
|
|
65998
65998
|
ctx.stuff = val;
|
|
65999
65999
|
},
|
|
66000
66000
|
get variables() {
|
|
66001
|
-
return ctx.variables ??
|
|
66001
|
+
return ctx.variables ?? null;
|
|
66002
66002
|
},
|
|
66003
66003
|
set variables(val) {
|
|
66004
66004
|
Object.assign(ctx, applyVariables(ctx, { variables: val }));
|
|
@@ -35,7 +35,7 @@ export type ClientPluginContext = {
|
|
|
35
35
|
artifact: DocumentArtifact;
|
|
36
36
|
policy?: CachePolicies;
|
|
37
37
|
fetch?: Fetch;
|
|
38
|
-
variables?: Record<string, any
|
|
38
|
+
variables?: Record<string, any> | null;
|
|
39
39
|
metadata?: App.Metadata | null;
|
|
40
40
|
session?: App.Session | null;
|
|
41
41
|
fetchParams?: RequestInit;
|
|
@@ -173,7 +173,7 @@ export type QueryResult<_Data = GraphQLObject, _Input = Record<string, any>> = {
|
|
|
173
173
|
partial: boolean;
|
|
174
174
|
stale: boolean;
|
|
175
175
|
source: DataSources | null;
|
|
176
|
-
variables: _Input |
|
|
176
|
+
variables: _Input | null;
|
|
177
177
|
};
|
|
178
178
|
export type RequestPayload<GraphQLObject = any> = {
|
|
179
179
|
data: GraphQLObject | null;
|
|
@@ -35,7 +35,7 @@ export type ClientPluginContext = {
|
|
|
35
35
|
artifact: DocumentArtifact;
|
|
36
36
|
policy?: CachePolicies;
|
|
37
37
|
fetch?: Fetch;
|
|
38
|
-
variables?: Record<string, any
|
|
38
|
+
variables?: Record<string, any> | null;
|
|
39
39
|
metadata?: App.Metadata | null;
|
|
40
40
|
session?: App.Session | null;
|
|
41
41
|
fetchParams?: RequestInit;
|
|
@@ -55,7 +55,7 @@ class DocumentStore extends import_store.Writable {
|
|
|
55
55
|
stale: false,
|
|
56
56
|
source: null,
|
|
57
57
|
fetching,
|
|
58
|
-
variables:
|
|
58
|
+
variables: null
|
|
59
59
|
};
|
|
60
60
|
super(initialState, () => {
|
|
61
61
|
return () => {
|
|
@@ -93,7 +93,7 @@ class DocumentStore extends import_store.Writable {
|
|
|
93
93
|
text: this.#artifact.raw,
|
|
94
94
|
hash: this.#artifact.hash,
|
|
95
95
|
policy: policy ?? this.#artifact.policy,
|
|
96
|
-
variables:
|
|
96
|
+
variables: null,
|
|
97
97
|
metadata,
|
|
98
98
|
session,
|
|
99
99
|
fetch,
|
|
@@ -110,7 +110,7 @@ class DocumentStore extends import_store.Writable {
|
|
|
110
110
|
cacheParams
|
|
111
111
|
});
|
|
112
112
|
const draft = context.draft();
|
|
113
|
-
draft.variables = variables ??
|
|
113
|
+
draft.variables = variables ?? null;
|
|
114
114
|
context = context.apply(draft, false);
|
|
115
115
|
return await new Promise((resolve, reject) => {
|
|
116
116
|
const state = {
|
|
@@ -288,7 +288,7 @@ class ClientPluginContextWrapper {
|
|
|
288
288
|
ctx.stuff = val;
|
|
289
289
|
},
|
|
290
290
|
get variables() {
|
|
291
|
-
return ctx.variables ??
|
|
291
|
+
return ctx.variables ?? null;
|
|
292
292
|
},
|
|
293
293
|
set variables(val) {
|
|
294
294
|
Object.assign(ctx, applyVariables(ctx, { variables: val }));
|
|
@@ -48,7 +48,7 @@ const cachePolicy = ({
|
|
|
48
48
|
if (policy === import_types.CachePolicy.CacheOnly) {
|
|
49
49
|
return resolve(ctx, {
|
|
50
50
|
fetching: false,
|
|
51
|
-
variables: ctx.variables ??
|
|
51
|
+
variables: ctx.variables ?? null,
|
|
52
52
|
data: allowed ? value.data : initialValue.data,
|
|
53
53
|
errors: null,
|
|
54
54
|
source: import_types.DataSource.Cache,
|
|
@@ -60,7 +60,7 @@ const cachePolicy = ({
|
|
|
60
60
|
if (useCache) {
|
|
61
61
|
resolve(ctx, {
|
|
62
62
|
fetching: false,
|
|
63
|
-
variables: ctx.variables ??
|
|
63
|
+
variables: ctx.variables ?? null,
|
|
64
64
|
data: value.data,
|
|
65
65
|
errors: null,
|
|
66
66
|
source: import_types.DataSource.Cache,
|
|
@@ -173,7 +173,7 @@ export type QueryResult<_Data = GraphQLObject, _Input = Record<string, any>> = {
|
|
|
173
173
|
partial: boolean;
|
|
174
174
|
stale: boolean;
|
|
175
175
|
source: DataSources | null;
|
|
176
|
-
variables: _Input |
|
|
176
|
+
variables: _Input | null;
|
|
177
177
|
};
|
|
178
178
|
export type RequestPayload<GraphQLObject = any> = {
|
|
179
179
|
data: GraphQLObject | null;
|
|
@@ -35,7 +35,7 @@ export type ClientPluginContext = {
|
|
|
35
35
|
artifact: DocumentArtifact;
|
|
36
36
|
policy?: CachePolicies;
|
|
37
37
|
fetch?: Fetch;
|
|
38
|
-
variables?: Record<string, any
|
|
38
|
+
variables?: Record<string, any> | null;
|
|
39
39
|
metadata?: App.Metadata | null;
|
|
40
40
|
session?: App.Session | null;
|
|
41
41
|
fetchParams?: RequestInit;
|
|
@@ -32,7 +32,7 @@ class DocumentStore extends Writable {
|
|
|
32
32
|
stale: false,
|
|
33
33
|
source: null,
|
|
34
34
|
fetching,
|
|
35
|
-
variables:
|
|
35
|
+
variables: null
|
|
36
36
|
};
|
|
37
37
|
super(initialState, () => {
|
|
38
38
|
return () => {
|
|
@@ -70,7 +70,7 @@ class DocumentStore extends Writable {
|
|
|
70
70
|
text: this.#artifact.raw,
|
|
71
71
|
hash: this.#artifact.hash,
|
|
72
72
|
policy: policy ?? this.#artifact.policy,
|
|
73
|
-
variables:
|
|
73
|
+
variables: null,
|
|
74
74
|
metadata,
|
|
75
75
|
session,
|
|
76
76
|
fetch,
|
|
@@ -87,7 +87,7 @@ class DocumentStore extends Writable {
|
|
|
87
87
|
cacheParams
|
|
88
88
|
});
|
|
89
89
|
const draft = context.draft();
|
|
90
|
-
draft.variables = variables ??
|
|
90
|
+
draft.variables = variables ?? null;
|
|
91
91
|
context = context.apply(draft, false);
|
|
92
92
|
return await new Promise((resolve, reject) => {
|
|
93
93
|
const state = {
|
|
@@ -265,7 +265,7 @@ class ClientPluginContextWrapper {
|
|
|
265
265
|
ctx.stuff = val;
|
|
266
266
|
},
|
|
267
267
|
get variables() {
|
|
268
|
-
return ctx.variables ??
|
|
268
|
+
return ctx.variables ?? null;
|
|
269
269
|
},
|
|
270
270
|
set variables(val) {
|
|
271
271
|
Object.assign(ctx, applyVariables(ctx, { variables: val }));
|
|
@@ -19,7 +19,7 @@ const cachePolicy = ({
|
|
|
19
19
|
if (policy === CachePolicy.CacheOnly) {
|
|
20
20
|
return resolve(ctx, {
|
|
21
21
|
fetching: false,
|
|
22
|
-
variables: ctx.variables ??
|
|
22
|
+
variables: ctx.variables ?? null,
|
|
23
23
|
data: allowed ? value.data : initialValue.data,
|
|
24
24
|
errors: null,
|
|
25
25
|
source: DataSource.Cache,
|
|
@@ -31,7 +31,7 @@ const cachePolicy = ({
|
|
|
31
31
|
if (useCache) {
|
|
32
32
|
resolve(ctx, {
|
|
33
33
|
fetching: false,
|
|
34
|
-
variables: ctx.variables ??
|
|
34
|
+
variables: ctx.variables ?? null,
|
|
35
35
|
data: value.data,
|
|
36
36
|
errors: null,
|
|
37
37
|
source: DataSource.Cache,
|
|
@@ -173,7 +173,7 @@ export type QueryResult<_Data = GraphQLObject, _Input = Record<string, any>> = {
|
|
|
173
173
|
partial: boolean;
|
|
174
174
|
stale: boolean;
|
|
175
175
|
source: DataSources | null;
|
|
176
|
-
variables: _Input |
|
|
176
|
+
variables: _Input | null;
|
|
177
177
|
};
|
|
178
178
|
export type RequestPayload<GraphQLObject = any> = {
|
|
179
179
|
data: GraphQLObject | null;
|