Skip to content

Commit 95459da

Browse files
committed
Minimum required Node.js version is 20.
Node.js 18 has reached its end of life, and the new jsdom 27.0.0 needs Node.js 20 or later.
1 parent 26fb4f7 commit 95459da

File tree

7 files changed

+28
-23
lines changed

7 files changed

+28
-23
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
node-version: [18.x, 20.x, 22.x, 24.x]
12+
node-version: [20.x, 22.x, 24.x]
1313

1414
steps:
1515
- uses: actions/checkout@v5

.gitlab-ci.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
node_18:
2-
image: node:18-alpine
3-
stage: build
4-
before_script:
5-
- node --version
6-
- npm --version
7-
script:
8-
- cd ./export-server
9-
- npm install
10-
- ./test.sh
11-
121
node_20:
132
image: node:20-alpine
143
stage: build

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ version change in this application.
1212

1313
## Version 7.0.0-pre (2025-09-??)
1414

15+
* __[breaking change]__
16+
__Support for Node.js 19 and older versions is dropped.__ The minimum required
17+
version is now Node.js 20. Node.js versions before 20 have reached their end of
18+
life, so users of those versions should upgrade to newer versions anyway.
19+
1520
* __[maintenance]__
1621
Update dependency `jsdom` to 27.0.0.
1722

documentation/installation-node-js.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,39 @@ tested. Therefore, using an older version of Node.js may work, but it is not
77
recommended.
88

99
## Node.js on Windows
10+
1011
If you are on Windows, just [download](https://nodejs.org/en/download/) the MSI
1112
installer package and install it.
1213

1314
## Node.js on Linux
15+
1416
If your Linux distribution does not provide a recent Node.js version (at least
15-
version 18 is recommended), you can add an (unofficial) Node.js package
17+
version 20 is recommended), you can add an (unofficial) Node.js package
1618
repository to your system.
1719

1820
### Debian-based
1921

20-
On Debian-based systems create the file **/etc/apt/sources.list.d/nodejs.list**
21-
and give it the following contents:
22+
On Debian-based systems you need curl and GnuPG for download and preparation of
23+
the Node.js installation. Both can be installed by typing
24+
25+
apt-get install curl gnupg2
26+
27+
into a root terminal. Next, download and install the package signing key for the
28+
Node.js package repository:
29+
30+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
31+
32+
Then create the file **/etc/apt/sources.list.d/nodejs.list** and give it the
33+
following contents:
2234

23-
# Node.js 18.x for Debian 11 (codename bullseye)
24-
deb https://deb.nodesource.com/node_18.x bullseye main
25-
deb-src https://deb.nodesource.com/node_18.x bullseye main
35+
# Node.js 20.x for Debian
36+
deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
2637

2738
After that do
2839

2940
apt-get update && apt-get upgrade
3041

31-
to update the APT package lists. To install Node.js 18, type
42+
to update the APT package lists. To install Node.js 20, type
3243

3344
apt-get install nodejs
3445

@@ -38,7 +49,7 @@ That's it.
3849

3950
On a RedHat-based system (e.g. CentOS) make sure curl is installed and then type
4051

41-
curl -sL https://rpm.nodesource.com/setup_18.x | bash -
52+
curl -sL https://rpm.nodesource.com/setup_20.x | bash -
4253

4354
to download and execute a bash script that will take care of the installation.
4455
You might want to check the script code before doing that, though.

export-server/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

export-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"jsdom": "^27.0.0"
2626
},
2727
"engines": {
28-
"node": ">=18"
28+
"node": ">=20"
2929
}
3030
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on the Plotly servers.
1111

1212
This application needs one prerequisite:
1313

14-
* Node.js 18 or later (preferably the latest LTS version)
14+
* Node.js 20 or later (preferably the latest LTS version)
1515

1616
### Installation of Node.js
1717

0 commit comments

Comments
 (0)