diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f6dab5..1b09897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ + +## [0.2.5](https://github.com/mulesoft-labs/api-console-cli/compare/v0.2.4...v0.2.5) (2017-11-10) + +* Updating engine minimum version to reflect actual state of requiremenets +* Adding error message for incompatible engine versions. + + +## [0.2.4](https://github.com/mulesoft-labs/api-console-cli/compare/0.2.3...v0.2.4) (2017-10-16) + +* Added SSL options for serve command. Thanks @ralucas for this PR. + + +## [0.2.3](https://github.com/mulesoft-labs/api-console-cli/compare/0.2.2...0.2.3) (2017-08-14) + +* Adding `dev` command + + +## [0.2.2](https://github.com/mulesoft-labs/api-console-cli/compare/v0.2.1...0.2.2) (2017-07-26) + +* Updated builder and enhancer dependencies to fix issues with downloading latest release information +* Now uses one code base for the `raml2obj` library +* Updated help messages. + ## [0.2.1](https://github.com/mulesoft-labs/api-console-cli/compare/0.2.0...v0.2.1) (2017-07-04) diff --git a/bin/api-console-cli.js b/bin/api-console-cli.js index d4df07b..b9467a2 100755 --- a/bin/api-console-cli.js +++ b/bin/api-console-cli.js @@ -6,10 +6,13 @@ process.title = 'api-console'; var semver = require('semver'); // Early exit if the user's node version is too low. -if (!semver.satisfies(process.version, '>=4')) { - console.log( - 'API Console CLI requires at least Node v4. ' + - 'You have ' + process.version + '.'); +if (!semver.satisfies(process.version, '>=6.4')) { + const colors = require('colors/safe'); + console.log(colors.red( + '\n' + + 'API Console CLI requires at least Node v6.4.0. ' + + 'You have ' + process.version + '.' + + '\n')); process.exit(1); } diff --git a/package.json b/package.json index 7cc9c1a..9cfa0be 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,14 @@ { "name": "api-console-cli", - "version": "0.2.4", + "version": "0.2.5", "description": "A set of dev tools for API console", "main": "main.js", "scripts": { "test": "mocha 'test/*.test.js' --reporter spec" }, + "engines": { + "node": ">=6.4.0" + }, "keywords": [ "API Console", "tools",