Skip to content

Commit

Permalink
[api-minor] Update the minimum supported Node.js version to 20
Browse files Browse the repository at this point in the history
This patch updates the minimum supported environments as follows:
 - Node.js 20, which was released on 2023-04-18 and has now entered the "Maintenance"-phase; see https://github.com/nodejs/release#release-schedule

Furthermore, note also that Node.js 18 will fairly soon reach EOL.
  • Loading branch information
Snuffleupagus committed Nov 3, 2024
1 parent 35673d3 commit 4f01cde
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18, lts/*, 22, 23]
node-version: [20, 22, 23]

steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ENV_TARGETS = [
"Chrome >= 103",
"Firefox ESR",
"Safari >= 16.4",
"Node >= 18",
"Node >= 20",
"> 1%",
"not IE > 0",
"not dead",
Expand Down Expand Up @@ -2271,7 +2271,7 @@ function packageJson() {
url: `git+${DIST_GIT_URL}`,
},
engines: {
node: ">=18",
node: ">=20",
},
scripts: {},
};
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"url": "git://github.com/mozilla/pdf.js.git"
},
"engines": {
"node": ">=18"
"node": ">=20"
},
"license": "Apache-2.0"
}

0 comments on commit 4f01cde

Please sign in to comment.