houdini-react 2.0.0-next.33 → 2.0.0-next.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "2.0.0-next.33",
3
+ "version": "2.0.0-next.34",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -81,13 +81,13 @@
81
81
  }
82
82
  },
83
83
  "optionalDependencies": {
84
- "houdini-react-darwin-x64": "2.0.0-next.33",
85
- "houdini-react-darwin-arm64": "2.0.0-next.33",
86
- "houdini-react-linux-x64": "2.0.0-next.33",
87
- "houdini-react-linux-arm64": "2.0.0-next.33",
88
- "houdini-react-win32-x64": "2.0.0-next.33",
89
- "houdini-react-win32-arm64": "2.0.0-next.33",
90
- "houdini-react-wasm": "2.0.0-next.33"
84
+ "houdini-react-darwin-x64": "2.0.0-next.34",
85
+ "houdini-react-darwin-arm64": "2.0.0-next.34",
86
+ "houdini-react-linux-x64": "2.0.0-next.34",
87
+ "houdini-react-linux-arm64": "2.0.0-next.34",
88
+ "houdini-react-win32-x64": "2.0.0-next.34",
89
+ "houdini-react-win32-arm64": "2.0.0-next.34",
90
+ "houdini-react-wasm": "2.0.0-next.34"
91
91
  },
92
92
  "scripts": {
93
93
  "compile": "scripts build-go",
package/postInstall.js CHANGED
@@ -5,7 +5,7 @@ const https = require('https')
5
5
  const child_process = require('child_process')
6
6
 
7
7
  // Adjust the version you want to install. You can also make this dynamic.
8
- const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.33'
8
+ const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.34'
9
9
 
10
10
  // Windows binaries end with .exe so we need to special case them.
11
11
  const binaryName = process.platform === 'win32' ? 'houdini-react.exe' : 'houdini-react'
package/vite/index.js CHANGED
@@ -91,6 +91,9 @@ function index_default(ctx) {
91
91
  }
92
92
  return id.substring(id.indexOf("virtual:houdini"));
93
93
  },
94
+ hotUpdate() {
95
+ cfCache = null;
96
+ },
94
97
  async transform(code, filepath) {
95
98
  filepath = path.posixify(filepath);
96
99
  if (filepath.startsWith("/src/")) {
@@ -153,7 +156,14 @@ function index_default(ctx) {
153
156
  const parsedPath = arg ? path.parse(arg) : "";
154
157
  const pageName = parsedPath ? parsedPath.name : "";
155
158
  if (which === "pages") {
156
- const page = manifest.pages[pageName];
159
+ let page = manifest.pages[pageName];
160
+ if (!page) {
161
+ try {
162
+ manifest = await load_manifest({ config: ctx.config });
163
+ page = manifest.pages[pageName];
164
+ } catch {
165
+ }
166
+ }
157
167
  if (!page) {
158
168
  throw new Error("unknown page" + pageName);
159
169
  }