Skip to content

Commit 5edf310

Browse files
committed
infra!: drop NodeJS v14 support
1 parent 9e1155c commit 5edf310

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
node_version: [14, 16, 18, 20]
18+
node_version: [16, 18, 20]
1919
include:
2020
- os: macos-latest
2121
node_version: 16
@@ -40,14 +40,7 @@ jobs:
4040
# Required for docs/versions tests
4141
fetch-depth: 0
4242

43-
- name: Install pnpm (node 14, pnpm 7)
44-
if: matrix.node_version == 14
45-
uses: pnpm/[email protected]
46-
with:
47-
version: 7
48-
4943
- name: Install pnpm
50-
if: matrix.node_version != 14
5144
uses: pnpm/[email protected]
5245

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
},
142142
"packageManager": "[email protected]",
143143
"engines": {
144-
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
145-
"npm": ">=6.14.13"
144+
"node": "^16.13.0 || >=18.0.0",
145+
"npm": ">=7.10.0"
146146
}
147147
}

scripts/bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ console.log('Building dist for node (cjs)...');
77

88
// Generate entry-points for cjs compatibility
99
const localeDir = 'locale';
10-
const target = ['ES2019', 'node14.17'];
10+
const target = ['ES2022', 'node16.13'];
1111

1212
if (existsSync(localeDir)) {
1313
rmSync(localeDir, { recursive: true, force: true });

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2019",
3+
"target": "ES2022",
44
"moduleResolution": "Node",
55
"rootDir": "src",
66
"outDir": "dist",

tsconfig.lint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4-
"target": "ES2020",
4+
"target": "ES2022",
55
"stripInternal": true,
66
"skipLibCheck": false,
77
"rootDir": "."

0 commit comments

Comments
 (0)