From 1e03178816220647eba44f78aa7d8867eef318c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustaf=20R=C3=A4ntil=C3=A4?= Date: Sat, 15 May 2021 14:33:34 +0200 Subject: [PATCH] feat(engine): exporting ES2019 BREAKING CHANGE: Requires NodeJS 12 --- .github/workflows/branches.yml | 1 - .github/workflows/master.yml | 3 +-- README.md | 2 ++ package.json | 2 +- tsconfig.json | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/branches.yml b/.github/workflows/branches.yml index 0813448..6c2e7c4 100644 --- a/.github/workflows/branches.yml +++ b/.github/workflows/branches.yml @@ -16,7 +16,6 @@ jobs: strategy: matrix: node-version: - - 10.x - 12.x - 13.x - 14.x diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8d0327f..6334169 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -15,7 +15,6 @@ jobs: strategy: matrix: node-version: - - 10.x - 12.x - 13.x - 14.x @@ -43,7 +42,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 14 - run: npm i - run: npm run build - run: npm run test --coverage diff --git a/README.md b/README.md index d6de05a..b022483 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ Since 2.0.0, `fetch-h2` requires Node.js 10.4. Since 2.4.0, `fetch-h2` has full TLS SAN (Subject Alternative Name) support. +Since 3.0.0, `fetch-h2` requires Node.js 12. + # API diff --git a/package.json b/package.json index c33f0de..11101c3 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "types": "./dist/index.d.ts", "directories": {}, "engines": { - "node": ">=10.4" + "node": ">=12" }, "files": [ "dist" diff --git a/tsconfig.json b/tsconfig.json index 9fe7e19..b003661 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,11 @@ { "compilerOptions": { "declaration": true, - "lib": [ "es2015", "es2017" ], + "lib": [ "ES2019" ], "outDir": "dist", "sourceMap": true, "module": "CommonJS", - "target": "es2018", + "target": "ES2019", "noUnusedParameters": true, "noUnusedLocals": true, "strict": true