@carno.js/core 1.0.0 → 1.0.3

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": "@carno.js/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Ultra-fast HTTP framework with aggressive AOT/JIT compilation",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -10,14 +10,16 @@
10
10
  "prepublishOnly": "bun run build"
11
11
  },
12
12
  "peerDependencies": {
13
- "bun": ">=1.0.0"
13
+ "bun": ">=1.0.0",
14
+ "valibot": "^1.2.0"
14
15
  },
15
16
  "dependencies": {
17
+ "reflect-metadata": "^0.2.2",
16
18
  "zod": "^4.3.5"
17
19
  },
18
20
  "devDependencies": {
19
21
  "esbuild-fix-imports-plugin": "^1.0.23",
20
22
  "tsup": "^8.5.1"
21
23
  },
22
- "gitHead": "d2b000eeb352a03569b90d8eb2bf3557c00b741b"
24
+ "gitHead": "61974ae937e0de61a207b37b97a01677fec69bcb"
23
25
  }
package/src/Carno.ts CHANGED
@@ -509,6 +509,11 @@ export class Carno {
509
509
  return new Response(result, TEXT_OPTS);
510
510
  }
511
511
 
512
+ // Handle undefined/void return values - return empty 204 No Content
513
+ if (result === undefined) {
514
+ return new Response(null, { status: 204 });
515
+ }
516
+
512
517
  return Response.json(result);
513
518
  }
514
519