From 6a444a077166451ada16334ef62f1357e2c15bd7 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Mon, 19 Feb 2024 10:28:13 +0100 Subject: [PATCH] [BREAKING] Require Node.js 20.11.x/>=21.2.0 and npm >=10 BREAKING CHANGE: Support for older Node.js and npm releases has been dropped. Only Node.js 20.11.x and >=21.2.0 as well as npm v10 or higher are supported. --- .github/workflows/github-ci.yml | 4 ++-- azure-pipelines.yml | 29 ++++++++++++++++------------- package-lock.json | 4 ++-- package.json | 4 ++-- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 1a0809eeb..b3477c2e0 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -16,10 +16,10 @@ jobs: - uses: actions/checkout@v4 - - name: Use Node.js LTS 16.18.0 + - name: Use Node.js LTS 20.11.0 uses: actions/setup-node@v4.0.2 with: - node-version: 16.18.0 + node-version: 20.11.0 - name: Install dependencies run: npm ci diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 054adece4..2c2609c18 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,32 +6,35 @@ trigger: - main +variables: + CI: true + strategy: matrix: - linux_node_lts_16: + linux_node_lts_20_min_version: imageName: 'ubuntu-22.04' - node_version: 16.x - linux_node_lts_18_min_version: + node_version: 20.11.0 + linux_node_21_min_version: imageName: 'ubuntu-22.04' - node_version: 18.12.0 - linux_node_lts_18: + node_version: 21.2.0 + linux_node_lts_20: imageName: 'ubuntu-22.04' - node_version: 18.x - mac_node_lts_18: + node_version: 20.x + mac_node_lts_20: imageName: 'macos-12' - node_version: 18.x - windows_node_lts_18: + node_version: 20.x + windows_node_lts_20: imageName: 'windows-2022' - node_version: 18.x + node_version: 20.x linux_node_current: imageName: 'ubuntu-22.04' - node_version: 20.x + node_version: 21.x mac_node_current: imageName: 'macos-12' - node_version: 20.x + node_version: 21.x windows_node_current: imageName: 'windows-2022' - node_version: 20.x + node_version: 21.x pool: vmImage: $(imageName) diff --git a/package-lock.json b/package-lock.json index a25c1b7b0..211de605f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -57,8 +57,8 @@ "tap-xunit": "^2.4.1" }, "engines": { - "node": "^16.18.0 || >=18.12.0", - "npm": ">= 8" + "node": "^20.11.0 || >=21.2.0", + "npm": ">= 10" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 11e99edb2..41ac4b332 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "./package.json": "./package.json" }, "engines": { - "node": "^16.18.0 || >=18.12.0", - "npm": ">= 8" + "node": "^20.11.0 || >=21.2.0", + "npm": ">= 10" }, "scripts": { "test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck",