Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 87f3899

Browse files
authored
feat: Node 20 support (#3355)
* feat: Node 20 support * ci: update stalled Alpine/Linux jobs * feat: drop Node 14
1 parent 06ae4c7 commit 87f3899

File tree

8 files changed

+19
-23
lines changed

8 files changed

+19
-23
lines changed

.github/workflows/alpine.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
node:
18-
- 14
19-
# Node 16+ are perma-red for the tests right now
20-
# - 16
21-
# - 18
22-
# - 19
18+
- 16
19+
- 18
20+
- 19
21+
- 20
2322

2423
steps:
2524
- name: Install Alpine build tools

.github/workflows/linux.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,11 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
node:
17-
- 14
18-
- 16
19-
- 18
20-
2116
include:
22-
- node: 14
23-
gcc: "gcc-6"
24-
gpp: "g++-6"
25-
os: ubuntu-18.04
2617
- node: 16
2718
gcc: "gcc-8"
2819
gpp: "g++-8"
29-
os: ubuntu-18.04
20+
os: ubuntu-20.04
3021
- node: 18
3122
gcc: "gcc-8"
3223
gpp: "g++-8"
@@ -35,6 +26,10 @@ jobs:
3526
gcc: "gcc-8"
3627
gpp: "g++-8"
3728
os: ubuntu-20.04
29+
- node: 20
30+
gcc: "gcc-10"
31+
gpp: "g++-10"
32+
os: ubuntu-22.04
3833

3934

4035
steps:

.github/workflows/macos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
node:
17-
- 14
1817
- 16
1918
- 18
2019
- 19
20+
- 20
2121

2222
steps:
2323
- uses: actions/checkout@v3

.github/workflows/windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
node:
17-
- 14
1817
- 16
1918
- 18
2019
- 19
20+
- 20
2121

2222
architecture:
2323
- x64

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ Below is a quick guide for minimum and maximum supported versions of node-sass:
1717

1818
NodeJS | Supported node-sass version | Node Module
1919
--------|-----------------------------|------------
20+
Node 20 | 9.0+ | 115
2021
Node 19 | 8.0+ | 111
2122
Node 18 | 8.0+ | 108
2223
Node 17 | 7.0+, <8.0 | 102
2324
Node 16 | 6.0+ | 93
2425
Node 15 | 5.0+, <7.0 | 88
25-
Node 14 | 4.14+ | 83
26+
Node 14 | 4.14+, <9.0 | 83
2627
Node 13 | 4.13+, <5.0 | 79
2728
Node 12 | 4.12+, <8.0 | 72
2829
Node 11 | 4.10+, <5.0 | 67

appveyor.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
environment:
3434
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true
3535
matrix:
36-
- nodejs_version: 14
37-
GYP_MSVS_VERSION: 2017
38-
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
3936
- nodejs_version: 16
4037
GYP_MSVS_VERSION: 2019
4138
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
@@ -45,6 +42,9 @@
4542
- nodejs_version: 19
4643
GYP_MSVS_VERSION: 2019
4744
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
45+
- nodejs_version: 20
46+
GYP_MSVS_VERSION: 2019
47+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
4848

4949

5050
install:

lib/extensions.js

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ function getHumanNodeVersion(abi) {
8484
case 102: return 'Node.js 17.x';
8585
case 108: return 'Node.js 18.x';
8686
case 111: return 'Node.js 19.x';
87+
case 115: return 'Node.js 20.x';
8788
default: return false;
8889
}
8990
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-sass",
3-
"version": "8.0.0",
3+
"version": "9.0.0",
44
"libsass": "3.5.5",
55
"description": "Wrapper around libsass",
66
"license": "MIT",
@@ -16,7 +16,7 @@
1616
"url": "http://andrew.github.com"
1717
},
1818
"engines": {
19-
"node": ">=14"
19+
"node": ">=16"
2020
},
2121
"main": "lib/index.js",
2222
"nodeSassConfig": {

0 commit comments

Comments
 (0)