Skip to content

Commit

Permalink
Drop Node.js 16,17,19,21 and upgrade pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Jan 18, 2025
1 parent 8b1c753 commit 4316c91
Show file tree
Hide file tree
Showing 6 changed files with 5,994 additions and 4,766 deletions.
12 changes: 12 additions & 0 deletions .changeset/popular-gorillas-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@react-docgen/cli': major
'react-docgen': major
---

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

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

- Node.js 18.19.0 or newer 18.x versions
- 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: ['18.19.0', '20', '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": "^18.19.0 || ^20.9.0 || >=22",
"pnpm": ">=9.15.4"
},
"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.11",
"@types/node": "14.18.63",
"@types/node": "18.19.71",
"@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@9.15.4"
}
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": "^18.19.0 || ^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": "^18.19.0 || ^20.9.0 || >=22"
},
"main": "dist/main.js",
"typings": "dist/main.d.ts",
Expand Down
Loading

0 comments on commit 4316c91

Please sign in to comment.