Skip to content

Commit 81955b8

Browse files
committed
feat: require Node.js >=10.13
BREAKING CHANGE: Require Node.js >= 10.13
1 parent 03237d7 commit 81955b8

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ language: node_js
22

33
node_js:
44
- 12
5-
- 10
6-
- 8.16
5+
- 10.13
76

87
# Trigger a push build on release and greenkeeper branches + PRs build on every branches
98
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"xo": "^0.25.2"
4444
},
4545
"engines": {
46-
"node": ">=8.16"
46+
"node": ">=10.13"
4747
},
4848
"files": [
4949
"lib",

test/helpers/git-utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export async function gitRemoteHead(repositoryUrl, execaOpts) {
158158
return (await execa('git', ['ls-remote', repositoryUrl, 'HEAD'], execaOpts)).stdout
159159
.split('\n')
160160
.filter(head => Boolean(head))
161-
.map(head => head.match(/^(\S+)/)[1])[0];
161+
.map(head => head.match(/^(?<head>\S+)/)[1])[0];
162162
}
163163

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

178178
/**

0 commit comments

Comments
 (0)