From 7c9eb9a58615130c5cade934c3fd73c78fc88d52 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Sat, 26 Oct 2019 00:34:35 -0400 Subject: [PATCH 1/5] fix: require Node.js >=8.16 --- .travis.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4b5fcd36..9f73ff1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: node_js node_js: - 12 - 10 - - 8.3 + - 8.16 # Trigger a push build on master and greenkeeper branches + PRs build on every branches # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) diff --git a/package.json b/package.json index 9b3a3205..3ac930af 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "xo": "^0.25.2" }, "engines": { - "node": ">=8.3" + "node": ">=8.16" }, "files": [ "lib", From 5132713c7b1bcf176f7a21250d6b8fe69e58afd4 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Sat, 26 Oct 2019 00:35:56 -0400 Subject: [PATCH 2/5] fix(package): update execa to version 3.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ac930af..d5fa2a81 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "aggregate-error": "^3.0.0", "debug": "^4.0.0", "dir-glob": "^3.0.0", - "execa": "^1.0.0", + "execa": "^3.2.0", "fs-extra": "^8.0.0", "globby": "^10.0.0", "lodash": "^4.17.4", From 8fda503714cbc83126adc91088e8c31c4c700e95 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Mon, 4 Nov 2019 19:02:50 -0500 Subject: [PATCH 3/5] test: remove unnecessary `serial` --- test/prepare.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/prepare.test.js b/test/prepare.test.js index 0f40f3c2..ca24abcc 100644 --- a/test/prepare.test.js +++ b/test/prepare.test.js @@ -62,7 +62,7 @@ test('Exclude CHANGELOG.md, package.json, package-lock.json, and npm-shrinkwrap. t.deepEqual(await gitCommitedFiles('HEAD', {cwd, env}), []); }); -test.serial('Allow to customize the commit message', async t => { +test('Allow to customize the commit message', async t => { const {cwd, repositoryUrl} = await gitRepo(true); const pluginConfig = { message: `Release version \${nextRelease.version} from branch \${branch} From 3323aacc32d31ad804c2a3387d481391ad188031 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Mon, 4 Nov 2019 19:03:15 -0500 Subject: [PATCH 4/5] fix: use correct `debug` scope --- lib/glob-assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/glob-assets.js b/lib/glob-assets.js index 1a760560..2c7a6530 100644 --- a/lib/glob-assets.js +++ b/lib/glob-assets.js @@ -1,7 +1,7 @@ const {isPlainObject, castArray, uniq} = require('lodash'); const dirGlob = require('dir-glob'); const globby = require('globby'); -const debug = require('debug')('semantic-release:github'); +const debug = require('debug')('semantic-release:git'); module.exports = async ({cwd}, assets) => uniq( From 16edc0b7794482c3f57e144c3f4cf01abe0b3205 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Wed, 20 Nov 2019 21:58:17 -0500 Subject: [PATCH 5/5] style: prettier formatting --- test/helpers/git-utils.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/helpers/git-utils.js b/test/helpers/git-utils.js index bc06b373..10331df7 100644 --- a/test/helpers/git-utils.js +++ b/test/helpers/git-utils.js @@ -78,9 +78,11 @@ export async function gitCommits(messages, execaOpts) { */ export async function gitGetCommits(from, execaOpts) { Object.assign(gitLogParser.fields, {hash: 'H', message: 'B', gitTags: 'd', committerDate: {key: 'ci', type: Date}}); - return (await getStream.array( - gitLogParser.parse({_: `${from ? from + '..' : ''}HEAD`}, {...execaOpts, env: {...process.env, ...execaOpts.env}}) - )).map(commit => { + return ( + await getStream.array( + gitLogParser.parse({_: `${from ? from + '..' : ''}HEAD`}, {...execaOpts, env: {...process.env, ...execaOpts.env}}) + ) + ).map(commit => { commit.message = commit.message.trim(); commit.gitTags = commit.gitTags.trim(); return commit;