From 6831925853de678b9b05e71635e39eeacc2bdf1c Mon Sep 17 00:00:00 2001 From: Danny van der Knaap Date: Wed, 20 Mar 2024 15:01:55 +0100 Subject: [PATCH] feat(package): node 21 support --- .github/workflows/alpine.yml | 1 + .github/workflows/macos.yml | 1 + .github/workflows/windows.yml | 1 + README.md | 1 + appveyor.yml | 3 +++ lib/extensions.js | 1 + 6 files changed, 8 insertions(+) diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml index 7aaf451dc..ef0bf7381 100644 --- a/.github/workflows/alpine.yml +++ b/.github/workflows/alpine.yml @@ -19,6 +19,7 @@ jobs: - 18 - 19 - 20 + - 21 steps: - name: Install Alpine build tools diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 056e1cf3b..1a6b5d756 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -18,6 +18,7 @@ jobs: - 18 - 19 - 20 + - 21 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 50528faec..6f673c8e9 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -18,6 +18,7 @@ jobs: - 18 - 19 - 20 + - 21 architecture: - x64 diff --git a/README.md b/README.md index 125dee83f..d82309c15 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Below is a quick guide for minimum and maximum supported versions of node-sass: NodeJS | Supported node-sass version | Node Module --------|-----------------------------|------------ +Node 21 | 9.0+ | 119 Node 20 | 9.0+ | 115 Node 19 | 8.0+ | 111 Node 18 | 8.0+ | 108 diff --git a/appveyor.yml b/appveyor.yml index 17e95edc6..180ed20b8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -45,6 +45,9 @@ - nodejs_version: 20 GYP_MSVS_VERSION: 2019 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + - nodejs_version: 21 + GYP_MSVS_VERSION: 2019 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 install: diff --git a/lib/extensions.js b/lib/extensions.js index 24314b8bd..fa1577c2a 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -85,6 +85,7 @@ function getHumanNodeVersion(abi) { case 108: return 'Node.js 18.x'; case 111: return 'Node.js 19.x'; case 115: return 'Node.js 20.x'; + case 120: return 'Node.js 21.x'; default: return false; } }