Skip to content

Commit b2ad6a4

Browse files
committed
Bump node dependency to 8.9.0
6.9.0 is EOL next month and our defaultConfig stub already uses features not supported in 6.x, which means I either had to change that file to use Object.assign instead of spread, or bump our dependency. Would rather not have to write prehistoric JS just to support an almost-EOL version.
1 parent c90d55c commit b2ad6a4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@babel/preset-env",
6464
{
6565
"targets": {
66-
"node": "6.9.0"
66+
"node": "8.9.0"
6767
}
6868
}
6969
]
@@ -78,6 +78,6 @@
7878
]
7979
},
8080
"engines": {
81-
"node": ">=6.9.0"
81+
"node": ">=8.9.0"
8282
}
8383
}

stubs/defaultConfig.stub.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,10 @@ module.exports = {
236236
'4': '4px',
237237
'8': '8px',
238238
},
239-
borderColor: theme => {
240-
return global.Object.assign({ default: theme('colors.gray.300', 'currentColor') }, theme('colors'))
241-
},
239+
borderColor: theme => ({
240+
...theme('colors'),
241+
default: theme('colors.gray.300', 'currentColor'),
242+
}),
242243
borderRadius: {
243244
none: '0',
244245
sm: '.125rem',

0 commit comments

Comments
 (0)