Skip to content

Commit 9f4cd1e

Browse files
coliffclaude
andcommitted
chore!: drop support for Node.js 20
Node.js 20 reached end-of-life on 2026-04-30. - Require Node.js 22 or later in `engines` - Pin Volta and `.nvmrc` to Node.js 22.22.2 - Bump `@types/node` to ^22.20.4 - Remove Node.js 20 from the CI test matrix - Update README, CONTRIBUTING, AGENTS and website docs BREAKING CHANGE: HTMLHint now requires Node.js 22 or later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3cf648e commit 9f4cd1e

8 files changed

Lines changed: 13 additions & 62 deletions

File tree

‎.github/CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ We welcome any type of contribution, not only code. You can help with
1313

1414
## Development setup
1515

16-
Use Node.js 20 or later (the repo pins a version with [Volta](https://volta.sh/) in `package.json`).
16+
Use Node.js 22 or later (the repo pins a version with [Volta](https://volta.sh/) in `package.json`).
1717

1818
## Submitting code
1919

‎.github/workflows/test.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
fail-fast: false
4444
matrix:
4545
node:
46-
- 20
4746
- 22
4847
- 24
4948
- 26

‎.nvmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.20.1
1+
v22.22.2

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- All code should be formatted with Prettier.
1111
- Use ESLint to check for JavaScript errors.
1212
- Rollup is used for building the project.
13-
- Node.js 20 or newer is required; Volta pins the repo to Node 20 LTS in `package.json`.
13+
- Node.js 22 or newer is required; Volta pins the repo to Node 22 LTS in `package.json`.
1414
- Core code is in TypeScript.
1515
- All new rules for HTMLHint should be placed in the rules directory.
1616
- Tests for new rules should be added in rules and follow the naming pattern `<rule-name>.spec.js`.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
## 📟 Installation and Usage
4040

41-
HTMLHint requires [Node.js](https://nodejs.org/) 20 or later.
41+
HTMLHint requires [Node.js](https://nodejs.org/) 22 or later.
4242

4343
There are two ways to install HTMLHint: globally and locally.
4444

‎package-lock.json‎

Lines changed: 5 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"@rollup/plugin-terser": "^1.0.0",
7272
"@types/async": "^3.2.25",
7373
"@types/is-glob": "4.0.4",
74-
"@types/node": "^20.19.39",
74+
"@types/node": "^22.20.4",
7575
"@types/xml": "^1.0.11",
7676
"@typescript-eslint/eslint-plugin": "^8.58.2",
7777
"@typescript-eslint/parser": "^8.58.2",
@@ -86,9 +86,9 @@
8686
"typescript": "^6.0.3"
8787
},
8888
"engines": {
89-
"node": ">=20"
89+
"node": ">=22"
9090
},
9191
"volta": {
92-
"node": "20.20.1"
92+
"node": "22.22.2"
9393
}
9494
}

‎website/src/content/docs/getting-started.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: How to set up HTMLHint in your project by adding it as a dev depend
55

66
import { Tabs, TabItem } from '@astrojs/starlight/components';
77

8-
HTMLHint requires Node.js 20 or later.
8+
HTMLHint requires Node.js 22 or later.
99

1010
1\. Use npm or yarn to install HTMLHint:
1111

0 commit comments

Comments
 (0)