From f10cce41023ffc7253590e6fa97b1c05eb9c8f50 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sun, 17 Sep 2023 08:21:44 +0100 Subject: [PATCH] chore!: drop support for node 14 and 16 BREAKING CHANGE: dropped support for EOL node 14 and 16 --- .eslintrc.js | 2 +- .github/workflows/ci.yml | 2 +- package.json | 2 +- tsconfig.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index bb206f1..31a5476 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,7 +2,7 @@ module.exports = { env: { - es2019: true, + es2023: true, node: true, }, extends: [ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5dbcb8d..53d6826 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,7 @@ jobs: if: github.event.pull_request.draft == false strategy: matrix: - node-version: [14, 16, 18, 20] + node-version: [18, 20] os: [macos-latest, ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: diff --git a/package.json b/package.json index 4f04604..9e2a2ef 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "author": "Frazer Smith ", "funding": "https://github.com/sponsors/Fdawgs", "engines": { - "node": ">=14.18.0" + "node": ">=18.0.0" }, "scripts": { "build": "tsc && jsdoc2md src/index.js > API.md && npm run lint:prettier:fix", diff --git a/tsconfig.json b/tsconfig.json index 3a703b5..a173174 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "allowJs": true, "declaration": true, "emitDeclarationOnly": true, - "lib": ["ES2019"], + "lib": ["ES2023"], "module": "NodeNext", "moduleResolution": "NodeNext", "outDir": "types",