From 98e75b39e22ba2fdf7726eefa23ba5f7247540c4 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 9 Nov 2022 04:56:43 -0500 Subject: [PATCH] feat: Node 18 and 19 support and drop Node 17 (#3257) Fixes https://github.com/sass/node-sass/issues/3251 --- .github/workflows/alpine.yml | 5 +++-- .github/workflows/linux.yml | 10 +++++++--- .github/workflows/macos.yml | 3 ++- .github/workflows/windows.yml | 13 +++---------- README.md | 4 +++- appveyor.yml | 6 +++++- lib/extensions.js | 2 ++ 7 files changed, 25 insertions(+), 18 deletions(-) diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml index 2681f40d3..c918e3e69 100644 --- a/.github/workflows/alpine.yml +++ b/.github/workflows/alpine.yml @@ -16,9 +16,10 @@ jobs: matrix: node: - 14 - # Node 16 and 17 are perma-red for the tests right now + # Node 16+ are perma-red for the tests right now # - 16 - # - 17 + # - 18 + # - 19 steps: - name: Install Alpine build tools diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 822fda14d..4d41f6567 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -16,7 +16,7 @@ jobs: node: - 14 - 16 - - 17 + - 18 include: - node: 14 @@ -27,10 +27,14 @@ jobs: gcc: "gcc-8" gpp: "g++-8" os: ubuntu-18.04 - - node: 17 + - node: 18 gcc: "gcc-8" gpp: "g++-8" - os: ubuntu-18.04 + os: ubuntu-20.04 + - node: 19 + gcc: "gcc-8" + gpp: "g++-8" + os: ubuntu-20.04 steps: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index a88065864..e03df1faa 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -16,7 +16,8 @@ jobs: node: - 14 - 16 - - 17 + - 18 + - 19 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 41dea8f93..0ee040ef0 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ${{ matrix.os }} + runs-on: windows-2019 strategy: fail-fast: false @@ -16,20 +16,13 @@ jobs: node: - 14 - 16 - - 17 + - 18 + - 19 architecture: - x64 - x86 - include: - - node: 14 - os: windows-2019 - - node: 16 - os: windows-2019 - - node: 17 - os: windows-2019 - steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index 51f5864e9..f08caf777 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,9 @@ Below is a quick guide for minimum and maximum supported versions of node-sass: NodeJS | Supported node-sass version | Node Module --------|-----------------------------|------------ -Node 17 | 7.0+ | 102 +Node 19 | 8.0+ | 111 +Node 18 | 8.0+ | 108 +Node 17 | 7.0+, <8.0 | 102 Node 16 | 6.0+ | 93 Node 15 | 5.0+, <7.0 | 88 Node 14 | 4.14+ | 83 diff --git a/appveyor.yml b/appveyor.yml index a7b3a0565..4a6837ddd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,9 +39,13 @@ - nodejs_version: 16 GYP_MSVS_VERSION: 2019 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - - nodejs_version: 17 + - nodejs_version: 18 GYP_MSVS_VERSION: 2019 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + - nodejs_version: 19 + GYP_MSVS_VERSION: 2019 + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 + install: # https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs diff --git a/lib/extensions.js b/lib/extensions.js index fcfffdc19..4622f5dc5 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -82,6 +82,8 @@ function getHumanNodeVersion(abi) { case 88: return 'Node.js 15.x'; case 93: return 'Node.js 16.x'; case 102: return 'Node.js 17.x'; + case 108: return 'Node.js 18.x'; + case 111: return 'Node.js 19.x'; default: return false; } }