@svgr/core
Advanced tools
Comparing version 5.3.1 to 5.4.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [5.4.0](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.3.1...v5.4.0) (2020-04-27) | ||
### Bug Fixes | ||
* wrap svg component directly with memo/forwardRef ([#440](https://github.com/gregberge/svgr/tree/master/packages/core/issues/440)) ([#441](https://github.com/gregberge/svgr/tree/master/packages/core/issues/441)) ([a6de2da](https://github.com/gregberge/svgr/tree/master/packages/core/commit/a6de2dacb63e36572a2167b928418bdc39f3a9c2)) | ||
### Features | ||
* **cli:** make all CLI options available in config ([a23a186](https://github.com/gregberge/svgr/tree/master/packages/core/commit/a23a18675c0dd4a461d2fcbdc72a305cabd32a13)), closes [#431](https://github.com/gregberge/svgr/tree/master/packages/core/issues/431) [#437](https://github.com/gregberge/svgr/tree/master/packages/core/issues/437) | ||
## [5.3.1](https://github.com/gregberge/svgr/tree/master/packages/core/compare/v5.3.0...v5.3.1) (2020-04-05) | ||
@@ -8,0 +24,0 @@ |
@@ -16,3 +16,2 @@ "use strict"; | ||
const DEFAULT_CONFIG = { | ||
h2xConfig: null, | ||
dimensions: true, | ||
@@ -19,0 +18,0 @@ expandProps: 'end', |
{ | ||
"name": "@svgr/core", | ||
"description": "Transform SVG into React Components.", | ||
"version": "5.3.1", | ||
"version": "5.4.0", | ||
"main": "lib/index.js", | ||
@@ -33,7 +33,7 @@ "repository": "https://github.com/gregberge/svgr/tree/master/packages/core", | ||
"dependencies": { | ||
"@svgr/plugin-jsx": "^5.3.1", | ||
"camelcase": "^5.3.1", | ||
"@svgr/plugin-jsx": "^5.4.0", | ||
"camelcase": "^6.0.0", | ||
"cosmiconfig": "^6.0.0" | ||
}, | ||
"gitHead": "f30bb859254770c3507b55e53ed85607ed879ef6" | ||
"gitHead": "e9c9d2fbfbce7a6879c90cd8522101caf2406d42" | ||
} |
@@ -26,5 +26,7 @@ # @svgr/core | ||
svgr(svgCode, { icon: true }, { componentName: 'MyComponent' }).then(jsCode => { | ||
console.log(jsCode) | ||
}) | ||
svgr(svgCode, { icon: true }, { componentName: 'MyComponent' }).then( | ||
(jsCode) => { | ||
console.log(jsCode) | ||
}, | ||
) | ||
``` | ||
@@ -41,3 +43,3 @@ | ||
plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx', '@svgr/plugin-prettier'], | ||
}).then(jsCode => { | ||
}).then((jsCode) => { | ||
console.log(jsCode) | ||
@@ -44,0 +46,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20556
61
178
+ Addedcamelcase@6.3.0(transitive)
- Removedcamelcase@5.3.1(transitive)
Updated@svgr/plugin-jsx@^5.4.0
Updatedcamelcase@^6.0.0