From 5edf3106ad6fdfa0b49e4d199147752c21076d3d Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Wed, 3 May 2023 12:52:53 +0200 Subject: [PATCH] infra!: drop NodeJS v14 support --- .github/workflows/ci.yml | 9 +-------- package.json | 4 ++-- scripts/bundle.ts | 2 +- tsconfig.json | 2 +- tsconfig.lint.json | 2 +- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9dd8ca4441..76046f90ca8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node_version: [14, 16, 18, 20] + node_version: [16, 18, 20] include: - os: macos-latest node_version: 16 @@ -40,14 +40,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@v2.2.4 - with: - version: 7 - - name: Install pnpm - if: matrix.node_version != 14 uses: pnpm/action-setup@v2.2.4 - name: Set node version to ${{ matrix.node_version }} diff --git a/package.json b/package.json index baa19f4cb1a..6294c0650f3 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ }, "packageManager": "pnpm@8.4.0", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0", - "npm": ">=6.14.13" + "node": "^16.13.0 || >=18.0.0", + "npm": ">=7.10.0" } } diff --git a/scripts/bundle.ts b/scripts/bundle.ts index b162a32ecfb..0906eb029c5 100644 --- a/scripts/bundle.ts +++ b/scripts/bundle.ts @@ -7,7 +7,7 @@ console.log('Building dist for node (cjs)...'); // Generate entry-points for cjs compatibility const localeDir = 'locale'; -const target = ['ES2019', 'node14.17']; +const target = ['ES2022', 'node16.13']; if (existsSync(localeDir)) { rmSync(localeDir, { recursive: true, force: true }); diff --git a/tsconfig.json b/tsconfig.json index d201dfd1ea2..ca89db53422 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2019", + "target": "ES2022", "moduleResolution": "Node", "rootDir": "src", "outDir": "dist", diff --git a/tsconfig.lint.json b/tsconfig.lint.json index e31e38827df..2f8ca73d122 100644 --- a/tsconfig.lint.json +++ b/tsconfig.lint.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.base.json", "compilerOptions": { - "target": "ES2020", + "target": "ES2022", "stripInternal": true, "skipLibCheck": false, "rootDir": "."