Skip to content

Commit

Permalink
feat: require Node.js >=10.13
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Require Node.js >= 10.13
  • Loading branch information
pvdlg committed Dec 5, 2019
1 parent 03237d7 commit 81955b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -2,8 +2,7 @@ language: node_js

node_js:
- 12
- 10
- 8.16
- 10.13

# Trigger a push build on release and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
"xo": "^0.25.2"
},
"engines": {
"node": ">=8.16"
"node": ">=10.13"
},
"files": [
"lib",
Expand Down
4 changes: 2 additions & 2 deletions test/helpers/git-utils.js
Expand Up @@ -158,7 +158,7 @@ export async function gitRemoteHead(repositoryUrl, execaOpts) {
return (await execa('git', ['ls-remote', repositoryUrl, 'HEAD'], execaOpts)).stdout
.split('\n')
.filter(head => Boolean(head))
.map(head => head.match(/^(\S+)/)[1])[0];
.map(head => head.match(/^(?<head>\S+)/)[1])[0];
}

/**
Expand All @@ -172,7 +172,7 @@ export async function gitStaged(execaOpts) {
return (await execa('git', ['status', '--porcelain'], execaOpts)).stdout
.split('\n')
.filter(status => status.startsWith('A '))
.map(status => status.match(/^A\s+(.+)$/)[1]);
.map(status => status.match(/^A\s+(?<file>.+)$/)[1]);
}

/**
Expand Down

0 comments on commit 81955b8

Please sign in to comment.