From 168214930400bc3acfe484631714c5fe815e1c01 Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Mon, 26 Oct 2020 00:29:27 -0700 Subject: [PATCH] chore: change supported node versions This adds testing for node v11 - v15. This removes testing for node v6 and v7 because codecov breaks on these versions. The nodejs org currently supports [10, 12, 14, 15]. This adds a small logging statement to the check-node-support script. Test: npm run check-node-support --- .travis.yml | 7 +++++-- README.md | 2 +- appveyor.yml | 7 +++++-- package.json | 2 +- scripts/check-node-support.js | 6 ++++-- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2fdcb40..3e06451 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,14 @@ language: node_js sudo: false node_js: - - 6 - - 7 - 8 - 9 - 10 + - 11 + - 12 + - 13 + - 14 + - 15 os: - linux diff --git a/README.md b/README.md index 3846e52..808e30f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ commands, providing an easy solution for simple Unix-like, cross-platform commands in npm package scripts. -`shx` is proudly tested on every node release since `v6`! +`shx` is proudly tested on every node release since `v8`! ## Difference Between ShellJS and shx diff --git a/appveyor.yml b/appveyor.yml index 3c71949..0ec63f5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,10 +1,13 @@ environment: matrix: + - nodejs_version: '15' + - nodejs_version: '14' + - nodejs_version: '13' + - nodejs_version: '12' + - nodejs_version: '11' - nodejs_version: '10' - nodejs_version: '9' - nodejs_version: '8' - - nodejs_version: '7' - - nodejs_version: '6' version: '{build}' diff --git a/package.json b/package.json index 3ca86e5..20f5190 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,6 @@ "shelljs": "^0.8.4" }, "engines": { - "node": ">=6" + "node": ">=8" } } diff --git a/scripts/check-node-support.js b/scripts/check-node-support.js index 96016b2..287455d 100755 --- a/scripts/check-node-support.js +++ b/scripts/check-node-support.js @@ -8,8 +8,8 @@ var yaml = require('js-yaml'); var shell = require('shelljs'); // This is the authoritative list of supported node versions. -var MIN_NODE_VERSION = 6; -var MAX_NODE_VERSION = 10; +var MIN_NODE_VERSION = 8; +var MAX_NODE_VERSION = 15; function checkReadme(minNodeVersion) { var start = ''; @@ -78,6 +78,8 @@ try { var appveyorFileName = path.join(__dirname, '..', 'appveyor.yml'); var appveyorYaml = yaml.safeLoad(shell.cat(appveyorFileName)); checkAppveyor(MIN_NODE_VERSION, MAX_NODE_VERSION, appveyorYaml); + console.log('All files look good (this project supports v' + + MIN_NODE_VERSION + '-v' + MAX_NODE_VERSION + ')!'); } catch (e) { console.error('Please check the files which declare our Node version'); console.error('support, as something is out-of-sync. This script failed');