From 97e0939da2bbaf7f048e24cf6e27c21904862564 Mon Sep 17 00:00:00 2001 From: Markus Olsson Date: Tue, 21 May 2024 13:27:50 +0200 Subject: [PATCH] Drop support for Node 14, 16 --- .github/workflows/ci.yml | 8 ++++---- package.json | 4 ++-- tsconfig.json | 6 +++--- yarn.lock | 17 ++++++++++++----- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a9625ca..26493fdd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - nodeVersion: [14, 16, 18] + nodeVersion: [18, 20] arch: [x64] os: [macos-11, windows-2019, ubuntu-22.04] include: @@ -27,18 +27,18 @@ jobs: friendlyName: Windows - os: windows-2019 friendlyName: Windows - nodeVersion: 16 + nodeVersion: 18 arch: x86 npm_config_arch: ia32 - os: ubuntu-22.04 friendlyName: Linux timeout-minutes: 10 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: recursive - name: Install Node.js ${{ matrix.nodeVersion }} (${{ matrix.arch }}) - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.nodeVersion }} architecture: ${{ matrix.arch }} diff --git a/package.json b/package.json index 34ac13dc..18298484 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "update-embedded-git": "node ./script/update-embedded-git.js" }, "engines": { - "node": ">= 14" + "node": ">= 18" }, "repository": { "type": "git", @@ -39,7 +39,7 @@ "devDependencies": { "@types/jest": "^28.1.7", "@types/mkdirp": "^0.5.2", - "@types/node": "^11.9.0", + "@types/node": "18", "@types/progress": "^2.0.1", "@types/rimraf": "2.0.2", "@types/tar": "^6.1.2", diff --git a/tsconfig.json b/tsconfig.json index e7360edf..6a472269 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "module": "commonjs", - "moduleResolution": "node", - "target": "es6", + "module": "Node16", + "moduleResolution": "Node16", + "target": "ES2022", "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, diff --git a/yarn.lock b/yarn.lock index ceeda065..1526ee32 100644 --- a/yarn.lock +++ b/yarn.lock @@ -650,16 +650,18 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.6.tgz#31743bc5772b6ac223845e18c3fc26f042713c83" integrity sha512-EdxgKRXgYsNITy5mjjXjVE/CS8YENSdhiagGrLqjG0pvA2owgJ6i4l7wy/PFZGC0B1/H20lWKN7ONVDNYDZm7A== +"@types/node@18": + version "18.19.33" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.33.tgz#98cd286a1b8a5e11aa06623210240bcc28e95c48" + integrity sha512-NR9+KrpSajr2qBVp/Yt5TU/rp+b5Mayi3+OlMlcg2cVCfRmcG5PWZ7S4+MG9PZ5gWBoc9Pd0BKSRViuBCRPu0A== + dependencies: + undici-types "~5.26.4" + "@types/node@^10.14.22": version "10.17.60" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== -"@types/node@^11.9.0": - version "11.15.54" - resolved "https://registry.yarnpkg.com/@types/node/-/node-11.15.54.tgz#59ed60e7b0d56905a654292e8d73275034eb6283" - integrity sha512-1RWYiq+5UfozGsU6MwJyFX6BtktcT10XRjvcAQmskCtMcW3tPske88lM/nHv7BQG1w9KBXI1zPGuu5PnNCX14g== - "@types/prettier@^2.1.5": version "2.7.0" resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.0.tgz#ea03e9f0376a4446f44797ca19d9c46c36e352dc" @@ -2300,6 +2302,11 @@ typescript@^5.4.5: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + update-browserslist-db@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.5.tgz#be06a5eedd62f107b7c19eb5bcefb194411abf38"