Upgrade Node.js to v20.19.2 for security enhancements

This commit upgrades Node.js version from v20.18.1 to v20.19.2.

This version incorporates security patches that address known
vulnerabilities, improving the overall security posture.
This commit is contained in:
Peter Dave Hello 2025-05-25 19:01:40 +08:00
parent fe9137b14e
commit 9d0ae59af1
11 changed files with 13 additions and 13 deletions

View file

@ -9,7 +9,7 @@ on:
env:
REPO_PATH: ${{ github.repository }}
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
NODE_VERSION: 20.18.1
NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1
jobs:

View file

@ -9,7 +9,7 @@ on:
branches: [main]
env:
NODE_VERSION: 20.18.1
NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1
jobs:

View file

@ -6,7 +6,7 @@ on:
env:
GIT_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || 'main' }}
NODE_VERSION: 20.18.1
NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1
jobs:

View file

@ -11,7 +11,7 @@ on:
workflow_dispatch: # Allows manual triggering.
env:
NODE_VERSION: 20.18.1
NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1
jobs:

View file

@ -7,7 +7,7 @@ on:
workflow_dispatch: # Allows manual triggering
env:
NODE_VERSION: 20.18.1
NODE_VERSION: 20.19.2
PNPM_VERSION: 10.8.1
jobs:

2
.nvmrc
View file

@ -1 +1 @@
v20.18.1
v20.19.2

View file

@ -1 +1 @@
nodejs 20.18.1
nodejs 20.19.2

View file

@ -1,4 +1,4 @@
python 3.13.2
golang 1.24.2
rust 1.85.1
nodejs 20.18.1
nodejs 20.19.2

View file

@ -176,8 +176,8 @@ for i in "${!options[@]}"; do
case "${plugin}" in
"nodejs")
if ! command -v node &>/dev/null; then
asdf install nodejs 20.18.1 || exit 1
asdf set nodejs 20.18.1 || exit 1
asdf install nodejs 20.19.2 || exit 1
asdf set nodejs 20.19.2 || exit 1
NODE_VERSION=$(node --version)
echo "✅ Node.js is installed ($NODE_VERSION)"
else
@ -185,7 +185,7 @@ for i in "${!options[@]}"; do
echo "✅ Node.js is installed ($NODE_VERSION)"
fi
if [[ $(node --version) != "v20.18.1" ]]; then
if [[ $(node --version) != "v20.19.2" ]]; then
NODE_VERSION=$(node --version)
echo "🚨 You have the wrong version of node installed ($NODE_VERSION)."
echo "💡 If you are using nvm then run 'nvm install' to install the version specified by the repo's .nvmrc."

View file

@ -2,7 +2,7 @@
"name": "roo-code",
"packageManager": "pnpm@10.8.1",
"engines": {
"node": "20.18.1"
"node": "20.19.2"
},
"scripts": {
"preinstall": "node scripts/bootstrap.mjs",

View file

@ -11,7 +11,7 @@
},
"engines": {
"vscode": "^1.84.0",
"node": "20.18.1"
"node": "20.19.2"
},
"author": {
"name": "Roo Code"