houdini 1.0.0-next.20 → 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 +3 -3
- package/build/cmd-esm/index.js +3 -3
- package/build/codegen-cjs/index.js +1 -1
- package/build/codegen-esm/index.js +1 -1
- package/build/lib-cjs/index.js +7 -7
- package/build/lib-esm/index.js +7 -7
- package/build/runtime/client/documentStore.d.ts +1 -1
- package/build/runtime-cjs/client/documentStore.d.ts +1 -1
- package/build/runtime-cjs/client/documentStore.js +3 -3
- package/build/runtime-cjs/client/plugins/fetch.js +1 -1
- package/build/runtime-cjs/client/plugins/query.js +1 -1
- package/build/runtime-cjs/client/plugins/subscription.js +2 -2
- package/build/runtime-esm/client/documentStore.d.ts +1 -1
- package/build/runtime-esm/client/documentStore.js +3 -3
- package/build/runtime-esm/client/plugins/fetch.js +1 -1
- package/build/runtime-esm/client/plugins/query.js +1 -1
- package/build/runtime-esm/client/plugins/subscription.js +2 -2
- package/build/test-cjs/index.js +1 -1
- package/build/test-esm/index.js +1 -1
- package/build/vite-cjs/index.js +1 -1
- package/build/vite-esm/index.js +1 -1
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -72004,7 +72004,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
72004
72004
|
partial: false,
|
|
72005
72005
|
stale: false,
|
|
72006
72006
|
source: DataSource.Cache,
|
|
72007
|
-
variables: ctx.variables ??
|
|
72007
|
+
variables: ctx.variables ?? {}
|
|
72008
72008
|
});
|
|
72009
72009
|
}
|
|
72010
72010
|
};
|
|
@@ -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
|
@@ -72010,7 +72010,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
72010
72010
|
partial: false,
|
|
72011
72011
|
stale: false,
|
|
72012
72012
|
source: DataSource.Cache,
|
|
72013
|
-
variables: ctx.variables ??
|
|
72013
|
+
variables: ctx.variables ?? {}
|
|
72014
72014
|
});
|
|
72015
72015
|
}
|
|
72016
72016
|
};
|
|
@@ -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
|
}
|
|
@@ -56482,7 +56482,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
56482
56482
|
partial: false,
|
|
56483
56483
|
stale: false,
|
|
56484
56484
|
source: DataSource.Cache,
|
|
56485
|
-
variables: ctx.variables ??
|
|
56485
|
+
variables: ctx.variables ?? {}
|
|
56486
56486
|
});
|
|
56487
56487
|
}
|
|
56488
56488
|
};
|
|
@@ -56481,7 +56481,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
56481
56481
|
partial: false,
|
|
56482
56482
|
stale: false,
|
|
56483
56483
|
source: DataSource.Cache,
|
|
56484
|
-
variables: ctx.variables ??
|
|
56484
|
+
variables: ctx.variables ?? {}
|
|
56485
56485
|
});
|
|
56486
56486
|
}
|
|
56487
56487
|
};
|
package/build/lib-cjs/index.js
CHANGED
|
@@ -63515,7 +63515,7 @@ var fetch2 = (target) => {
|
|
|
63515
63515
|
});
|
|
63516
63516
|
resolve2(ctx, {
|
|
63517
63517
|
fetching: false,
|
|
63518
|
-
variables: ctx.variables ??
|
|
63518
|
+
variables: ctx.variables ?? {},
|
|
63519
63519
|
data: result.data,
|
|
63520
63520
|
errors: !result.errors || result.errors.length === 0 ? null : result.errors,
|
|
63521
63521
|
partial: false,
|
|
@@ -65606,7 +65606,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
65606
65606
|
partial: false,
|
|
65607
65607
|
stale: false,
|
|
65608
65608
|
source: DataSource.Cache,
|
|
65609
|
-
variables: ctx.variables ??
|
|
65609
|
+
variables: ctx.variables ?? {}
|
|
65610
65610
|
});
|
|
65611
65611
|
}
|
|
65612
65612
|
};
|
|
@@ -65719,7 +65719,7 @@ function subscription(factory) {
|
|
|
65719
65719
|
partial: true,
|
|
65720
65720
|
stale: false,
|
|
65721
65721
|
source: DataSource.Network,
|
|
65722
|
-
variables: ctx.variables ??
|
|
65722
|
+
variables: ctx.variables ?? {}
|
|
65723
65723
|
});
|
|
65724
65724
|
},
|
|
65725
65725
|
error(data) {
|
|
@@ -65731,7 +65731,7 @@ function subscription(factory) {
|
|
|
65731
65731
|
data: null,
|
|
65732
65732
|
errors: [data],
|
|
65733
65733
|
fetching: false,
|
|
65734
|
-
variables: ctx.variables ??
|
|
65734
|
+
variables: ctx.variables ?? {}
|
|
65735
65735
|
});
|
|
65736
65736
|
},
|
|
65737
65737
|
complete() {
|
|
@@ -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
|
@@ -63464,7 +63464,7 @@ var fetch2 = (target) => {
|
|
|
63464
63464
|
});
|
|
63465
63465
|
resolve2(ctx, {
|
|
63466
63466
|
fetching: false,
|
|
63467
|
-
variables: ctx.variables ??
|
|
63467
|
+
variables: ctx.variables ?? {},
|
|
63468
63468
|
data: result.data,
|
|
63469
63469
|
errors: !result.errors || result.errors.length === 0 ? null : result.errors,
|
|
63470
63470
|
partial: false,
|
|
@@ -65555,7 +65555,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
65555
65555
|
partial: false,
|
|
65556
65556
|
stale: false,
|
|
65557
65557
|
source: DataSource.Cache,
|
|
65558
|
-
variables: ctx.variables ??
|
|
65558
|
+
variables: ctx.variables ?? {}
|
|
65559
65559
|
});
|
|
65560
65560
|
}
|
|
65561
65561
|
};
|
|
@@ -65668,7 +65668,7 @@ function subscription(factory) {
|
|
|
65668
65668
|
partial: true,
|
|
65669
65669
|
stale: false,
|
|
65670
65670
|
source: DataSource.Network,
|
|
65671
|
-
variables: ctx.variables ??
|
|
65671
|
+
variables: ctx.variables ?? {}
|
|
65672
65672
|
});
|
|
65673
65673
|
},
|
|
65674
65674
|
error(data) {
|
|
@@ -65680,7 +65680,7 @@ function subscription(factory) {
|
|
|
65680
65680
|
data: null,
|
|
65681
65681
|
errors: [data],
|
|
65682
65682
|
fetching: false,
|
|
65683
|
-
variables: ctx.variables ??
|
|
65683
|
+
variables: ctx.variables ?? {}
|
|
65684
65684
|
});
|
|
65685
65685
|
},
|
|
65686
65686
|
complete() {
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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 }));
|
|
@@ -53,7 +53,7 @@ const fetch = (target) => {
|
|
|
53
53
|
});
|
|
54
54
|
resolve(ctx, {
|
|
55
55
|
fetching: false,
|
|
56
|
-
variables: ctx.variables ??
|
|
56
|
+
variables: ctx.variables ?? {},
|
|
57
57
|
data: result.data,
|
|
58
58
|
errors: !result.errors || result.errors.length === 0 ? null : result.errors,
|
|
59
59
|
partial: false,
|
|
@@ -68,7 +68,7 @@ function subscription(factory) {
|
|
|
68
68
|
partial: true,
|
|
69
69
|
stale: false,
|
|
70
70
|
source: import_types.DataSource.Network,
|
|
71
|
-
variables: ctx.variables ??
|
|
71
|
+
variables: ctx.variables ?? {}
|
|
72
72
|
});
|
|
73
73
|
},
|
|
74
74
|
error(data) {
|
|
@@ -80,7 +80,7 @@ function subscription(factory) {
|
|
|
80
80
|
data: null,
|
|
81
81
|
errors: [data],
|
|
82
82
|
fetching: false,
|
|
83
|
-
variables: ctx.variables ??
|
|
83
|
+
variables: ctx.variables ?? {}
|
|
84
84
|
});
|
|
85
85
|
},
|
|
86
86
|
complete() {
|
|
@@ -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;
|
|
@@ -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 }));
|
|
@@ -28,7 +28,7 @@ const fetch = (target) => {
|
|
|
28
28
|
});
|
|
29
29
|
resolve(ctx, {
|
|
30
30
|
fetching: false,
|
|
31
|
-
variables: ctx.variables ??
|
|
31
|
+
variables: ctx.variables ?? {},
|
|
32
32
|
data: result.data,
|
|
33
33
|
errors: !result.errors || result.errors.length === 0 ? null : result.errors,
|
|
34
34
|
partial: false,
|
|
@@ -45,7 +45,7 @@ function subscription(factory) {
|
|
|
45
45
|
partial: true,
|
|
46
46
|
stale: false,
|
|
47
47
|
source: DataSource.Network,
|
|
48
|
-
variables: ctx.variables ??
|
|
48
|
+
variables: ctx.variables ?? {}
|
|
49
49
|
});
|
|
50
50
|
},
|
|
51
51
|
error(data) {
|
|
@@ -57,7 +57,7 @@ function subscription(factory) {
|
|
|
57
57
|
data: null,
|
|
58
58
|
errors: [data],
|
|
59
59
|
fetching: false,
|
|
60
|
-
variables: ctx.variables ??
|
|
60
|
+
variables: ctx.variables ?? {}
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
63
|
complete() {
|
package/build/test-cjs/index.js
CHANGED
|
@@ -56486,7 +56486,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
56486
56486
|
partial: false,
|
|
56487
56487
|
stale: false,
|
|
56488
56488
|
source: DataSource.Cache,
|
|
56489
|
-
variables: ctx.variables ??
|
|
56489
|
+
variables: ctx.variables ?? {}
|
|
56490
56490
|
});
|
|
56491
56491
|
}
|
|
56492
56492
|
};
|
package/build/test-esm/index.js
CHANGED
|
@@ -56482,7 +56482,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
56482
56482
|
partial: false,
|
|
56483
56483
|
stale: false,
|
|
56484
56484
|
source: DataSource.Cache,
|
|
56485
|
-
variables: ctx.variables ??
|
|
56485
|
+
variables: ctx.variables ?? {}
|
|
56486
56486
|
});
|
|
56487
56487
|
}
|
|
56488
56488
|
};
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -68869,7 +68869,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
68869
68869
|
partial: false,
|
|
68870
68870
|
stale: false,
|
|
68871
68871
|
source: DataSource.Cache,
|
|
68872
|
-
variables: ctx.variables ??
|
|
68872
|
+
variables: ctx.variables ?? {}
|
|
68873
68873
|
});
|
|
68874
68874
|
}
|
|
68875
68875
|
};
|
package/build/vite-esm/index.js
CHANGED
|
@@ -68864,7 +68864,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
68864
68864
|
partial: false,
|
|
68865
68865
|
stale: false,
|
|
68866
68866
|
source: DataSource.Cache,
|
|
68867
|
-
variables: ctx.variables ??
|
|
68867
|
+
variables: ctx.variables ?? {}
|
|
68868
68868
|
});
|
|
68869
68869
|
}
|
|
68870
68870
|
};
|