houdini 1.2.12 → 1.2.13
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/init.d.ts +1 -0
- package/build/cmd-cjs/index.js +36 -31
- package/build/cmd-esm/index.js +35 -30
- package/build/codegen-cjs/index.js +7 -8
- package/build/codegen-esm/index.js +7 -8
- package/build/lib/index.d.ts +1 -1
- package/build/{router → lib/router}/conventions.d.ts +1 -1
- package/build/{router → lib/router}/index.d.ts +1 -1
- package/build/{router → lib/router}/manifest.d.ts +2 -2
- package/build/{router → lib/router}/server.d.ts +2 -2
- package/build/{router → lib/router}/types.d.ts +1 -1
- package/build/lib/types.d.ts +1 -1
- package/build/lib-cjs/index.js +8 -8
- package/build/lib-esm/index.js +6 -6
- package/build/test-cjs/index.js +11 -8
- package/build/test-esm/index.js +11 -8
- package/build/vite-cjs/index.js +15 -13
- package/build/vite-esm/index.js +14 -12
- package/package.json +1 -9
- package/build/router-cjs/index.js +0 -57736
- package/build/router-cjs/package.json +0 -1
- package/build/router-esm/index.js +0 -57726
- package/build/router-esm/package.json +0 -1
package/build/test-esm/index.js
CHANGED
|
@@ -57972,13 +57972,10 @@ async function cleanupFiles(pathFolder, listOfObj) {
|
|
|
57972
57972
|
// src/lib/walk.ts
|
|
57973
57973
|
import * as graphql4 from "graphql";
|
|
57974
57974
|
|
|
57975
|
-
// src/router/manifest.ts
|
|
57975
|
+
// src/lib/router/manifest.ts
|
|
57976
57976
|
var t = __toESM(require_lib6(), 1);
|
|
57977
57977
|
import * as graphql5 from "graphql";
|
|
57978
57978
|
|
|
57979
|
-
// src/router/server.ts
|
|
57980
|
-
import { build } from "vite";
|
|
57981
|
-
|
|
57982
57979
|
// src/codegen/generators/artifacts/index.ts
|
|
57983
57980
|
var recast5 = __toESM(require_main2(), 1);
|
|
57984
57981
|
import * as graphql15 from "graphql";
|
|
@@ -58985,9 +58982,11 @@ function serializeValue(value) {
|
|
|
58985
58982
|
}
|
|
58986
58983
|
if (typeof value === "object" && value !== null) {
|
|
58987
58984
|
return AST4.objectExpression(
|
|
58988
|
-
Object.entries(value).filter(
|
|
58989
|
-
([key, value2]) =>
|
|
58990
|
-
)
|
|
58985
|
+
Object.entries(value).filter(
|
|
58986
|
+
([key, value2]) => typeof value2 !== "undefined" && key !== "prev" && key !== "next"
|
|
58987
|
+
).map(([key, val]) => {
|
|
58988
|
+
return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
|
|
58989
|
+
})
|
|
58991
58990
|
);
|
|
58992
58991
|
}
|
|
58993
58992
|
if (typeof value === "string") {
|
|
@@ -63218,7 +63217,7 @@ function validateFragmentArguments(config2, filepath, fragments) {
|
|
|
63218
63217
|
if (missing.length > 0) {
|
|
63219
63218
|
ctx.reportError(
|
|
63220
63219
|
new graphql26.GraphQLError(
|
|
63221
|
-
|
|
63220
|
+
`The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
|
|
63222
63221
|
)
|
|
63223
63222
|
);
|
|
63224
63223
|
return;
|
|
@@ -63882,6 +63881,10 @@ function testConfigFile({ plugins, ...config2 } = {}) {
|
|
|
63882
63881
|
|
|
63883
63882
|
directive @live on QUERY
|
|
63884
63883
|
|
|
63884
|
+
input MyInput {
|
|
63885
|
+
string: String
|
|
63886
|
+
}
|
|
63887
|
+
|
|
63885
63888
|
type User implements Node & Friend & CatOwner {
|
|
63886
63889
|
id: ID!
|
|
63887
63890
|
name: String!
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -70788,7 +70788,7 @@ async function find_graphql(config4, parsedScript, walker) {
|
|
|
70788
70788
|
});
|
|
70789
70789
|
}
|
|
70790
70790
|
|
|
70791
|
-
// src/router/conventions.ts
|
|
70791
|
+
// src/lib/router/conventions.ts
|
|
70792
70792
|
var conventions_exports = {};
|
|
70793
70793
|
__export(conventions_exports, {
|
|
70794
70794
|
fallback_unit_path: () => fallback_unit_path,
|
|
@@ -70910,7 +70910,7 @@ function serialized_manifest_path(config4, base = base_dir(config4)) {
|
|
|
70910
70910
|
return path_exports.join(base, "manifest.json");
|
|
70911
70911
|
}
|
|
70912
70912
|
|
|
70913
|
-
// src/router/manifest.ts
|
|
70913
|
+
// src/lib/router/manifest.ts
|
|
70914
70914
|
var t2 = __toESM(require_lib6(), 1);
|
|
70915
70915
|
var graphql5 = __toESM(require("graphql"), 1);
|
|
70916
70916
|
async function load_manifest(args) {
|
|
@@ -71136,15 +71136,15 @@ async function extractQueries(source) {
|
|
|
71136
71136
|
return props.filter((p) => p !== "children");
|
|
71137
71137
|
}
|
|
71138
71138
|
|
|
71139
|
-
// src/router/server.ts
|
|
71139
|
+
// src/lib/router/server.ts
|
|
71140
71140
|
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
71141
|
-
|
|
71142
|
-
function isViteSchemaBuild() {
|
|
71141
|
+
function isSecondaryBuild() {
|
|
71143
71142
|
return process.env.HOUDINI_SCHEMA_BUILD === "true";
|
|
71144
71143
|
}
|
|
71145
71144
|
async function loadLocalSchema(config4) {
|
|
71145
|
+
const { build } = await import("vite");
|
|
71146
71146
|
process.env.HOUDINI_SCHEMA_BUILD = "true";
|
|
71147
|
-
await
|
|
71147
|
+
await build({
|
|
71148
71148
|
logLevel: "silent",
|
|
71149
71149
|
build: {
|
|
71150
71150
|
outDir: import_node_path2.default.join(config4.rootDir, "temp"),
|
|
@@ -72173,9 +72173,11 @@ function serializeValue(value) {
|
|
|
72173
72173
|
}
|
|
72174
72174
|
if (typeof value === "object" && value !== null) {
|
|
72175
72175
|
return AST4.objectExpression(
|
|
72176
|
-
Object.entries(value).filter(
|
|
72177
|
-
([key, value2]) =>
|
|
72178
|
-
)
|
|
72176
|
+
Object.entries(value).filter(
|
|
72177
|
+
([key, value2]) => typeof value2 !== "undefined" && key !== "prev" && key !== "next"
|
|
72178
|
+
).map(([key, val]) => {
|
|
72179
|
+
return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
|
|
72180
|
+
})
|
|
72179
72181
|
);
|
|
72180
72182
|
}
|
|
72181
72183
|
if (typeof value === "string") {
|
|
@@ -76406,7 +76408,7 @@ function validateFragmentArguments(config4, filepath, fragments) {
|
|
|
76406
76408
|
if (missing.length > 0) {
|
|
76407
76409
|
ctx.reportError(
|
|
76408
76410
|
new graphql26.GraphQLError(
|
|
76409
|
-
|
|
76411
|
+
`The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
|
|
76410
76412
|
)
|
|
76411
76413
|
);
|
|
76412
76414
|
return;
|
|
@@ -77228,7 +77230,7 @@ function Plugin(opts = {}) {
|
|
|
77228
77230
|
}
|
|
77229
77231
|
},
|
|
77230
77232
|
async configResolved(conf) {
|
|
77231
|
-
if (!
|
|
77233
|
+
if (!isSecondaryBuild()) {
|
|
77232
77234
|
viteConfig = conf;
|
|
77233
77235
|
}
|
|
77234
77236
|
for (const plugin2 of config3.plugins) {
|
|
@@ -77239,7 +77241,7 @@ function Plugin(opts = {}) {
|
|
|
77239
77241
|
}
|
|
77240
77242
|
},
|
|
77241
77243
|
async closeBundle() {
|
|
77242
|
-
if (
|
|
77244
|
+
if (isSecondaryBuild() || viteEnv.mode !== "production") {
|
|
77243
77245
|
return;
|
|
77244
77246
|
}
|
|
77245
77247
|
for (const plugin2 of config3.plugins) {
|
|
@@ -77272,7 +77274,7 @@ function Plugin(opts = {}) {
|
|
|
77272
77274
|
},
|
|
77273
77275
|
async buildStart(args) {
|
|
77274
77276
|
if (viteEnv.mode === "production") {
|
|
77275
|
-
if (config3.localSchema && !
|
|
77277
|
+
if (config3.localSchema && !isSecondaryBuild()) {
|
|
77276
77278
|
config3.schema = await loadLocalSchema(config3);
|
|
77277
77279
|
}
|
|
77278
77280
|
try {
|
package/build/vite-esm/index.js
CHANGED
|
@@ -70782,7 +70782,7 @@ async function find_graphql(config4, parsedScript, walker) {
|
|
|
70782
70782
|
});
|
|
70783
70783
|
}
|
|
70784
70784
|
|
|
70785
|
-
// src/router/conventions.ts
|
|
70785
|
+
// src/lib/router/conventions.ts
|
|
70786
70786
|
var conventions_exports = {};
|
|
70787
70787
|
__export(conventions_exports, {
|
|
70788
70788
|
fallback_unit_path: () => fallback_unit_path,
|
|
@@ -70904,7 +70904,7 @@ function serialized_manifest_path(config4, base = base_dir(config4)) {
|
|
|
70904
70904
|
return path_exports.join(base, "manifest.json");
|
|
70905
70905
|
}
|
|
70906
70906
|
|
|
70907
|
-
// src/router/manifest.ts
|
|
70907
|
+
// src/lib/router/manifest.ts
|
|
70908
70908
|
var t2 = __toESM(require_lib6(), 1);
|
|
70909
70909
|
import * as graphql5 from "graphql";
|
|
70910
70910
|
async function load_manifest(args) {
|
|
@@ -71130,13 +71130,13 @@ async function extractQueries(source) {
|
|
|
71130
71130
|
return props.filter((p) => p !== "children");
|
|
71131
71131
|
}
|
|
71132
71132
|
|
|
71133
|
-
// src/router/server.ts
|
|
71133
|
+
// src/lib/router/server.ts
|
|
71134
71134
|
import path2 from "node:path";
|
|
71135
|
-
|
|
71136
|
-
function isViteSchemaBuild() {
|
|
71135
|
+
function isSecondaryBuild() {
|
|
71137
71136
|
return process.env.HOUDINI_SCHEMA_BUILD === "true";
|
|
71138
71137
|
}
|
|
71139
71138
|
async function loadLocalSchema(config4) {
|
|
71139
|
+
const { build } = await import("vite");
|
|
71140
71140
|
process.env.HOUDINI_SCHEMA_BUILD = "true";
|
|
71141
71141
|
await build({
|
|
71142
71142
|
logLevel: "silent",
|
|
@@ -72167,9 +72167,11 @@ function serializeValue(value) {
|
|
|
72167
72167
|
}
|
|
72168
72168
|
if (typeof value === "object" && value !== null) {
|
|
72169
72169
|
return AST4.objectExpression(
|
|
72170
|
-
Object.entries(value).filter(
|
|
72171
|
-
([key, value2]) =>
|
|
72172
|
-
)
|
|
72170
|
+
Object.entries(value).filter(
|
|
72171
|
+
([key, value2]) => typeof value2 !== "undefined" && key !== "prev" && key !== "next"
|
|
72172
|
+
).map(([key, val]) => {
|
|
72173
|
+
return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
|
|
72174
|
+
})
|
|
72173
72175
|
);
|
|
72174
72176
|
}
|
|
72175
72177
|
if (typeof value === "string") {
|
|
@@ -76400,7 +76402,7 @@ function validateFragmentArguments(config4, filepath, fragments) {
|
|
|
76400
76402
|
if (missing.length > 0) {
|
|
76401
76403
|
ctx.reportError(
|
|
76402
76404
|
new graphql26.GraphQLError(
|
|
76403
|
-
|
|
76405
|
+
`The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
|
|
76404
76406
|
)
|
|
76405
76407
|
);
|
|
76406
76408
|
return;
|
|
@@ -77222,7 +77224,7 @@ function Plugin(opts = {}) {
|
|
|
77222
77224
|
}
|
|
77223
77225
|
},
|
|
77224
77226
|
async configResolved(conf) {
|
|
77225
|
-
if (!
|
|
77227
|
+
if (!isSecondaryBuild()) {
|
|
77226
77228
|
viteConfig = conf;
|
|
77227
77229
|
}
|
|
77228
77230
|
for (const plugin2 of config3.plugins) {
|
|
@@ -77233,7 +77235,7 @@ function Plugin(opts = {}) {
|
|
|
77233
77235
|
}
|
|
77234
77236
|
},
|
|
77235
77237
|
async closeBundle() {
|
|
77236
|
-
if (
|
|
77238
|
+
if (isSecondaryBuild() || viteEnv.mode !== "production") {
|
|
77237
77239
|
return;
|
|
77238
77240
|
}
|
|
77239
77241
|
for (const plugin2 of config3.plugins) {
|
|
@@ -77266,7 +77268,7 @@ function Plugin(opts = {}) {
|
|
|
77266
77268
|
},
|
|
77267
77269
|
async buildStart(args) {
|
|
77268
77270
|
if (viteEnv.mode === "production") {
|
|
77269
|
-
if (config3.localSchema && !
|
|
77271
|
+
if (config3.localSchema && !isSecondaryBuild()) {
|
|
77270
77272
|
config3.schema = await loadLocalSchema(config3);
|
|
77271
77273
|
}
|
|
77272
77274
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "The disappearing GraphQL clients",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -69,11 +69,6 @@
|
|
|
69
69
|
"import": "./build/lib-esm/index.js",
|
|
70
70
|
"require": "./build/lib-cjs/index.js"
|
|
71
71
|
},
|
|
72
|
-
"./router": {
|
|
73
|
-
"types": "./build/router/index.d.ts",
|
|
74
|
-
"import": "./build/router-esm/index.js",
|
|
75
|
-
"require": "./build/router-cjs/index.js"
|
|
76
|
-
},
|
|
77
72
|
"./test": {
|
|
78
73
|
"types": "./build/test/index.d.ts",
|
|
79
74
|
"import": "./build/test-esm/index.js",
|
|
@@ -90,9 +85,6 @@
|
|
|
90
85
|
"codegen": [
|
|
91
86
|
"build/codegen/index.d.ts"
|
|
92
87
|
],
|
|
93
|
-
"router": [
|
|
94
|
-
"build/router/index.d.ts"
|
|
95
|
-
],
|
|
96
88
|
"test": [
|
|
97
89
|
"build/test/index.d.ts"
|
|
98
90
|
],
|