diff --git a/.eslintrc.json b/.eslintrc.json index 8f2880e9..1d5a4c5f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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": [ diff --git a/.travis.yml b/.travis.yml index e3f972fa..6d46cb1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index b8563ff4..01fe9e44 100644 --- a/CHANGELOG.md +++ b/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. diff --git a/README.md b/README.md index 011fc36d..3f213c5c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/appveyor.yml b/appveyor.yml index 25b6f4de..01db252e 100644 --- a/appveyor.yml +++ b/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 @@ -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: diff --git a/package.json b/package.json index 545bb95e..109df250 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,6 @@ "remark-preset-davidtheclark": "^0.7.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }