Skip to content

Commit

Permalink
Remove support for Node 4 and 6 (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Clark committed Jun 13, 2019
1 parent 0a84b90 commit d49dad0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Expand Up @@ -14,7 +14,7 @@
"no-var": "off",
"prefer-const": "off",
"prefer-arrow-callback": "off",
"node/no-unsupported-features": ["error", {"version": 4}],
"node/no-unsupported-features": ["error", {"version": 8}],
"func-names": ["error", "always"],
"prefer-template": "error",
"object-shorthand": [
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -7,10 +7,9 @@ branches:
- master
matrix:
include:
- node_js: "4"
- node_js: "6"
- node_js: "8"
after_success: "bash <(curl -s https://codecov.io/bash)"
- node_js: "10"
after_success: "bash <(curl -s https://codecov.io/bash)"
- node_js: "12"
install:
- yarn install --frozen-lockfile
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## HEAD

- **Breaking change:** Remove support for Node 4 and 6. Requires Node 8+.

## 5.2.1

- Chore: Upgrade `js-yaml` to avoid npm audit warning.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -63,7 +63,7 @@ If you are still using v4, those v4 docs are available [in the `4.0.0` tag](http
npm install cosmiconfig
```

Tested in Node 4+.
Tested in Node 8+.

## Usage

Expand Down
16 changes: 8 additions & 8 deletions appveyor.yml
@@ -1,12 +1,5 @@
# http://www.appveyor.com/docs/appveyor-yml

environment:
matrix:
- nodejs_version: 4
- nodejs_version: 6
- nodejs_version: 8
- nodejs_version: 10

branches:
only:
- master
Expand All @@ -19,8 +12,15 @@ deploy: off
cache:
- "%LOCALAPPDATA%\\Yarn"

environment:
matrix:
- nodejs_version: 8
- nodejs_version: 10
- nodejs_version: 12

install:
- ps: Install-Product node $env:nodejs_version x64
# https://www.appveyor.com/docs/lang/nodejs-iojs/#installing-any-version-of-nodejs-or-iojs
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64
- yarn install --frozen-lockfile

test_script:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -109,6 +109,6 @@
"remark-preset-davidtheclark": "^0.7.0"
},
"engines": {
"node": ">=4"
"node": ">=8"
}
}

0 comments on commit d49dad0

Please sign in to comment.