houdini 1.0.0-next.20 → 1.0.0-next.21
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/lib/types.d.ts +1 -1
- package/build/runtime-cjs/client/documentStore.js +1 -1
- package/build/runtime-cjs/client/plugins/cache.js +2 -2
- 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-cjs/lib/types.d.ts +1 -1
- package/build/runtime-esm/client/documentStore.js +1 -1
- package/build/runtime-esm/client/plugins/cache.js +2 -2
- 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/runtime-esm/lib/types.d.ts +1 -1
- 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.21",
|
|
78687
|
+
"houdini-svelte": "^1.0.0-next.21"
|
|
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.21",
|
|
78692
|
+
"houdini-svelte": "^1.0.0-next.21"
|
|
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,
|
|
@@ -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 ?? {},
|
|
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 ?? {},
|
|
65511
65511
|
data: value.data,
|
|
65512
65512
|
errors: null,
|
|
65513
65513
|
source: DataSource.Cache,
|
|
@@ -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() {
|
|
@@ -65816,7 +65816,7 @@ var DocumentStore = class extends Writable {
|
|
|
65816
65816
|
stale: false,
|
|
65817
65817
|
source: null,
|
|
65818
65818
|
fetching,
|
|
65819
|
-
variables:
|
|
65819
|
+
variables: {}
|
|
65820
65820
|
};
|
|
65821
65821
|
super(initialState, () => {
|
|
65822
65822
|
return () => {
|
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,
|
|
@@ -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 ?? {},
|
|
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 ?? {},
|
|
65460
65460
|
data: value.data,
|
|
65461
65461
|
errors: null,
|
|
65462
65462
|
source: DataSource.Cache,
|
|
@@ -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() {
|
|
@@ -65765,7 +65765,7 @@ var DocumentStore = class extends Writable {
|
|
|
65765
65765
|
stale: false,
|
|
65766
65766
|
source: null,
|
|
65767
65767
|
fetching,
|
|
65768
|
-
variables:
|
|
65768
|
+
variables: {}
|
|
65769
65769
|
};
|
|
65770
65770
|
super(initialState, () => {
|
|
65771
65771
|
return () => {
|
|
@@ -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 | {};
|
|
177
177
|
};
|
|
178
178
|
export type RequestPayload<GraphQLObject = any> = {
|
|
179
179
|
data: GraphQLObject | null;
|
|
@@ -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 ?? {},
|
|
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 ?? {},
|
|
64
64
|
data: value.data,
|
|
65
65
|
errors: null,
|
|
66
66
|
source: import_types.DataSource.Cache,
|
|
@@ -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() {
|
|
@@ -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 | {};
|
|
177
177
|
};
|
|
178
178
|
export type RequestPayload<GraphQLObject = any> = {
|
|
179
179
|
data: GraphQLObject | null;
|
|
@@ -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 ?? {},
|
|
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 ?? {},
|
|
35
35
|
data: value.data,
|
|
36
36
|
errors: null,
|
|
37
37
|
source: DataSource.Cache,
|
|
@@ -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() {
|
|
@@ -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 | {};
|
|
177
177
|
};
|
|
178
178
|
export type RequestPayload<GraphQLObject = any> = {
|
|
179
179
|
data: GraphQLObject | null;
|
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
|
};
|