Skip to content

Commit 303f43d

Browse files
committed
Drop Node.js 16,17,19,21 and upgrade pnpm
1 parent b66b21e commit 303f43d

File tree

6 files changed

+5994
-4766
lines changed

6 files changed

+5994
-4766
lines changed

.changeset/popular-gorillas-sip.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@react-docgen/cli': major
3+
'react-docgen': major
4+
---
5+
6+
Drop support for Node.js 16, 17, 19 and 21.
7+
8+
With this `react-docgen` version Node.js support is:
9+
10+
- Node.js 18.19.0 or newer 18.x versions
11+
- Node.js 20.9.0 or newer 20.x versions
12+
- Node.js 22.0.0 or any newer version

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
tests:
1717
strategy:
1818
matrix:
19-
node: ['16.14.0', '18', '20', '22', '23']
19+
node: ['18.19.0', '20', '22', '23']
2020
os: ['ubuntu']
2121
include:
2222
- os: macos

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"private": true,
33
"engines": {
4-
"node": ">=16.13.0",
5-
"pnpm": ">=8.7.5"
4+
"node": "^18.19.0 || ^20.9.0 || >=22",
5+
"pnpm": ">=9.15.4"
66
},
77
"scripts": {
88
"build": "nx run-many --target=build --exclude='@react-docgen-internal/*'",
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"@changesets/changelog-github": "0.5.0",
2020
"@changesets/cli": "2.27.11",
21-
"@types/node": "14.18.63",
21+
"@types/node": "18.19.71",
2222
"@typescript-eslint/eslint-plugin": "7.18.0",
2323
"@typescript-eslint/parser": "7.18.0",
2424
"@vitest/coverage-v8": "0.34.6",
@@ -36,5 +36,5 @@
3636
"typescript": "5.7.3",
3737
"vitest": "0.34.6"
3838
},
39-
"packageManager": "pnpm@8.15.9"
39+
"packageManager": "pnpm@9.15.4"
4040
}

packages/react-docgen-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dist"
1616
],
1717
"engines": {
18-
"node": ">=16.14.0"
18+
"node": "^18.19.0 || ^20.9.0 || >=22"
1919
},
2020
"scripts": {
2121
"build": "rimraf dist/ && tsc",

packages/react-docgen/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dist"
1919
],
2020
"engines": {
21-
"node": ">=16.14.0"
21+
"node": "^18.19.0 || ^20.9.0 || >=22"
2222
},
2323
"main": "dist/main.js",
2424
"typings": "dist/main.d.ts",

0 commit comments

Comments
 (0)