From 03dc96a362425da2394351aaedcf798c5fb9d755 Mon Sep 17 00:00:00 2001 From: Peter Han Date: Fri, 22 Oct 2021 09:38:36 -0700 Subject: [PATCH 1/6] Add node version to package.json --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d42a33a..d8ead0f 100644 --- a/package.json +++ b/package.json @@ -61,5 +61,8 @@ ], "keywords": [ "git" - ] + ], + "engines": { + "node": ">=14" + } } From 044e285a8eaa09a8a133387f70df7348227c9efe Mon Sep 17 00:00:00 2001 From: Peter Han Date: Fri, 22 Oct 2021 09:40:17 -0700 Subject: [PATCH 2/6] Update readme prereq with updated node vers --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5dbf579..5fdbe54 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ ### Prerequisites ``` -nodejs version 8 or higher +nodejs version 14 or higher ``` ### Installation ``` - npm install --save git-parse +npm install --save git-parse ``` ### Usage From ec5cabbb73c7911ba1e2cfc9e931ea449428adb0 Mon Sep 17 00:00:00 2001 From: Peter Han Date: Fri, 22 Oct 2021 09:41:00 -0700 Subject: [PATCH 3/6] Simplify install command in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fdbe54..9c4b74b 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ nodejs version 14 or higher ### Installation ``` -npm install --save git-parse +npm i git-parse ``` ### Usage From 89e6ff38a87d5601764d7aba4c96fab2a4f537a1 Mon Sep 17 00:00:00 2001 From: Peter Han Date: Fri, 22 Oct 2021 09:43:07 -0700 Subject: [PATCH 4/6] Update node versions in github actions --- .github/workflows/pr-checks.yml | 8 ++++---- .github/workflows/release.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 57c477f..92359be 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: 10.x + node-version: 14.x cache: npm - name: Validate cache @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 10.x + node-version: 14.x cache: npm - name: install run: npm ci --loglevel verbose @@ -41,7 +41,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 10.x + node-version: 14.x cache: npm - name: install run: npm ci --loglevel verbose @@ -57,7 +57,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 10.x + node-version: 14.x cache: npm - name: install run: npm ci --loglevel verbose diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dc01c0..01ba6ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,15 +2,15 @@ name: "publish to NPM" on: push: tags: ["*"] - -jobs: + +jobs: publish: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 10 + node-version: 14 - run: npm install - run: npm test - run: npm run-script build @@ -19,7 +19,7 @@ jobs: uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_AUTH_TOKEN }} - + - if: steps.publish.outputs.type != 'none' run: | echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}" From b3e35a6cdfe25286f20ba6050f59956d96d2ee43 Mon Sep 17 00:00:00 2001 From: Peter Han Date: Fri, 22 Oct 2021 09:52:35 -0700 Subject: [PATCH 5/6] Add to changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a763cbf..66b2290 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changelog will now track changes when they are made! - Increased verbosity in `npm ci` for GitHub Action checks +- Update project to indicate Nodejs v14.x support ### Fixes From 4c4386f2b90d22b7b25f88487002cb43479dc564 Mon Sep 17 00:00:00 2001 From: Peter Han Date: Fri, 22 Oct 2021 10:22:01 -0700 Subject: [PATCH 6/6] Move changelog to indicate breaking changes --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66b2290..0e49245 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changelog will now track changes when they are made! - Increased verbosity in `npm ci` for GitHub Action checks -- Update project to indicate Nodejs v14.x support ### Fixes @@ -19,3 +18,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Removed unused `nock` dependency ### Breaking Changes + +- Updated project to indicate support for Nodejs v14.x and above