diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8bfe2a212..aea7a8ebd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "22.12.0" - name: Install dependencies run: | @@ -55,7 +55,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "22.12.0" - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbfb4cdaa..952315675 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "22.12.0" - name: Install dependencies run: npm ci diff --git a/.github/workflows/windows-release.yml b/.github/workflows/windows-release.yml index 07dd74d6a..24a544fbe 100644 --- a/.github/workflows/windows-release.yml +++ b/.github/workflows/windows-release.yml @@ -34,7 +34,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22.12.0 - name: Clean dependencies run: | diff --git a/mcpjam-inspector/.nvmrc b/mcpjam-inspector/.nvmrc index 209e3ef4b..1d9b7831b 100644 --- a/mcpjam-inspector/.nvmrc +++ b/mcpjam-inspector/.nvmrc @@ -1 +1 @@ -20 +22.12.0 diff --git a/mcpjam-inspector/Dockerfile b/mcpjam-inspector/Dockerfile index 75326cbf9..237ce5190 100644 --- a/mcpjam-inspector/Dockerfile +++ b/mcpjam-inspector/Dockerfile @@ -1,6 +1,5 @@ -# Use specific Node.js version to avoid vulnerabilities in older versions -# CVE fixes require Node.js 20.20.0+ (race condition, symlink following, uncaught exception) -ARG NODE_VERSION=20.20.0 +# Use specific Node.js version to satisfy @electron/fuses and @types/node runtime requirements +ARG NODE_VERSION=22.12.0 FROM node:${NODE_VERSION}-alpine AS base diff --git a/mcpjam-inspector/package.json b/mcpjam-inspector/package.json index 5a7492898..4ae37cb76 100644 --- a/mcpjam-inspector/package.json +++ b/mcpjam-inspector/package.json @@ -3,6 +3,9 @@ "productName": "MCPJam Inspector", "version": "2.0.2", "type": "module", + "engines": { + "node": ">=22.12.0" + }, "description": "MCPJam Inspector", "license": "Apache-2.0", "author": "MCPJam (https://mcpjam.com)", @@ -175,7 +178,7 @@ "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.1", "@testing-library/user-event": "^14.6.1", - "@types/node": "^20", + "@types/node": "^22", "@types/react": "^19", "@types/react-dom": "^19", "@vitejs/plugin-react": "^4.3.4",