Skip to content

Commit 1e0df8b

Browse files
authored
infra!: drop NodeJS v14 and v16 support (#2121)
1 parent 7c7f78d commit 1e0df8b

File tree

7 files changed

+212
-239
lines changed

7 files changed

+212
-239
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,8 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-latest]
18-
node_version: [14, 16, 18, 20]
19-
include:
20-
- os: macos-latest
21-
node_version: 16
22-
- os: macos-latest
23-
node_version: 18
24-
- os: macos-latest
25-
node_version: 20
26-
- os: windows-latest
27-
node_version: 16
28-
- os: windows-latest
29-
node_version: 18
30-
- os: windows-latest
31-
node_version: 20
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
node_version: [18, 20]
3219
fail-fast: false
3320
timeout-minutes: 10
3421

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

43-
- name: Install pnpm (node 14, pnpm 7)
44-
if: matrix.node_version == 14
45-
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
46-
with:
47-
version: 7
48-
4930
- name: Install pnpm
50-
if: matrix.node_version != 14
5131
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
5232

5333
- name: Set node version to ${{ matrix.node_version }}

docs/guide/upgrading_v9/2121.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Node 14 and 16 No Longer Supported
2+
3+
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.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@
133133
"vitest": "~0.34.6",
134134
"vue": "~3.4.15"
135135
},
136-
"packageManager": "pnpm@8.5.1",
136+
"packageManager": "pnpm@8.15.1",
137137
"engines": {
138-
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
139-
"npm": ">=6.14.13"
138+
"node": ">=18.0.0",
139+
"npm": ">=9.0.0"
140140
}
141141
}

0 commit comments

Comments
 (0)