houdini-react 1.2.20-next.0 → 1.2.20

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.
@@ -78980,6 +78980,11 @@ async function buildLocalSchema(config2) {
78980
78980
  });
78981
78981
  process.env.HOUDINI_SCHEMA_BUILD = "false";
78982
78982
  }
78983
+ async function loadLocalSchema(config2) {
78984
+ await buildLocalSchema(config2);
78985
+ const { default: schema } = await import(import_node_path2.default.join(config2.rootDir, "temp", "assets", "schema.js"));
78986
+ return schema;
78987
+ }
78983
78988
 
78984
78989
  // src/plugin/index.ts
78985
78990
  var import_node_path3 = __toESM(require("node:path"));
@@ -79720,10 +79725,7 @@ if (window.__houdini__nav_caches__ && window.__houdini__nav_caches__.artifact_ca
79720
79725
  const project_manifest = await load_manifest({ config: server.houdiniConfig });
79721
79726
  let schema = null;
79722
79727
  if (project_manifest.local_schema) {
79723
- await buildLocalSchema(server.houdiniConfig);
79724
- schema = (await server.ssrLoadModule(
79725
- path_exports.join(server.houdiniConfig.rootDir, "temp", "assets", "schema.js")
79726
- )).default;
79728
+ schema = await loadLocalSchema(server.houdiniConfig);
79727
79729
  }
79728
79730
  const serverAdapter = (await server.ssrLoadModule(
79729
79731
  conventions_exports.server_adapter_path(server.houdiniConfig) + "?t=" + new Date().getTime()
@@ -78970,6 +78970,11 @@ async function buildLocalSchema(config2) {
78970
78970
  });
78971
78971
  process.env.HOUDINI_SCHEMA_BUILD = "false";
78972
78972
  }
78973
+ async function loadLocalSchema(config2) {
78974
+ await buildLocalSchema(config2);
78975
+ const { default: schema } = await import(path2.join(config2.rootDir, "temp", "assets", "schema.js"));
78976
+ return schema;
78977
+ }
78973
78978
 
78974
78979
  // src/plugin/index.ts
78975
78980
  import path3 from "node:path";
@@ -79710,10 +79715,7 @@ if (window.__houdini__nav_caches__ && window.__houdini__nav_caches__.artifact_ca
79710
79715
  const project_manifest = await load_manifest({ config: server.houdiniConfig });
79711
79716
  let schema = null;
79712
79717
  if (project_manifest.local_schema) {
79713
- await buildLocalSchema(server.houdiniConfig);
79714
- schema = (await server.ssrLoadModule(
79715
- path_exports.join(server.houdiniConfig.rootDir, "temp", "assets", "schema.js")
79716
- )).default;
79718
+ schema = await loadLocalSchema(server.houdiniConfig);
79717
79719
  }
79718
79720
  const serverAdapter = (await server.ssrLoadModule(
79719
79721
  conventions_exports.server_adapter_path(server.houdiniConfig) + "?t=" + new Date().getTime()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "1.2.20-next.0",
3
+ "version": "1.2.20",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -42,7 +42,7 @@
42
42
  "recast": "^0.23.1",
43
43
  "rollup": "^3.7.4",
44
44
  "use-deep-compare-effect": "^1.8.1",
45
- "houdini": "^1.2.20-next.0"
45
+ "houdini": "^1.2.20"
46
46
  },
47
47
  "files": [
48
48
  "build"