diff --git a/Dockerfile b/Dockerfile index dece2eb7..564ff4bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim -# Install Node.js 20 for the WhatsApp bridge +# Install Node.js for the WhatsApp bridge RUN apt-get update && \ apt-get install -y --no-install-recommends curl ca-certificates gnupg git bubblewrap openssh-client && \ mkdir -p /etc/apt/keyrings && \ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ - echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_24.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \ apt-get update && \ apt-get install -y --no-install-recommends nodejs && \ apt-get purge -y gnupg && \ diff --git a/bridge/package.json b/bridge/package.json index e91517c4..83047375 100644 --- a/bridge/package.json +++ b/bridge/package.json @@ -16,7 +16,7 @@ "pino": "^9.0.0" }, "devDependencies": { - "@types/node": "^20.14.0", + "@types/node": "^24.0.0", "@types/ws": "^8.5.10", "typescript": "^5.4.0" }, diff --git a/nanobot/channels/whatsapp.py b/nanobot/channels/whatsapp.py index 69edb991..7a19d000 100644 --- a/nanobot/channels/whatsapp.py +++ b/nanobot/channels/whatsapp.py @@ -403,7 +403,7 @@ def _ensure_bridge_setup() -> Path: npm_path = shutil.which("npm") if not npm_path: - raise RuntimeError("npm not found. Please install Node.js >= 18.") + raise RuntimeError("npm not found. Please install Node.js >= 20.") logger.info("Setting up WhatsApp bridge...") user_bridge.parent.mkdir(parents=True, exist_ok=True) diff --git a/webui/package.json b/webui/package.json index 59494f05..ce7becd1 100644 --- a/webui/package.json +++ b/webui/package.json @@ -39,7 +39,7 @@ "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.1.0", "@testing-library/user-event": "^14.5.2", - "@types/node": "^22.10.5", + "@types/node": "^24.0.0", "@types/react": "^18.3.18", "@types/react-dom": "^18.3.5", "@types/react-syntax-highlighter": "^15.5.13",