chore: drop support for Node.js 16 and lower

BREAKING-CHANGE: drop support for Node.js 16 and lower

Signed-off-by: dhmlau <dhmlau@ca.ibm.com>
This commit is contained in:
dhmlau 2023-10-13 08:27:14 -04:00 committed by Diana Lau
parent dbd44648d4
commit eb99dbea47
3 changed files with 9 additions and 8 deletions

View File

@ -20,12 +20,12 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
node-version: [16, 18, 20] node-version: [18, 20]
include: include:
- os: macos-latest - os: macos-latest
node_version: 16 node_version: 18
- os: windows-latest - os: windows-latest
node_version: 16 node_version: 18
fail-fast: false fail-fast: false
steps: steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@ -60,10 +60,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Use Node.js 16 - name: Use Node.js 18
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with: with:
node-version: 16 node-version: 18
- name: Bootstrap project - name: Bootstrap project
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
- name: Verify code linting - name: Verify code linting
@ -76,10 +76,10 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js 16 - name: Use Node.js 18
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with: with:
node-version: 16 node-version: 18
- name: Bootstrap project - name: Bootstrap project
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
- name: Verify commit linting - name: Verify commit linting

View File

@ -17,3 +17,4 @@ loopback-connector-*.tgz
coverage coverage
.vscodetest .vscodetest
.travis.yml .travis.yml
test

View File

@ -3,7 +3,7 @@
"version": "6.0.3", "version": "6.0.3",
"description": "Building blocks for LoopBack connectors", "description": "Building blocks for LoopBack connectors",
"engines": { "engines": {
"node": ">=16" "node": ">=18"
}, },
"author": "IBM Corp.", "author": "IBM Corp.",
"keywords": [ "keywords": [