houdini 1.5.8 → 1.5.10
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 +45 -5
- package/build/cmd-esm/index.js +45 -5
- package/build/codegen-cjs/index.js +5 -0
- package/build/codegen-esm/index.js +5 -0
- package/build/test-cjs/index.js +5 -0
- package/build/test-esm/index.js +5 -0
- package/build/vite-cjs/index.js +228 -159
- package/build/vite-esm/index.js +228 -159
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -76346,6 +76346,11 @@ export * from "${module2}"
|
|
|
76346
76346
|
module: "./" + path_exports.relative(config.rootDir, config.pluginRuntimeDirectory(plugin2.name))
|
|
76347
76347
|
});
|
|
76348
76348
|
}
|
|
76349
|
+
if (plugin2.staticRuntime) {
|
|
76350
|
+
indexContent += exportStarFrom2({
|
|
76351
|
+
module: "./" + path_exports.relative(config.rootDir, config.pluginStaticRuntimeDirectory(plugin2.name))
|
|
76352
|
+
});
|
|
76353
|
+
}
|
|
76349
76354
|
}
|
|
76350
76355
|
await fs_exports.writeFile(config.typeIndexPath, indexContent);
|
|
76351
76356
|
const missingScalarNames = [...missingScalars].filter(
|
|
@@ -81869,6 +81874,28 @@ function pCancel(cancelText = "Operation cancelled.") {
|
|
|
81869
81874
|
}
|
|
81870
81875
|
async function init2(_path, args) {
|
|
81871
81876
|
ae("\u{1F3A9} Welcome to Houdini!");
|
|
81877
|
+
{
|
|
81878
|
+
const { confirm } = await $e(
|
|
81879
|
+
{
|
|
81880
|
+
confirm: () => {
|
|
81881
|
+
g2.warning(
|
|
81882
|
+
`You are using Houdini version "1.5.10", which doesn't support the latest svelte-kit and vite versions.
|
|
81883
|
+
We recommend re-running this with houdini@next. See what's new here: https://houdini-docs-next.netlify.app/guides/migrateTo20`
|
|
81884
|
+
);
|
|
81885
|
+
return Q2({
|
|
81886
|
+
message: "Continue anyway?",
|
|
81887
|
+
initialValue: false
|
|
81888
|
+
});
|
|
81889
|
+
}
|
|
81890
|
+
},
|
|
81891
|
+
{
|
|
81892
|
+
onCancel: () => pCancel()
|
|
81893
|
+
}
|
|
81894
|
+
);
|
|
81895
|
+
if (confirm !== true) {
|
|
81896
|
+
pCancel();
|
|
81897
|
+
}
|
|
81898
|
+
}
|
|
81872
81899
|
try {
|
|
81873
81900
|
await fs_exports.stat(path_exports.resolve("./src"));
|
|
81874
81901
|
} catch {
|
|
@@ -82033,7 +82060,10 @@ async function init2(_path, args) {
|
|
|
82033
82060
|
} else if (frameworkInfo.framework === "kit") {
|
|
82034
82061
|
await svelteConfig(targetPath, typescript);
|
|
82035
82062
|
}
|
|
82036
|
-
await gitIgnore(
|
|
82063
|
+
await gitIgnore({
|
|
82064
|
+
targetPath,
|
|
82065
|
+
schemaPath: is_remote_endpoint ? path_exports.relative(targetPath, schemaPath) : void 0
|
|
82066
|
+
});
|
|
82037
82067
|
await graphqlRC(targetPath);
|
|
82038
82068
|
await viteConfig(targetPath, frameworkInfo, typescript);
|
|
82039
82069
|
await tjsConfig(targetPath, frameworkInfo);
|
|
@@ -82184,11 +82214,21 @@ async function svelteConfig(targetPath, typescript) {
|
|
|
82184
82214
|
});
|
|
82185
82215
|
await fs_exports.writeFile(svelteConfigPath, recast14.print(ast).code);
|
|
82186
82216
|
}
|
|
82187
|
-
async function gitIgnore(targetPath) {
|
|
82217
|
+
async function gitIgnore({ targetPath, schemaPath }) {
|
|
82188
82218
|
const filepath = path_exports.join(targetPath, ".gitignore");
|
|
82189
82219
|
const existing = await fs_exports.readFile(filepath) || "";
|
|
82220
|
+
let newIgnores = "";
|
|
82190
82221
|
if (!existing.includes("\n.houdini\n")) {
|
|
82191
|
-
|
|
82222
|
+
newIgnores += ".houdini\n";
|
|
82223
|
+
}
|
|
82224
|
+
if (schemaPath && !existing.includes(`
|
|
82225
|
+
${schemaPath}
|
|
82226
|
+
`)) {
|
|
82227
|
+
newIgnores += `${schemaPath}
|
|
82228
|
+
`;
|
|
82229
|
+
}
|
|
82230
|
+
if (newIgnores) {
|
|
82231
|
+
await fs_exports.writeFile(filepath, existing + "\n" + newIgnores);
|
|
82192
82232
|
}
|
|
82193
82233
|
}
|
|
82194
82234
|
async function graphqlRC(targetPath) {
|
|
@@ -82362,13 +82402,13 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
82362
82402
|
}
|
|
82363
82403
|
packageJSON2.devDependencies = {
|
|
82364
82404
|
...packageJSON2.devDependencies,
|
|
82365
|
-
houdini: "^1.5.
|
|
82405
|
+
houdini: "^1.5.10",
|
|
82366
82406
|
"@sveltejs/kit": "<=2.21.0"
|
|
82367
82407
|
};
|
|
82368
82408
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
82369
82409
|
packageJSON2.devDependencies = {
|
|
82370
82410
|
...packageJSON2.devDependencies,
|
|
82371
|
-
"houdini-svelte": "^2.1.
|
|
82411
|
+
"houdini-svelte": "^2.1.20"
|
|
82372
82412
|
};
|
|
82373
82413
|
} else {
|
|
82374
82414
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -76351,6 +76351,11 @@ export * from "${module}"
|
|
|
76351
76351
|
module: "./" + path_exports.relative(config.rootDir, config.pluginRuntimeDirectory(plugin2.name))
|
|
76352
76352
|
});
|
|
76353
76353
|
}
|
|
76354
|
+
if (plugin2.staticRuntime) {
|
|
76355
|
+
indexContent += exportStarFrom2({
|
|
76356
|
+
module: "./" + path_exports.relative(config.rootDir, config.pluginStaticRuntimeDirectory(plugin2.name))
|
|
76357
|
+
});
|
|
76358
|
+
}
|
|
76354
76359
|
}
|
|
76355
76360
|
await fs_exports.writeFile(config.typeIndexPath, indexContent);
|
|
76356
76361
|
const missingScalarNames = [...missingScalars].filter(
|
|
@@ -81874,6 +81879,28 @@ function pCancel(cancelText = "Operation cancelled.") {
|
|
|
81874
81879
|
}
|
|
81875
81880
|
async function init2(_path, args) {
|
|
81876
81881
|
ae("\u{1F3A9} Welcome to Houdini!");
|
|
81882
|
+
{
|
|
81883
|
+
const { confirm } = await $e(
|
|
81884
|
+
{
|
|
81885
|
+
confirm: () => {
|
|
81886
|
+
g2.warning(
|
|
81887
|
+
`You are using Houdini version "1.5.10", which doesn't support the latest svelte-kit and vite versions.
|
|
81888
|
+
We recommend re-running this with houdini@next. See what's new here: https://houdini-docs-next.netlify.app/guides/migrateTo20`
|
|
81889
|
+
);
|
|
81890
|
+
return Q2({
|
|
81891
|
+
message: "Continue anyway?",
|
|
81892
|
+
initialValue: false
|
|
81893
|
+
});
|
|
81894
|
+
}
|
|
81895
|
+
},
|
|
81896
|
+
{
|
|
81897
|
+
onCancel: () => pCancel()
|
|
81898
|
+
}
|
|
81899
|
+
);
|
|
81900
|
+
if (confirm !== true) {
|
|
81901
|
+
pCancel();
|
|
81902
|
+
}
|
|
81903
|
+
}
|
|
81877
81904
|
try {
|
|
81878
81905
|
await fs_exports.stat(path_exports.resolve("./src"));
|
|
81879
81906
|
} catch {
|
|
@@ -82038,7 +82065,10 @@ async function init2(_path, args) {
|
|
|
82038
82065
|
} else if (frameworkInfo.framework === "kit") {
|
|
82039
82066
|
await svelteConfig(targetPath, typescript);
|
|
82040
82067
|
}
|
|
82041
|
-
await gitIgnore(
|
|
82068
|
+
await gitIgnore({
|
|
82069
|
+
targetPath,
|
|
82070
|
+
schemaPath: is_remote_endpoint ? path_exports.relative(targetPath, schemaPath) : void 0
|
|
82071
|
+
});
|
|
82042
82072
|
await graphqlRC(targetPath);
|
|
82043
82073
|
await viteConfig(targetPath, frameworkInfo, typescript);
|
|
82044
82074
|
await tjsConfig(targetPath, frameworkInfo);
|
|
@@ -82189,11 +82219,21 @@ async function svelteConfig(targetPath, typescript) {
|
|
|
82189
82219
|
});
|
|
82190
82220
|
await fs_exports.writeFile(svelteConfigPath, recast14.print(ast).code);
|
|
82191
82221
|
}
|
|
82192
|
-
async function gitIgnore(targetPath) {
|
|
82222
|
+
async function gitIgnore({ targetPath, schemaPath }) {
|
|
82193
82223
|
const filepath = path_exports.join(targetPath, ".gitignore");
|
|
82194
82224
|
const existing = await fs_exports.readFile(filepath) || "";
|
|
82225
|
+
let newIgnores = "";
|
|
82195
82226
|
if (!existing.includes("\n.houdini\n")) {
|
|
82196
|
-
|
|
82227
|
+
newIgnores += ".houdini\n";
|
|
82228
|
+
}
|
|
82229
|
+
if (schemaPath && !existing.includes(`
|
|
82230
|
+
${schemaPath}
|
|
82231
|
+
`)) {
|
|
82232
|
+
newIgnores += `${schemaPath}
|
|
82233
|
+
`;
|
|
82234
|
+
}
|
|
82235
|
+
if (newIgnores) {
|
|
82236
|
+
await fs_exports.writeFile(filepath, existing + "\n" + newIgnores);
|
|
82197
82237
|
}
|
|
82198
82238
|
}
|
|
82199
82239
|
async function graphqlRC(targetPath) {
|
|
@@ -82367,13 +82407,13 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
82367
82407
|
}
|
|
82368
82408
|
packageJSON2.devDependencies = {
|
|
82369
82409
|
...packageJSON2.devDependencies,
|
|
82370
|
-
houdini: "^1.5.
|
|
82410
|
+
houdini: "^1.5.10",
|
|
82371
82411
|
"@sveltejs/kit": "<=2.21.0"
|
|
82372
82412
|
};
|
|
82373
82413
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
82374
82414
|
packageJSON2.devDependencies = {
|
|
82375
82415
|
...packageJSON2.devDependencies,
|
|
82376
|
-
"houdini-svelte": "^2.1.
|
|
82416
|
+
"houdini-svelte": "^2.1.20"
|
|
82377
82417
|
};
|
|
82378
82418
|
} else {
|
|
82379
82419
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
|
@@ -64643,6 +64643,11 @@ export * from "${module2}"
|
|
|
64643
64643
|
module: "./" + path_exports.relative(config.rootDir, config.pluginRuntimeDirectory(plugin2.name))
|
|
64644
64644
|
});
|
|
64645
64645
|
}
|
|
64646
|
+
if (plugin2.staticRuntime) {
|
|
64647
|
+
indexContent += exportStarFrom2({
|
|
64648
|
+
module: "./" + path_exports.relative(config.rootDir, config.pluginStaticRuntimeDirectory(plugin2.name))
|
|
64649
|
+
});
|
|
64650
|
+
}
|
|
64646
64651
|
}
|
|
64647
64652
|
await fs_exports.writeFile(config.typeIndexPath, indexContent);
|
|
64648
64653
|
const missingScalarNames = [...missingScalars].filter(
|
|
@@ -64642,6 +64642,11 @@ export * from "${module}"
|
|
|
64642
64642
|
module: "./" + path_exports.relative(config.rootDir, config.pluginRuntimeDirectory(plugin2.name))
|
|
64643
64643
|
});
|
|
64644
64644
|
}
|
|
64645
|
+
if (plugin2.staticRuntime) {
|
|
64646
|
+
indexContent += exportStarFrom2({
|
|
64647
|
+
module: "./" + path_exports.relative(config.rootDir, config.pluginStaticRuntimeDirectory(plugin2.name))
|
|
64648
|
+
});
|
|
64649
|
+
}
|
|
64645
64650
|
}
|
|
64646
64651
|
await fs_exports.writeFile(config.typeIndexPath, indexContent);
|
|
64647
64652
|
const missingScalarNames = [...missingScalars].filter(
|
package/build/test-cjs/index.js
CHANGED
|
@@ -64987,6 +64987,11 @@ export * from "${module2}"
|
|
|
64987
64987
|
module: "./" + path_exports.relative(config.rootDir, config.pluginRuntimeDirectory(plugin2.name))
|
|
64988
64988
|
});
|
|
64989
64989
|
}
|
|
64990
|
+
if (plugin2.staticRuntime) {
|
|
64991
|
+
indexContent += exportStarFrom2({
|
|
64992
|
+
module: "./" + path_exports.relative(config.rootDir, config.pluginStaticRuntimeDirectory(plugin2.name))
|
|
64993
|
+
});
|
|
64994
|
+
}
|
|
64990
64995
|
}
|
|
64991
64996
|
await fs_exports.writeFile(config.typeIndexPath, indexContent);
|
|
64992
64997
|
const missingScalarNames = [...missingScalars].filter(
|
package/build/test-esm/index.js
CHANGED
|
@@ -64983,6 +64983,11 @@ export * from "${module}"
|
|
|
64983
64983
|
module: "./" + path_exports.relative(config.rootDir, config.pluginRuntimeDirectory(plugin2.name))
|
|
64984
64984
|
});
|
|
64985
64985
|
}
|
|
64986
|
+
if (plugin2.staticRuntime) {
|
|
64987
|
+
indexContent += exportStarFrom2({
|
|
64988
|
+
module: "./" + path_exports.relative(config.rootDir, config.pluginStaticRuntimeDirectory(plugin2.name))
|
|
64989
|
+
});
|
|
64990
|
+
}
|
|
64986
64991
|
}
|
|
64987
64992
|
await fs_exports.writeFile(config.typeIndexPath, indexContent);
|
|
64988
64993
|
const missingScalarNames = [...missingScalars].filter(
|