From b31e64713e0524f28cbf760fad27b25829ec419d Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Mon, 29 Sep 2025 16:34:03 +0200 Subject: [PATCH 1/2] fix: update package.json engines to reflect node20 support (#210) --- package.json | 2 +- src/index.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2a303ce9..8d0e057e 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,6 @@ "typescript-eslint": "^8.43.0" }, "engines": { - "node": ">=22.12.0" + "node": "^20.19.0 || ^22.12.0 || >=23" } } diff --git a/src/index.ts b/src/index.ts index 4c8205b1..f20c4659 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,13 @@ import {version} from 'node:process'; const [major, minor] = version.substring(1).split('.').map(Number); +if (major === 20 && minor < 19) { + console.error( + `ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 20.19.0 LTS or a newer LTS.`, + ); + process.exit(1); +} + if (major === 22 && minor < 12) { console.error( `ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 22.12.0 LTS or a newer LTS.`, @@ -19,7 +26,7 @@ if (major === 22 && minor < 12) { if (major < 20) { console.error( - `ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 20 LTS or a newer LTS.`, + `ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 20.19.0 LTS or a newer LTS.`, ); process.exit(1); } From 1de725ab992ae31989edbf5cad7b3f859ba3affc Mon Sep 17 00:00:00 2001 From: browser-automation-bot <133232582+browser-automation-bot@users.noreply.github.com> Date: Mon, 29 Sep 2025 16:54:22 +0200 Subject: [PATCH 2/2] chore(main): release chrome-devtools-mcp 0.5.1 (#211) :robot: I have created a release *beep* *boop* --- ## [0.5.1](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.5.0...chrome-devtools-mcp-v0.5.1) (2025-09-29) ### Bug Fixes * update package.json engines to reflect node20 support ([#210](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/210)) ([b31e647](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/b31e64713e0524f28cbf760fad27b25829ec419d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f1c1e588..210d2903 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.5.0" + ".": "0.5.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 527fe75a..2085a7ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.5.1](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.5.0...chrome-devtools-mcp-v0.5.1) (2025-09-29) + + +### Bug Fixes + +* update package.json engines to reflect node20 support ([#210](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/210)) ([b31e647](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/b31e64713e0524f28cbf760fad27b25829ec419d)) + ## [0.5.0](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.4.0...chrome-devtools-mcp-v0.5.0) (2025-09-29) diff --git a/package-lock.json b/package-lock.json index d0e34a60..0cf872dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "chrome-devtools-mcp", - "version": "0.5.0", + "version": "0.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "chrome-devtools-mcp", - "version": "0.5.0", + "version": "0.5.1", "license": "Apache-2.0", "dependencies": { "@modelcontextprotocol/sdk": "1.18.2", diff --git a/package.json b/package.json index 8d0e057e..97f5f192 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chrome-devtools-mcp", - "version": "0.5.0", + "version": "0.5.1", "description": "MCP server for Chrome DevTools", "type": "module", "bin": "./build/src/index.js",