Skip to content

Commit

Permalink
Automatically pass on Node 6 or earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Jul 5, 2019
1 parent dfe9a50 commit 7c661eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## UNRELEASED

### New features

- Update `eslint` from `~5.16.0` to `~6.0.1`
- BREAKING: Node.js 6 is no longer supported
- Node.js 6 is EOL and will no longer be receiving security updates. As a result, the eslint team has decided to drop support for it.
- To prevent breaking CI for projects which still support Node 6, `standard` silently passes when run by an unsupported version of Node.

## 12.0.1 - 2018-08-29

- Since ESLint 5 no longer supports Node 4, `standard` silently passes when run in Node 4, which matches the current behavior for Node 0.10, 0.12, and all other unsupported versions of Node.
Expand Down
6 changes: 3 additions & 3 deletions bin/cmd.js
@@ -1,8 +1,8 @@
#!/usr/bin/env node

if (process.version.match(/v(\d+)\./)[1] < 6) {
console.error('standard: Node 6 or greater is required. `standard` did not run.')
if (process.version.match(/v(\d+)\./)[1] < 8) {
console.error('standard: Node 8 or greater is required. `standard` did not run.')
} else {
var opts = require('../options')
const opts = require('../options')
require('standard-engine').cli(opts)
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -33,7 +33,7 @@
"tape": "^4.6.0"
},
"engines": {
"node": ">=6"
"node": ">=8"
},
"homepage": "https://standardjs.com",
"keywords": [
Expand Down

0 comments on commit 7c661eb

Please sign in to comment.