Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/popular-gorillas-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@react-docgen/cli': major
'react-docgen': major
---

Drop support for Node.js 16, 17, 18, 19 and 21.

With this `react-docgen` version Node.js support is:

- Node.js 20.9.0 or newer 20.x versions
- Node.js 22.0.0 or any newer version
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
tests:
strategy:
matrix:
node: ['16.14.0', '18', '20', '22', '23']
node: ['20.9.0', '22', '23']
os: ['ubuntu']
include:
- os: macos
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"engines": {
"node": ">=16.13.0",
"pnpm": ">=8.7.5"
"node": "^20.9.0 || >=22",
"pnpm": ">=10.6.2"
},
"scripts": {
"build": "nx run-many --target=build --exclude='@react-docgen-internal/*'",
Expand All @@ -18,7 +18,7 @@
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.12",
"@types/node": "14.18.63",
"@types/node": "20.17.24",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitest/coverage-v8": "0.34.6",
Expand All @@ -36,5 +36,5 @@
"typescript": "5.7.3",
"vitest": "0.34.6"
},
"packageManager": "pnpm@8.15.9"
"packageManager": "pnpm@10.6.2"
}
2 changes: 1 addition & 1 deletion packages/react-docgen-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dist"
],
"engines": {
"node": ">=16.14.0"
"node": "^20.9.0 || >=22"
},
"scripts": {
"build": "rimraf dist/ && tsc",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-docgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dist"
],
"engines": {
"node": ">=16.14.0"
"node": "^20.9.0 || >=22"
},
"main": "dist/main.js",
"typings": "dist/main.d.ts",
Expand Down
Loading
Loading