Skip to content

Commit

Permalink
[BREAKING] Require Node.js 20.11.x/>=21.2.0 and npm >=10
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RandomByte committed Feb 20, 2024
1 parent d99f05e commit 37620d7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
node-version: 16.18.0
node-version: 20.11.0

- name: Install dependencies
run: npm ci
Expand Down
29 changes: 16 additions & 13 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"./internal/loggers/*": "./lib/loggers/*.js"
},
"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",
Expand Down

0 comments on commit 37620d7

Please sign in to comment.