Skip to content

Commit 5127305

Browse files
committed
feat: require Node.js 6
BREAKING CHANGE: remove support for Node.js < 6
1 parent e1627e6 commit 5127305

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: node_js
22

33
node_js:
4-
- 9
4+
- 10
55
- 8
66
- 6
7-
- 4
87

98
branches:
109
only:

lib/format-commit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = (answers, options, config) => {
3636
};
3737
// Parentheses are only needed when a scope is present
3838
const scope = answers.scope ? answers.scope.trim() : '';
39-
const isAlias = !Object.prototype.hasOwnProperty.call(options.types, answers.type);
39+
const isAlias = !Reflect.apply(Object.prototype.hasOwnProperty, options.types, [answers.type]);
4040
const type = isAlias ? options.aliases[answers.type].type : answers.type;
4141
const emoji = config.emoji ? (isAlias ? options.aliases[answers.type].emoji : options.types[type].emoji) : '';
4242
// Limit head to maxSubjectLength (including the trailing emoji)

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"xo": "^0.21.0"
2626
},
2727
"engines": {
28-
"node": ">=4"
28+
"node": ">=6"
2929
},
3030
"files": [
3131
"lib",
@@ -60,8 +60,6 @@
6060
},
6161
"prettier": {
6262
"printWidth": 120,
63-
"singleQuote": true,
64-
"bracketSpacing": false,
6563
"trailingComma": "es5"
6664
},
6765
"publishConfig": {

0 commit comments

Comments
 (0)