yedra 0.10.0 → 0.10.1

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.
@@ -56,7 +56,9 @@ export class App {
56
56
  listen(port) {
57
57
  Bun.serve({
58
58
  port: port,
59
- fetch: this.handle,
59
+ fetch: async (req, server) => {
60
+ return await this.handle(req, server);
61
+ },
60
62
  websocket: {
61
63
  async open(ws) {
62
64
  ws.data.handler.open(ws);
@@ -74,6 +74,9 @@ declare class Socket {
74
74
  close(code?: number, reason?: string): void;
75
75
  }
76
76
  type WebSocketOptions<Params extends Record<string, Schema<string> | Schema<number>>, Query extends Record<string, Schema<string> | Schema<number>>> = {
77
+ category: string;
78
+ summary: string;
79
+ description?: string;
77
80
  params: Params;
78
81
  query: Query;
79
82
  do: (ws: Socket, req: {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "yedra",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "repository": "github:0codekit/yedra",
5
5
  "main": "dist/index.js",
6
6
  "devDependencies": {
7
7
  "@biomejs/biome": "^1.8.3",
8
8
  "@types/bun": "^1.1.6",
9
- "@types/node": "^20.14.11",
10
- "typescript": "^5.5.3"
9
+ "@types/node": "^22.0.0",
10
+ "typescript": "^5.5.4"
11
11
  },
12
12
  "bugs": "https://github.com/0codekit/yedra/issues",
13
13
  "contributors": ["Justus Zorn <jzorn@wemakefuture.com>"],