keryx 0.21.4 → 0.21.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.
Files changed (2) hide show
  1. package/package.json +12 -14
  2. package/servers/web.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keryx",
3
- "version": "0.21.4",
3
+ "version": "0.21.5",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -82,31 +82,29 @@
82
82
  "prepublishOnly": "cp ../../README.md ."
83
83
  },
84
84
  "dependencies": {
85
- "@modelcontextprotocol/sdk": "^1.26.0",
86
- "@opentelemetry/api": "^1.9.0",
87
- "@opentelemetry/sdk-metrics": "^1.30.0",
85
+ "@modelcontextprotocol/sdk": "^1.29.0",
86
+ "@opentelemetry/api": "^1.9.1",
87
+ "@opentelemetry/sdk-metrics": "^2.6.1",
88
88
  "colors": "^1.4.0",
89
- "cookie": "^0.6.0",
90
- "ioredis": "^5.9.2",
89
+ "ioredis": "^5.10.1",
91
90
  "mustache": "^4.2.0",
92
91
  "node-resque": "^9.5.0",
93
- "pg": "^8.18.0",
92
+ "pg": "^8.20.0",
94
93
  "ts-morph": "^27.0.2",
95
- "typescript": "^5.9.3",
96
- "commander": "^12.1.0",
97
- "@types/cookie": "^0.6.0",
94
+ "typescript": "^6.0.2",
95
+ "commander": "^14.0.3",
98
96
  "@types/mustache": "^4.2.6",
99
- "@types/pg": "^8.16.0"
97
+ "@types/pg": "^8.20.0"
100
98
  },
101
99
  "peerDependencies": {
102
- "drizzle-orm": "^0.45.1",
100
+ "drizzle-orm": "^0.45.2",
103
101
  "drizzle-zod": "^0.8.3",
104
102
  "zod": "^4.3.6"
105
103
  },
106
104
  "devDependencies": {
107
105
  "@types/bun": "^1.3.11",
108
- "@types/formidable": "^3.4.6",
109
- "drizzle-kit": "^0.31.9",
106
+ "@types/formidable": "^3.5.1",
107
+ "drizzle-kit": "^0.31.10",
110
108
  "drizzle-zod": "^0.8.3"
111
109
  }
112
110
  }
package/servers/web.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { parse } from "node:url";
2
2
  import type { ServerWebSocket } from "bun";
3
3
  import colors from "colors";
4
- import cookie from "cookie";
5
4
  import { randomUUID } from "crypto";
6
5
  import { api, logger } from "../api";
7
6
  import { type HTTP_METHOD } from "../classes/Action";
@@ -144,8 +143,8 @@ export class WebServer extends Server<ReturnType<typeof Bun.serve>> {
144
143
  ) {
145
144
  const ip = server.requestIP(req)?.address || "unknown-IP";
146
145
  const headers = req.headers;
147
- const cookies = cookie.parse(req.headers.get("cookie") ?? "");
148
- const id = cookies[config.session.cookieName] || randomUUID();
146
+ const cookies = new Bun.CookieMap(req.headers.get("cookie") ?? "");
147
+ const id = cookies.get(config.session.cookieName) || randomUUID();
149
148
 
150
149
  // Reject new WebSocket upgrades during shutdown
151
150
  if (