From bf7b899d334aa9bcf3f5a93ce2d6781ed0fd6a95 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 12 Nov 2024 16:23:46 +0100 Subject: [PATCH] feat!: drop node v18 support --- .github/workflows/build.yml | 4 ++-- package.json | 2 +- tsconfig.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7ccdf4..1175f04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: test: needs: - prepare - name: ${{ matrix.node-version == 20 && format('test ({0})', matrix.os) || format('test ({0}, node-{1})', matrix.os, matrix.node-version) }} + name: ${{ matrix.node-version == 22 && format('test ({0})', matrix.os) || format('test ({0}, node-{1})', matrix.os, matrix.node-version) }} runs-on: ${{ matrix.os }} # tests shouldn't need more time @@ -50,7 +50,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node-version: [18, 20, 22] + node-version: [20, 22] # exclude: # - os: windows-latest # node-version: 12 diff --git a/package.json b/package.json index db3c705..0b5d736 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ }, "packageManager": "pnpm@8.15.9", "engines": { - "node": "^18.12.0 || ^20.0.0 || ^22.11.0", + "node": "^20.0.0 || ^22.11.0", "pnpm": "^8.6.11" } } diff --git a/tsconfig.json b/tsconfig.json index 8fdf4e9..b3f0fd7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,10 +4,10 @@ "declarationDir": "./dist", "module": "commonjs", "noImplicitAny": true, - "lib": ["ES2020"], + "lib": ["ES2023"], "outDir": "./dist", /* https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping */ - "target": "ES2020", + "target": "ES2022", "moduleResolution": "node", "importHelpers": true },