Skip to content

Commit

Permalink
Merge pull request #415 from gregberge/upgrade-deps
Browse files Browse the repository at this point in the history
chore: upgrade dependencies
  • Loading branch information
gregberge authored Mar 22, 2020
2 parents c380147 + 0946fae commit b2214b7
Show file tree
Hide file tree
Showing 12 changed files with 2,427 additions and 1,950 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@now/node": "^1.3.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"babel-jest": "^25.1.0",
"babel-loader": "^8.0.6",
"codecov": "^3.5.0",
"conventional-github-releaser": "^3.1.3",
Expand All @@ -34,7 +34,7 @@
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.13.0",
"jest": "^24.8.0",
"jest": "^25.1.0",
"lerna": "^3.14.1",
"react": "^16.8.6"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@svgr/plugin-svgo": "^5.2.0",
"camelcase": "^5.3.1",
"chalk": "^3.0.0",
"commander": "^4.0.1",
"commander": "^5.0.0",
"dashify": "^2.0.0",
"glob": "^7.1.4",
"output-file-sync": "^2.0.1"
Expand Down
60 changes: 30 additions & 30 deletions packages/cli/src/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -449,40 +449,40 @@ exports[`cli should suppress output when transforming a directory with a --silen
exports[`cli should transform a whole directory and output relative destination paths 1`] = `
"
__fixtures__/cased/PascalCase.svg -> __fixtures_build__/whole/cased/PascalCase.js
__fixtures__/cased/camelCase.svg -> __fixtures_build__/whole/cased/CamelCase.js
__fixtures__/cased/kebab-case.svg -> __fixtures_build__/whole/cased/KebabCase.js
__fixtures__/cased/multiple---dashes.svg -> __fixtures_build__/whole/cased/MultipleDashes.js
__fixtures__/complex/skype.svg -> __fixtures_build__/whole/complex/Skype.js
__fixtures__/complex/telegram.svg -> __fixtures_build__/whole/complex/Telegram.js
__fixtures__/nesting/a/c/three.svg -> __fixtures_build__/whole/nesting/a/c/Three.js
__fixtures__/nesting/a/two.svg -> __fixtures_build__/whole/nesting/a/Two.js
__fixtures__/nesting/one.svg -> __fixtures_build__/whole/nesting/One.js
__fixtures__/numeric/2.file.svg -> __fixtures_build__/whole/numeric/2File.js
__fixtures__/numeric/file.svg -> __fixtures_build__/whole/numeric/File.js
__fixtures__/simple/file.svg -> __fixtures_build__/whole/simple/File.js
__fixtures__/withPrettierRc/file.svg -> __fixtures_build__/whole/withPrettierRc/File.js
__fixtures__/withSvgoYml/file.svg -> __fixtures_build__/whole/withSvgoYml/File.js
__fixtures__/withSvgrRc/file.svg -> __fixtures_build__/whole/withSvgrRc/File.js"
__fixtures__/cased/pascalcase.svg -> __fixtures_build__/whole/cased/pascalcase.js
__fixtures__/cased/camelcase.svg -> __fixtures_build__/whole/cased/camelcase.js
__fixtures__/cased/kebab-case.svg -> __fixtures_build__/whole/cased/kebabcase.js
__fixtures__/cased/multiple---dashes.svg -> __fixtures_build__/whole/cased/multipledashes.js
__fixtures__/complex/skype.svg -> __fixtures_build__/whole/complex/skype.js
__fixtures__/complex/telegram.svg -> __fixtures_build__/whole/complex/telegram.js
__fixtures__/nesting/a/c/three.svg -> __fixtures_build__/whole/nesting/a/c/three.js
__fixtures__/nesting/a/two.svg -> __fixtures_build__/whole/nesting/a/two.js
__fixtures__/nesting/one.svg -> __fixtures_build__/whole/nesting/one.js
__fixtures__/numeric/2.file.svg -> __fixtures_build__/whole/numeric/2file.js
__fixtures__/numeric/file.svg -> __fixtures_build__/whole/numeric/file.js
__fixtures__/simple/file.svg -> __fixtures_build__/whole/simple/file.js
__fixtures__/withprettierrc/file.svg -> __fixtures_build__/whole/withprettierrc/file.js
__fixtures__/withsvgoyml/file.svg -> __fixtures_build__/whole/withsvgoyml/file.js
__fixtures__/withsvgrrc/file.svg -> __fixtures_build__/whole/withsvgrrc/file.js"
`;
exports[`cli should transform a whole directory with --typescript 1`] = `
"
__fixtures__/cased/PascalCase.svg -> __fixtures_build__/whole/cased/PascalCase.tsx
__fixtures__/cased/camelCase.svg -> __fixtures_build__/whole/cased/CamelCase.tsx
__fixtures__/cased/kebab-case.svg -> __fixtures_build__/whole/cased/KebabCase.tsx
__fixtures__/cased/multiple---dashes.svg -> __fixtures_build__/whole/cased/MultipleDashes.tsx
__fixtures__/complex/skype.svg -> __fixtures_build__/whole/complex/Skype.tsx
__fixtures__/complex/telegram.svg -> __fixtures_build__/whole/complex/Telegram.tsx
__fixtures__/nesting/a/c/three.svg -> __fixtures_build__/whole/nesting/a/c/Three.tsx
__fixtures__/nesting/a/two.svg -> __fixtures_build__/whole/nesting/a/Two.tsx
__fixtures__/nesting/one.svg -> __fixtures_build__/whole/nesting/One.tsx
__fixtures__/numeric/2.file.svg -> __fixtures_build__/whole/numeric/2File.tsx
__fixtures__/numeric/file.svg -> __fixtures_build__/whole/numeric/File.tsx
__fixtures__/simple/file.svg -> __fixtures_build__/whole/simple/File.tsx
__fixtures__/withPrettierRc/file.svg -> __fixtures_build__/whole/withPrettierRc/File.tsx
__fixtures__/withSvgoYml/file.svg -> __fixtures_build__/whole/withSvgoYml/File.tsx
__fixtures__/withSvgrRc/file.svg -> __fixtures_build__/whole/withSvgrRc/File.tsx"
__fixtures__/cased/pascalcase.svg -> __fixtures_build__/whole/cased/pascalcase.tsx
__fixtures__/cased/camelcase.svg -> __fixtures_build__/whole/cased/camelcase.tsx
__fixtures__/cased/kebab-case.svg -> __fixtures_build__/whole/cased/kebabcase.tsx
__fixtures__/cased/multiple---dashes.svg -> __fixtures_build__/whole/cased/multipledashes.tsx
__fixtures__/complex/skype.svg -> __fixtures_build__/whole/complex/skype.tsx
__fixtures__/complex/telegram.svg -> __fixtures_build__/whole/complex/telegram.tsx
__fixtures__/nesting/a/c/three.svg -> __fixtures_build__/whole/nesting/a/c/three.tsx
__fixtures__/nesting/a/two.svg -> __fixtures_build__/whole/nesting/a/two.tsx
__fixtures__/nesting/one.svg -> __fixtures_build__/whole/nesting/one.tsx
__fixtures__/numeric/2.file.svg -> __fixtures_build__/whole/numeric/2file.tsx
__fixtures__/numeric/file.svg -> __fixtures_build__/whole/numeric/file.tsx
__fixtures__/simple/file.svg -> __fixtures_build__/whole/simple/file.tsx
__fixtures__/withprettierrc/file.svg -> __fixtures_build__/whole/withprettierrc/file.tsx
__fixtures__/withsvgoyml/file.svg -> __fixtures_build__/whole/withsvgoyml/file.tsx
__fixtures__/withsvgrrc/file.svg -> __fixtures_build__/whole/withsvgrrc/file.tsx"
`;
exports[`cli should work with a simple file 1`] = `
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ describe('cli', () => {
const sorted = result
.split(/\n/)
.sort()
.map(x => x.toLowerCase())
.join('\n')
expect(sorted).toMatchSnapshot()
}, 10000)
Expand All @@ -71,6 +72,7 @@ describe('cli', () => {
const sorted = result
.split(/\n/)
.sort()
.map(x => x.toLowerCase())
.join('\n')
expect(sorted).toMatchSnapshot()
}, 10000)
Expand Down
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.7.5",
"@babel/plugin-transform-react-constant-elements": "^7.7.4",
"@babel/preset-env": "^7.7.6",
"@babel/preset-react": "^7.7.4",
"@babel/core": "^7.9.0",
"@babel/plugin-transform-react-constant-elements": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.9.1",
"@svgr/core": "^5.2.0",
"@svgr/plugin-jsx": "^5.2.0",
"@svgr/plugin-svgo": "^5.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,18 @@ function _extends() {
return _extends.apply(this, arguments);
}
var _ref =
/*#__PURE__*/
React.createElement(\\"g\\", {
var _ref = /*#__PURE__*/React.createElement(\\"g\\", {
stroke: \\"#063855\\",
strokeWidth: 2,
fill: \\"none\\",
fillRule: \\"evenodd\\",
strokeLinecap: \\"square\\"
}, React.createElement(\\"path\\", {
}, /*#__PURE__*/React.createElement(\\"path\\", {
d: \\"M51 37L37 51M51 51L37 37\\"
}));
function SvgIcon(props) {
return React.createElement(\\"svg\\", _extends({
return /*#__PURE__*/React.createElement(\\"svg\\", _extends({
width: 88,
height: 88
}, props), _ref);
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": {
"merge-deep": "^3.0.2",
"prettier": "^1.17.1"
"prettier": "^2.0.1 || ^1.19.1"
}
}
2 changes: 1 addition & 1 deletion packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"rollup-pluginutils": "^2.8.2"
},
"devDependencies": {
"rollup": "^1.14.2",
"rollup": "^2.1.0",
"rollup-plugin-image": "^1.0.2",
"rollup-plugin-url": "^3.0.1"
}
Expand Down
6 changes: 2 additions & 4 deletions packages/rollup/src/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ exports[`rollup loader should convert file 1`] = `
import * as React from \\"react\\";
var _ref =
/*#__PURE__*/
React.createElement(\\"path\\", {
var _ref = /*#__PURE__*/React.createElement(\\"path\\", {
d: \\"M0 0h48v1H0z\\",
fill: \\"#063855\\",
fillRule: \\"evenodd\\"
});
function SvgFile(props) {
return React.createElement(\\"svg\\", _extends({
return /*#__PURE__*/React.createElement(\\"svg\\", _extends({
width: 48,
height: 1
}, props), _ref);
Expand Down
12 changes: 6 additions & 6 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.4.5",
"@babel/plugin-transform-react-constant-elements": "^7.0.0",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"@babel/core": "^7.9.0",
"@babel/plugin-transform-react-constant-elements": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@babel/preset-react": "^7.9.1",
"@svgr/core": "^5.2.0",
"@svgr/plugin-jsx": "^5.2.0",
"@svgr/plugin-svgo": "^5.2.0",
"loader-utils": "^1.2.3"
"loader-utils": "^2.0.0"
},
"devDependencies": {
"babel-loader": "^8.0.6",
"memory-fs": "^0.5.0",
"url-loader": "^3.0.0",
"url-loader": "^4.0.0",
"webpack": "^4.33.0"
}
}
22 changes: 9 additions & 13 deletions packages/webpack/src/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ exports[`webpack loader should convert file (babel: false) 1`] = `
"import * as React from \\"react\\";
function SvgIcon() {
return React.createElement(\\"svg\\", {
return /*#__PURE__*/React.createElement(\\"svg\\", {
width: 88,
height: 88
}, React.createElement(\\"g\\", {
}, /*#__PURE__*/React.createElement(\\"g\\", {
stroke: \\"#063855\\",
strokeWidth: 2,
fill: \\"none\\",
fillRule: \\"evenodd\\",
strokeLinecap: \\"square\\"
}, React.createElement(\\"path\\", {
}, /*#__PURE__*/React.createElement(\\"path\\", {
d: \\"M51 37L37 51M51 51L37 37\\"
})));
}
Expand All @@ -24,18 +24,16 @@ export default SvgIcon;"
exports[`webpack loader should convert file 1`] = `
"import * as React from \\"react\\";
var _ref =
/*#__PURE__*/
React.createElement(\\"svg\\", {
var _ref = /*#__PURE__*/React.createElement(\\"svg\\", {
width: 88,
height: 88
}, React.createElement(\\"g\\", {
}, /*#__PURE__*/React.createElement(\\"g\\", {
stroke: \\"#063855\\",
strokeWidth: 2,
fill: \\"none\\",
fillRule: \\"evenodd\\",
strokeLinecap: \\"square\\"
}, React.createElement(\\"path\\", {
}, /*#__PURE__*/React.createElement(\\"path\\", {
d: \\"M51 37L37 51M51 51L37 37\\"
})));
Expand All @@ -49,18 +47,16 @@ export default SvgIcon;"
exports[`webpack loader should support url-loader 1`] = `
"import * as React from \\"react\\";
var _ref =
/*#__PURE__*/
React.createElement(\\"svg\\", {
var _ref = /*#__PURE__*/React.createElement(\\"svg\\", {
width: 88,
height: 88
}, React.createElement(\\"g\\", {
}, /*#__PURE__*/React.createElement(\\"g\\", {
stroke: \\"#063855\\",
strokeWidth: 2,
fill: \\"none\\",
fillRule: \\"evenodd\\",
strokeLinecap: \\"square\\"
}, React.createElement(\\"path\\", {
}, /*#__PURE__*/React.createElement(\\"path\\", {
d: \\"M51 37L37 51M51 51L37 37\\"
})));
Expand Down
Loading

1 comment on commit b2214b7

@vercel
Copy link

@vercel vercel bot commented on b2214b7 Mar 22, 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.