houdini 2.0.0-next.2 → 2.0.0-next.4
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/vite-cjs/index.js +6 -14
- package/build/vite-esm/index.js +6 -14
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -89184,12 +89184,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
89184
89184
|
}
|
|
89185
89185
|
packageJSON2.devDependencies = {
|
|
89186
89186
|
...packageJSON2.devDependencies,
|
|
89187
|
-
houdini: "^2.0.0-next.
|
|
89187
|
+
houdini: "^2.0.0-next.4"
|
|
89188
89188
|
};
|
|
89189
89189
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
89190
89190
|
packageJSON2.devDependencies = {
|
|
89191
89191
|
...packageJSON2.devDependencies,
|
|
89192
|
-
"houdini-svelte": "^
|
|
89192
|
+
"houdini-svelte": "^3.0.0-next.7"
|
|
89193
89193
|
};
|
|
89194
89194
|
} else {
|
|
89195
89195
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -89188,12 +89188,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
89188
89188
|
}
|
|
89189
89189
|
packageJSON2.devDependencies = {
|
|
89190
89190
|
...packageJSON2.devDependencies,
|
|
89191
|
-
houdini: "^2.0.0-next.
|
|
89191
|
+
houdini: "^2.0.0-next.4"
|
|
89192
89192
|
};
|
|
89193
89193
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
89194
89194
|
packageJSON2.devDependencies = {
|
|
89195
89195
|
...packageJSON2.devDependencies,
|
|
89196
|
-
"houdini-svelte": "^
|
|
89196
|
+
"houdini-svelte": "^3.0.0-next.7"
|
|
89197
89197
|
};
|
|
89198
89198
|
} else {
|
|
89199
89199
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -85756,7 +85756,7 @@ function Plugin(opts = {}) {
|
|
|
85756
85756
|
const runtimeDir = path_exports.join(config2.projectRoot, config2.runtimeDir ?? "$houdini");
|
|
85757
85757
|
const isGqlFile = isGraphQLFile(file);
|
|
85758
85758
|
if (!(shouldReact && (fileDependsOnHoudini(modules, runtimeDir) || isGqlFile))) {
|
|
85759
|
-
return
|
|
85759
|
+
return modules;
|
|
85760
85760
|
}
|
|
85761
85761
|
if (config2.localSchema) {
|
|
85762
85762
|
config2.schema = (await server.ssrLoadModule(config2.localSchemaPath)).default;
|
|
@@ -85776,7 +85776,7 @@ function Plugin(opts = {}) {
|
|
|
85776
85776
|
timestamp
|
|
85777
85777
|
};
|
|
85778
85778
|
if (!artifactStats) {
|
|
85779
|
-
return
|
|
85779
|
+
return modules;
|
|
85780
85780
|
}
|
|
85781
85781
|
console.log("\u{1F3A9} \u2B06\uFE0F bundle changed, triggering HMR update");
|
|
85782
85782
|
const taintedModules = [];
|
|
@@ -85786,7 +85786,7 @@ function Plugin(opts = {}) {
|
|
|
85786
85786
|
taintedModules.push(module2);
|
|
85787
85787
|
}
|
|
85788
85788
|
}
|
|
85789
|
-
return taintedModules;
|
|
85789
|
+
return taintedModules.concat(modules);
|
|
85790
85790
|
},
|
|
85791
85791
|
// add watch-and-run to their vite config
|
|
85792
85792
|
async config(userConfig, env2) {
|
|
@@ -85810,14 +85810,6 @@ function Plugin(opts = {}) {
|
|
|
85810
85810
|
}
|
|
85811
85811
|
return result;
|
|
85812
85812
|
},
|
|
85813
|
-
async buildEnd(args) {
|
|
85814
|
-
for (const plugin2 of config.plugins) {
|
|
85815
|
-
if (typeof plugin2.vite?.buildEnd !== "function") {
|
|
85816
|
-
continue;
|
|
85817
|
-
}
|
|
85818
|
-
await plugin2.vite.buildEnd.call(this, args, config);
|
|
85819
|
-
}
|
|
85820
|
-
},
|
|
85821
85813
|
async configResolved(conf) {
|
|
85822
85814
|
if (!isSecondaryBuild()) {
|
|
85823
85815
|
viteConfig = conf;
|
|
@@ -85832,12 +85824,12 @@ function Plugin(opts = {}) {
|
|
|
85832
85824
|
// called when all of the bundles have been generated (ie, when vite is done)
|
|
85833
85825
|
// we use this to generate the final assets needed for a production build of the server.
|
|
85834
85826
|
// this is only called when bundling (ie, not in dev mode)
|
|
85835
|
-
async
|
|
85827
|
+
async buildEnd(args) {
|
|
85836
85828
|
for (const plugin2 of config.plugins) {
|
|
85837
|
-
if (typeof plugin2.vite?.
|
|
85829
|
+
if (typeof plugin2.vite?.buildEnd !== "function") {
|
|
85838
85830
|
continue;
|
|
85839
85831
|
}
|
|
85840
|
-
await plugin2.vite.
|
|
85832
|
+
await plugin2.vite.buildEnd.call(this, args, config);
|
|
85841
85833
|
}
|
|
85842
85834
|
if (isSecondaryBuild() || viteEnv.mode !== "production" || devServer) {
|
|
85843
85835
|
return;
|
package/build/vite-esm/index.js
CHANGED
|
@@ -85748,7 +85748,7 @@ function Plugin(opts = {}) {
|
|
|
85748
85748
|
const runtimeDir = path_exports.join(config2.projectRoot, config2.runtimeDir ?? "$houdini");
|
|
85749
85749
|
const isGqlFile = isGraphQLFile(file);
|
|
85750
85750
|
if (!(shouldReact && (fileDependsOnHoudini(modules, runtimeDir) || isGqlFile))) {
|
|
85751
|
-
return
|
|
85751
|
+
return modules;
|
|
85752
85752
|
}
|
|
85753
85753
|
if (config2.localSchema) {
|
|
85754
85754
|
config2.schema = (await server.ssrLoadModule(config2.localSchemaPath)).default;
|
|
@@ -85768,7 +85768,7 @@ function Plugin(opts = {}) {
|
|
|
85768
85768
|
timestamp
|
|
85769
85769
|
};
|
|
85770
85770
|
if (!artifactStats) {
|
|
85771
|
-
return
|
|
85771
|
+
return modules;
|
|
85772
85772
|
}
|
|
85773
85773
|
console.log("\u{1F3A9} \u2B06\uFE0F bundle changed, triggering HMR update");
|
|
85774
85774
|
const taintedModules = [];
|
|
@@ -85778,7 +85778,7 @@ function Plugin(opts = {}) {
|
|
|
85778
85778
|
taintedModules.push(module);
|
|
85779
85779
|
}
|
|
85780
85780
|
}
|
|
85781
|
-
return taintedModules;
|
|
85781
|
+
return taintedModules.concat(modules);
|
|
85782
85782
|
},
|
|
85783
85783
|
// add watch-and-run to their vite config
|
|
85784
85784
|
async config(userConfig, env2) {
|
|
@@ -85802,14 +85802,6 @@ function Plugin(opts = {}) {
|
|
|
85802
85802
|
}
|
|
85803
85803
|
return result;
|
|
85804
85804
|
},
|
|
85805
|
-
async buildEnd(args) {
|
|
85806
|
-
for (const plugin2 of config.plugins) {
|
|
85807
|
-
if (typeof plugin2.vite?.buildEnd !== "function") {
|
|
85808
|
-
continue;
|
|
85809
|
-
}
|
|
85810
|
-
await plugin2.vite.buildEnd.call(this, args, config);
|
|
85811
|
-
}
|
|
85812
|
-
},
|
|
85813
85805
|
async configResolved(conf) {
|
|
85814
85806
|
if (!isSecondaryBuild()) {
|
|
85815
85807
|
viteConfig = conf;
|
|
@@ -85824,12 +85816,12 @@ function Plugin(opts = {}) {
|
|
|
85824
85816
|
// called when all of the bundles have been generated (ie, when vite is done)
|
|
85825
85817
|
// we use this to generate the final assets needed for a production build of the server.
|
|
85826
85818
|
// this is only called when bundling (ie, not in dev mode)
|
|
85827
|
-
async
|
|
85819
|
+
async buildEnd(args) {
|
|
85828
85820
|
for (const plugin2 of config.plugins) {
|
|
85829
|
-
if (typeof plugin2.vite?.
|
|
85821
|
+
if (typeof plugin2.vite?.buildEnd !== "function") {
|
|
85830
85822
|
continue;
|
|
85831
85823
|
}
|
|
85832
|
-
await plugin2.vite.
|
|
85824
|
+
await plugin2.vite.buildEnd.call(this, args, config);
|
|
85833
85825
|
}
|
|
85834
85826
|
if (isSecondaryBuild() || viteEnv.mode !== "production" || devServer) {
|
|
85835
85827
|
return;
|