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 Aug 31, 2024
1 parent 3033ca0 commit 74aea2d
Show file tree
Hide file tree
Showing 6 changed files with 5,542 additions and 4,383 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
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']
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.7",
"@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.5.4",
"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

0 comments on commit 74aea2d

Please sign in to comment.