Skip to content

Commit

Permalink
(deps): upgrade several deps' majors; require Node 10+
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
agilgur5 committed Apr 27, 2020
1 parent 4e4df28 commit efa4129
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 102 deletions.
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"dist",
"templates"
],
"engines": {
"node": ">=10"
},
"dependencies": {
"@babel/core": "^7.4.4",
"@babel/helper-module-imports": "^7.0.0",
Expand Down Expand Up @@ -62,8 +65,8 @@
"babel-plugin-transform-rename-import": "^2.3.0",
"babel-traverse": "^6.26.0",
"babylon": "^6.18.0",
"camelcase": "^5.2.0",
"chalk": "^2.4.2",
"camelcase": "^6.0.0",
"chalk": "^4.0.0",
"enquirer": "^2.3.4",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.0.0",
Expand All @@ -74,19 +77,19 @@
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^2.2.0",
"execa": "3.2.0",
"fs-extra": "^8.0.1",
"execa": "4.0.0",
"fs-extra": "^9.0.0",
"jest": "^24.8.0",
"jest-watch-typeahead": "^0.4.0",
"jpjs": "^1.2.1",
"lodash.merge": "^4.6.2",
"ora": "^3.4.0",
"pascal-case": "^2.0.1",
"ora": "^4.0.3",
"pascal-case": "^3.1.1",
"prettier": "^1.19.1",
"progress-estimator": "^0.2.2",
"rollup": "^1.32.1",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-sourcemaps": "^0.5.0",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.26.0",
"sade": "^1.4.2",
Expand All @@ -103,7 +106,6 @@
"@types/node": "^13.1.0",
"@types/react": "^16.9.11",
"@types/rollup-plugin-json": "^3.0.2",
"@types/rollup-plugin-sourcemaps": "^0.4.2",
"@types/sade": "^1.6.0",
"@types/semver": "^7.1.0",
"@types/shelljs": "^0.8.5",
Expand Down
2 changes: 1 addition & 1 deletion src/createRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export async function createRollupConfig(
extensions: [...DEFAULT_EXTENSIONS, 'ts', 'tsx'],
passPerPreset: true,
custom: {
targets: opts.target === 'node' ? { node: '8' } : undefined,
targets: opts.target === 'node' ? { node: '10' } : undefined,
extractErrors: opts.extractErrors,
format: opts.format,
},
Expand Down
2 changes: 1 addition & 1 deletion src/errors/extractErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { invertObject } from './invertObject';
import { evalToString } from './evalToString';
import { paths } from '../constants';
import { safeVariableName } from '../utils';
import pascalCase from 'pascal-case';
import { pascalCase } from 'pascal-case';

const babylonOptions = {
sourceType: 'module',
Expand Down
Loading

0 comments on commit efa4129

Please sign in to comment.