Skip to content

Commit e018210

Browse files
authored
(deps): upgrade several deps' majors; require Node 10+ (#678)
- officially drop support for Node <10 since many deps don't support it anymore - it has been EoL since Dec 31, 2019 and many deps are using newer, ES2017 language features now too - previously we deprecated it and semi-officially dropped, this time is fully official with engines requirement - and makes `--target node` target Node v10 instead of v8 - and will be released as a breaking change - camelcase, chalk, execa, and fs-extra all dropped Node <10 - so did prettier v2 and rollup v2 which we will update to in the near future - ora and rollup-plugin-sourcemaps dropped Node <8 in breaking bumps - so could've upgraded before, but for some reason some past Greenkeeper PRs were closed - and pascal-case upgrade didn't change any Node version support - Jest 25, which we will update to in the same breaking release, also dropped support for Node <8 - rollup-plugin-sourcemaps v0.5 is now written in TS and ships its own types, so no need for its @types/ counterpart anymore - pascal-case changed to use named export instead of a default export
1 parent 349f299 commit e018210

4 files changed

Lines changed: 169 additions & 102 deletions

File tree

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
"dist",
3636
"templates"
3737
],
38+
"engines": {
39+
"node": ">=10"
40+
},
3841
"dependencies": {
3942
"@babel/core": "^7.4.4",
4043
"@babel/helper-module-imports": "^7.0.0",
@@ -63,8 +66,8 @@
6366
"babel-plugin-transform-rename-import": "^2.3.0",
6467
"babel-traverse": "^6.26.0",
6568
"babylon": "^6.18.0",
66-
"camelcase": "^5.2.0",
67-
"chalk": "^2.4.2",
69+
"camelcase": "^6.0.0",
70+
"chalk": "^4.0.0",
6871
"enquirer": "^2.3.4",
6972
"eslint": "^6.1.0",
7073
"eslint-config-prettier": "^6.0.0",
@@ -75,19 +78,19 @@
7578
"eslint-plugin-prettier": "^3.1.0",
7679
"eslint-plugin-react": "^7.14.3",
7780
"eslint-plugin-react-hooks": "^2.2.0",
78-
"execa": "3.2.0",
79-
"fs-extra": "^8.0.1",
81+
"execa": "4.0.0",
82+
"fs-extra": "^9.0.0",
8083
"jest": "^24.8.0",
8184
"jest-watch-typeahead": "^0.4.0",
8285
"jpjs": "^1.2.1",
8386
"lodash.merge": "^4.6.2",
84-
"ora": "^3.4.0",
85-
"pascal-case": "^2.0.1",
87+
"ora": "^4.0.3",
88+
"pascal-case": "^3.1.1",
8689
"prettier": "^1.19.1",
8790
"progress-estimator": "^0.2.2",
8891
"rollup": "^1.32.1",
8992
"rollup-plugin-babel": "^4.3.2",
90-
"rollup-plugin-sourcemaps": "^0.4.2",
93+
"rollup-plugin-sourcemaps": "^0.5.0",
9194
"rollup-plugin-terser": "^5.1.2",
9295
"rollup-plugin-typescript2": "^0.26.0",
9396
"sade": "^1.4.2",
@@ -104,7 +107,6 @@
104107
"@types/node": "^13.1.0",
105108
"@types/react": "^16.9.11",
106109
"@types/rollup-plugin-json": "^3.0.2",
107-
"@types/rollup-plugin-sourcemaps": "^0.4.2",
108110
"@types/sade": "^1.6.0",
109111
"@types/semver": "^7.1.0",
110112
"@types/shelljs": "^0.8.5",

src/createRollupConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export async function createRollupConfig(
184184
extensions: [...DEFAULT_EXTENSIONS, 'ts', 'tsx'],
185185
passPerPreset: true,
186186
custom: {
187-
targets: opts.target === 'node' ? { node: '8' } : undefined,
187+
targets: opts.target === 'node' ? { node: '10' } : undefined,
188188
extractErrors: opts.extractErrors,
189189
format: opts.format,
190190
},

src/errors/extractErrors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { invertObject } from './invertObject';
1111
import { evalToString } from './evalToString';
1212
import { paths } from '../constants';
1313
import { safeVariableName } from '../utils';
14-
import pascalCase from 'pascal-case';
14+
import { pascalCase } from 'pascal-case';
1515

1616
const babylonOptions = {
1717
sourceType: 'module',

0 commit comments

Comments
 (0)