Skip to content

Commit

Permalink
infra!: drop NodeJS v14 and v16 support (#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Feb 9, 2024
1 parent 7c7f78d commit 1e0df8b
Show file tree
Hide file tree
Showing 7 changed files with 212 additions and 239 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node_version: [14, 16, 18, 20]
include:
- os: macos-latest
node_version: 16
- os: macos-latest
node_version: 18
- os: macos-latest
node_version: 20
- os: windows-latest
node_version: 16
- os: windows-latest
node_version: 18
- os: windows-latest
node_version: 20
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 20]
fail-fast: false
timeout-minutes: 10

Expand All @@ -40,14 +27,7 @@ jobs:
# Required for docs/versions tests
fetch-depth: 0

- name: Install pnpm (node 14, pnpm 7)
if: matrix.node_version == 14
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: 7

- name: Install pnpm
if: matrix.node_version != 14
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0

- name: Set node version to ${{ matrix.node_version }}
Expand Down
3 changes: 3 additions & 0 deletions docs/guide/upgrading_v9/2121.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Node 14 and 16 No Longer Supported

Support for Node.js versions 14 and 16 has been discontinued as these versions have reached their [end-of-life](https://github.com/nodejs/Release). Faker.js 9.0 requires a minimum of Node.js version 18.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@
"vitest": "~0.34.6",
"vue": "~3.4.15"
},
"packageManager": "pnpm@8.5.1",
"packageManager": "pnpm@8.15.1",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=6.14.13"
"node": ">=18.0.0",
"npm": ">=9.0.0"
}
}
Loading

0 comments on commit 1e0df8b

Please sign in to comment.