Skip to content

Commit

Permalink
chore: upgrade deps & test on Node.js v14 (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge authored Nov 15, 2020
1 parent d61e0cf commit fe5cb21
Show file tree
Hide file tree
Showing 14 changed files with 3,081 additions and 2,562 deletions.
13 changes: 10 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
"@babel/preset-env",
{
"targets": {
"node": "8"
"node": "10"
},
"loose": true
}
},
"preset-env"
]
],
"plugins": ["@babel/plugin-proposal-class-properties"]
"plugins": [
[
"@babel/plugin-proposal-class-properties",
{ "loose": true },
"class-properties"
]
]
}
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ language: node_js
node_js:
- 10
- 12

before_install:
- curl -o- -L https://yarnpkg.com/install.sh
- export PATH="$HOME/.yarn/bin:$PATH"
- 14

script:
- yarn ci
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@
"test": "jest --runInBand"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/generator": "^7.9.5",
"@babel/node": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-syntax-typescript": "^7.3.3",
"@babel/preset-env": "^7.9.5",
"@now/node": "^1.5.1",
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/generator": "^7.12.5",
"@babel/node": "^7.12.6",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-syntax-typescript": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@now/node": "^1.8.5",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^25.4.0",
"babel-loader": "^8.0.6",
"codecov": "^3.5.0",
"conventional-github-releaser": "^3.1.3",
"eslint": "^6.0.1",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.13.0",
"jest": "^25.4.0",
"lerna": "^3.14.1",
"react": "^16.8.6"
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.1",
"codecov": "^3.8.1",
"conventional-github-releaser": "^3.1.5",
"eslint": "^7.13.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.21.5",
"jest": "^26.6.3",
"lerna": "^3.22.1",
"react": "^17.0.1"
}
}
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"@svgr/plugin-jsx": "^5.4.0",
"@svgr/plugin-prettier": "^5.4.0",
"@svgr/plugin-svgo": "^5.4.0",
"camelcase": "^6.0.0",
"chalk": "^4.0.0",
"commander": "^5.1.0",
"camelcase": "^6.2.0",
"chalk": "^4.1.0",
"commander": "^6.2.0",
"dashify": "^2.0.0",
"glob": "^7.1.4"
},
"devDependencies": {
"del": "^5.0.0"
"del": "^6.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@svgr/plugin-jsx": "^5.4.0",
"camelcase": "^6.0.0",
"cosmiconfig": "^6.0.0"
"camelcase": "^6.2.0",
"cosmiconfig": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/hast-util-to-babel-ast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"prepublishOnly": "yarn run build"
},
"dependencies": {
"@babel/types": "^7.9.5"
"@babel/types": "^7.12.6"
}
}
8 changes: 4 additions & 4 deletions packages/parcel-plugin-svgr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"prepublishOnly": "yarn run build"
},
"dependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-transform-react-constant-elements": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/core": "^7.12.3",
"@babel/plugin-transform-react-constant-elements": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@svgr/core": "^5.4.0",
"@svgr/plugin-jsx": "^5.4.0",
"@svgr/plugin-svgo": "^5.4.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"prepublishOnly": "yarn run build"
},
"dependencies": {
"@babel/core": "^7.7.5",
"@babel/core": "^7.12.3",
"@svgr/babel-preset": "^5.4.0",
"@svgr/hast-util-to-babel-ast": "^5.4.0",
"svg-parser": "^2.0.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
},
"dependencies": {
"deepmerge": "^4.2.2",
"prettier": "^2.0.5"
"prettier": "^2.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-svgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"prepublishOnly": "yarn run build"
},
"dependencies": {
"cosmiconfig": "^6.0.0",
"cosmiconfig": "^7.0.0",
"deepmerge": "^4.2.2",
"svgo": "^1.2.2"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@
"prepublishOnly": "yarn run build"
},
"dependencies": {
"@babel/core": "^7.7.5",
"@babel/plugin-transform-react-constant-elements": "^7.7.4",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/core": "^7.12.3",
"@babel/plugin-transform-react-constant-elements": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@svgr/core": "^5.4.0",
"@svgr/plugin-jsx": "^5.4.0",
"@svgr/plugin-svgo": "^5.4.0",
"rollup-pluginutils": "^2.8.2"
},
"devDependencies": {
"rollup": "^2.7.3",
"rollup": "^2.33.2",
"rollup-plugin-image": "^1.0.2",
"rollup-plugin-url": "^3.0.1"
}
Expand Down
14 changes: 7 additions & 7 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
"prepublishOnly": "yarn run build"
},
"dependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-transform-react-constant-elements": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/core": "^7.12.3",
"@babel/plugin-transform-react-constant-elements": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@svgr/core": "^5.4.0",
"@svgr/plugin-jsx": "^5.4.0",
"@svgr/plugin-svgo": "^5.4.0",
"loader-utils": "^2.0.0"
},
"devDependencies": {
"babel-loader": "^8.0.6",
"babel-loader": "^8.2.1",
"memory-fs": "^0.5.0",
"url-loader": "^4.1.0",
"webpack": "^4.43.0"
"url-loader": "^4.1.1",
"webpack": "^5.4.0"
}
}
7 changes: 5 additions & 2 deletions packages/webpack/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ function compile(rules) {

return new Promise((resolve, reject) => {
compiler.run((err, stats) => {
if (err) reject(err)
if (err) {
reject(err)
return
}

resolve(
stats
.toJson()
.toJson({ source: true })
.modules.find(({ name }) => name === './__fixtures__/icon.svg')
.source,
)
Expand Down
Loading

1 comment on commit fe5cb21

@vercel
Copy link

@vercel vercel bot commented on fe5cb21 Nov 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.