From 92ed74a0c23a66cdbbde69458dd0d5b558bef14f Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Sat, 1 Dec 2018 19:39:59 -0800 Subject: [PATCH] chore(node): drop node v4 and v5 This drops support for node v4 and v5. Neither is currently supported by the Node.js team, nor by the `npm` CLI team, so it's hard to justify we continue to support it. The new minimum supported version is v6. Fixes #873 --- .travis.yml | 2 -- README.md | 2 +- appveyor.yml | 2 -- package.json | 2 +- scripts/check-node-support.js | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 807dca4d..8df349a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,6 @@ language: node_js sudo: false node_js: - - 4 - - 5 - 6 - 7 - 8 diff --git a/README.md b/README.md index 84661fce..fde0b443 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects - say goodbye to those gnarly Bash scripts! -ShellJS is proudly tested on every node release since `v4`! +ShellJS is proudly tested on every node release since `v6`! The project is [unit-tested](http://travis-ci.org/shelljs/shelljs) and battle-tested in projects like: diff --git a/appveyor.yml b/appveyor.yml index 24e22b33..e6fdf5d9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,8 +4,6 @@ environment: - nodejs_version: '8' - nodejs_version: '7' - nodejs_version: '6' - - nodejs_version: '5' - - nodejs_version: '4' version: '{build}' diff --git a/package.json b/package.json index 0cb3cb0b..f1cd9a77 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,6 @@ }, "optionalDependencies": {}, "engines": { - "node": ">=4" + "node": ">=6" } } diff --git a/scripts/check-node-support.js b/scripts/check-node-support.js index ca499c00..d8828b28 100755 --- a/scripts/check-node-support.js +++ b/scripts/check-node-support.js @@ -8,7 +8,7 @@ var yaml = require('js-yaml'); var shell = require('..'); // This is the authoritative list of supported node versions. -var MIN_NODE_VERSION = 4; +var MIN_NODE_VERSION = 6; var MAX_NODE_VERSION = 9; function checkReadme(minNodeVersion) {