From a8af8a7a82c6f657ac10b5018e654939d90fd81f Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Mon, 24 Jan 2022 11:20:54 +0100 Subject: [PATCH] [BREAKING] Require Node.js >= 16.13.2 / npm >= 8 BREAKING CHANGE: Support for older Node.js and npm releases has been dropped. Only Node.js v16.13.2 and npm v8 or higher are supported. --- .github/workflows/github-ci.yml | 4 ++-- azure-pipelines.yml | 20 +++++++------------- package-lock.json | 4 ++-- package.json | 4 ++-- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index cbbf77c5..5a8462d7 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -20,10 +20,10 @@ jobs: - uses: actions/checkout@v2 - - name: Use Node.js LTS 14.x + - name: Use Node.js LTS 16.x uses: actions/setup-node@v2.4.1 with: - node-version: 14.x + node-version: 16.x - name: Install dependencies run: npm ci diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dd0d98b0..75fd5c3e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,24 +8,18 @@ trigger: strategy: matrix: - linux_node_10: + linux_node_lts_16: imageName: 'ubuntu-20.04' - node_version: 10.x - linux_node_lts_12: - imageName: 'ubuntu-20.04' - node_version: 12.x - linux_node_lts_14: - imageName: 'ubuntu-20.04' - node_version: 14.x + node_version: 16.x linux_node_latest: imageName: 'ubuntu-20.04' - node_version: 16.x + node_version: 17.x mac_node_latest: - imageName: 'macOS-10.15' - node_version: 16.x + imageName: 'macOS-11' + node_version: 17.x windows_node_latest: - imageName: 'windows-2019' - node_version: 16.x + imageName: 'windows-2022' + node_version: 17.x pool: vmImage: $(imageName) diff --git a/package-lock.json b/package-lock.json index 46dadd04..5f08d12e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,8 +31,8 @@ "tap-xunit": "^2.4.1" }, "engines": { - "node": ">= 10", - "npm": ">= 5" + "node": ">= 16.13.2", + "npm": ">= 8" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index 99657c05..aa7969a1 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ ], "main": "index.js", "engines": { - "node": ">= 10", - "npm": ">= 5" + "node": ">= 16.13.2", + "npm": ">= 8" }, "scripts": { "test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck",