srvx 0.8.4 → 0.8.5

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.
@@ -1,6 +1,6 @@
1
1
  //#region package.json
2
2
  var name = "srvx";
3
- var version = "0.8.4";
3
+ var version = "0.8.5";
4
4
  var description = "Universal Server API based on web platform standards. Works seamlessly with Deno, Bun and Node.js.";
5
5
  var homepage = "https://srvx.h3.dev";
6
6
  var repository = "h3js/srvx";
package/dist/cli.mjs CHANGED
@@ -43,7 +43,10 @@ async function main(mainOpts) {
43
43
  const isNode = !isBun && !isDeno;
44
44
  const runtimeArgs = ["--watch"];
45
45
  if (isNode || isDeno) runtimeArgs.push(...[".env", ".env.local"].filter((f) => existsSync(f)).map((f) => `--env-file=${f}`));
46
- if (isNode && process.versions.node.startsWith("22.")) runtimeArgs.push("--experimental-strip-types");
46
+ if (isNode) {
47
+ const [major, minor] = process.versions.node.split(".");
48
+ if (major === "22" && +minor >= 6) runtimeArgs.push("--experimental-strip-types");
49
+ }
47
50
  const child = fork(fileURLToPath(import.meta.url), args, { execArgv: [...process.execArgv, ...runtimeArgs].filter(Boolean) });
48
51
  child.on("error", (error) => {
49
52
  console.error("Error in child process:", error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "srvx",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "Universal Server API based on web platform standards. Works seamlessly with Deno, Bun and Node.js.",
5
5
  "homepage": "https://srvx.h3.dev",
6
6
  "repository": "h3js/srvx",