From 97c9fe2520723d45a5a86da06b888ae888d400be Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 17 May 2021 11:34:58 +0200 Subject: [PATCH] chore: drop support for Node.js 10 (#7200) This is a prerequisite for shipping Puppeteer as JavaScript modules. Issue: #6753 BREAKING CHANGE: Node.js 10 is no longer supported. --- .github/workflows/main.yml | 8 ++++---- tsconfig.base.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dbbe66f9bca74..ca368869b022f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,9 +14,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - # Include all major maintenance + active LTS Node.js versions. + # Include all major maintenance + active LTS + current Node.js versions. # https://github.com/nodejs/Release#release-schedule - node: [10, 12, 14] + node: [12, 14, 16] steps: - name: Checkout uses: actions/checkout@v2 @@ -94,7 +94,7 @@ jobs: with: # Test only the oldest maintenance LTS Node.js version. # https://github.com/nodejs/Release#release-schedule - node-version: 10 + node-version: 12 - name: Install dependencies run: | @@ -135,7 +135,7 @@ jobs: with: # Test only the oldest maintenance LTS Node.js version. # https://github.com/nodejs/Release#release-schedule - node-version: 10 + node-version: 12 - name: Install dependencies run: | diff --git a/tsconfig.base.json b/tsconfig.base.json index b1229ed97d06b..10d347f1561e4 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -3,9 +3,9 @@ "esModuleInterop": true, "allowJs": true, "checkJs": true, - "target": "ESNext", + "target": "ES2019", "moduleResolution": "node", - "module": "ESNext", + "module": "ES2015", "declaration": true, "declarationMap": true, "resolveJsonModule": true,