Skip to content

Commit

Permalink
Drop node < 10 (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Jan 17, 2020
1 parent f3a3288 commit 3ffdf5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -9,10 +9,9 @@ addons:
language: node_js

node_js:
- 13
- 12
- 10
- 9
- 8
- 6

services:
- xvfb
Expand Down
2 changes: 1 addition & 1 deletion lib/aggregate-browsers.js
Expand Up @@ -17,7 +17,7 @@ function aggregate (arr) {
const versions = browsers[name].map(function (browser) {
return browser.version
}).sort(function (a, b) {
if (isNaN(a)) return 1
if (isNaN(a)) return isNaN(b) ? a.localeCompare(b) : 1
if (isNaN(b)) return -1
return Number(a) - Number(b)
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -72,7 +72,7 @@
"hallmark": "hallmark --fix"
},
"engines": {
"node": ">=6"
"node": ">=10"
},
"greenkeeper": {
"ignore": [
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/aggregated-browsers.json
Expand Up @@ -132,8 +132,8 @@
"62",
"63",
"64",
"dev",
"beta"
"beta",
"dev"
],
"platforms": [
"Linux",
Expand Down

0 comments on commit 3ffdf5c

Please sign in to comment.