diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 84fe3ad..bad752c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: true matrix: - node: [12, 14, 16, 18] + node: [14, 16, 18] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -34,9 +34,6 @@ jobs: node-version: ${{ matrix.node }} cache: npm - - name: Install latest npm - run: npm install --global npm@latest - - name: Install dependencies run: npm ci diff --git a/CHANGELOG.md b/CHANGELOG.md index b8a3217..4ecd7e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ # Changelog -## HEAD +## 8.0.0 -- **Breaking change:** Drop support for Node 10. +**No major breaking changes!** We dropped support for Node 10 and 12 -- which you're probably not using. And we swapped out the YAML parser -- which you probably won't notice. + +- **Breaking change:** Drop support for Node 10 and 12. - **Breaking change:** Use npm package [js-yaml](https://www.npmjs.com/package/js-yaml) to parse YAML instead of npm package [yaml](https://www.npmjs.com/package/yaml). - Added: Loader errors now include the path of the file that was tried to be loaded. diff --git a/README.md b/README.md index e06a7a6..1adb850 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Cosmiconfig continues to search up the directory tree, checking each of these pl npm install cosmiconfig ``` -Tested in Node 12+. +Tested in Node 14+. ## Usage diff --git a/package-lock.json b/package-lock.json index dc40b0c..3d38fac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cosmiconfig", - "version": "7.0.1", + "version": "8.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cosmiconfig", - "version": "7.0.1", + "version": "8.0.0", "license": "MIT", "dependencies": { "import-fresh": "^3.2.1", diff --git a/package.json b/package.json index 04c1dff..3ee4202 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmiconfig", - "version": "7.1.0", + "version": "8.0.0", "description": "Find and load configuration from a package.json property, rc file, or CommonJS module", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -98,7 +98,7 @@ "@babel/preset-env", { "targets": { - "node": "12" + "node": "14" } } ], @@ -141,6 +141,6 @@ "typescript": "^3.9.6" }, "engines": { - "node": ">=12" + "node": ">=14" } }