@svgr/core
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [3.1.0](https://github.com/smooth-code/svgr/compare/v3.0.0...v3.1.0) (2018-10-05) | ||
### Bug Fixes | ||
* style & custom SVG properties ([#203](https://github.com/smooth-code/svgr/issues/203)) ([f8b2212](https://github.com/smooth-code/svgr/commit/f8b2212)), closes [#199](https://github.com/smooth-code/svgr/issues/199) [#201](https://github.com/smooth-code/svgr/issues/201) | ||
### Features | ||
* allow Mask & Image on React Native ([#202](https://github.com/smooth-code/svgr/issues/202)) ([0256bc0](https://github.com/smooth-code/svgr/commit/0256bc0)) | ||
<a name="3.0.0"></a> | ||
@@ -8,0 +24,0 @@ # [3.0.0](https://github.com/smooth-code/svgr/compare/v2.4.1...v3.0.0) (2018-10-01) |
@@ -15,3 +15,3 @@ "use strict"; | ||
if (value.name !== 'title') return accumulation; | ||
if (value.children.some(e => e.text === '{title}')) return accumulation; | ||
if (value.children.some(e => e.text === 'title')) return accumulation; | ||
return true; | ||
@@ -28,3 +28,3 @@ }, false); | ||
if (element.name !== 'title') return true; | ||
if (element.children.some(e => e.text === '{title}')) return true; | ||
if (element.children.some(e => e.text === 'title')) return true; | ||
return false; | ||
@@ -36,6 +36,6 @@ }); | ||
const element = new _h2xPluginJsx.JSXElement(); | ||
const text = new _h2xPluginJsx.JSXText(); | ||
text.text = '{title}'; | ||
const interpolation = new _h2xPluginJsx.JSXInterpolation(); | ||
interpolation.value = 'title'; | ||
element.name = 'title'; | ||
element.children.push(text); | ||
element.children.push(interpolation); | ||
path.node.children.unshift(element); | ||
@@ -42,0 +42,0 @@ } |
@@ -28,3 +28,5 @@ "use strict"; | ||
defs: 'Defs', | ||
stop: 'Stop' | ||
stop: 'Stop', | ||
mask: 'Mask', | ||
image: 'Image' | ||
}; | ||
@@ -31,0 +33,0 @@ const componentToElement = Object.keys(elementToComponent).reduce((map, key) => _extends({}, map, { |
{ | ||
"name": "@svgr/core", | ||
"description": "Transform SVG into React Components.", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"main": "lib/index.js", | ||
@@ -27,4 +27,4 @@ "repository": "git@github.com:smooth-code/svgr.git", | ||
"cosmiconfig": "^5.0.6", | ||
"h2x-core": "^1.1.0", | ||
"h2x-plugin-jsx": "^1.1.0", | ||
"h2x-core": "^1.1.1", | ||
"h2x-plugin-jsx": "^1.2.0", | ||
"merge-deep": "^3.0.2", | ||
@@ -34,3 +34,3 @@ "prettier": "^1.14.3", | ||
}, | ||
"gitHead": "a4e63f058e8e0e19b1802cef0015d97723721a3d" | ||
"gitHead": "62c78151dcd9c0b73196f6d3f859e96c5a25c9a4" | ||
} |
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
35445
705
Updatedh2x-core@^1.1.1
Updatedh2x-plugin-jsx@^1.2.0