Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Node.js 16,17,19,21 and upgrade pnpm #942

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ on:
permissions: {}

env:
NODE_VERSION: 20
NODE_VERSION: 22

jobs:
tests:
strategy:
matrix:
node: ['16.14.0', '18', '20', '21']
node: ['18.19.0', '20', '22', '23']
os: ['ubuntu']
include:
- os: macos
node: '20'
node: '22'
- os: windows
node: '20'
node: '22'

name: Tests (Node.js v${{ matrix.node }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}-latest
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.9.0"
},
"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.9",
"@types/node": "14.18.63",
"@types/node": "18.19.47",
"@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.6.3",
"vitest": "0.34.6"
},
"packageManager": "pnpm@8.15.9"
"packageManager": "pnpm@9.9.0"
}
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
Loading