- Upgrade to babel 7
- Upgrade to Babel 7 was a breaking change, reverting to 6 in this build so 3.3.1 no longer breaks people. Will re-release breaking babel upgrade as 4.0
- Upgrade to
@babel/7
- Added
<Mask />
and<Pattern />
support - Updated devDependencies to latest
- Do not prefix
preserveAspectRatio="none"
withxMidYMid
.
preserveAspectRatio
now as the same align default ofxMidYMid
when no alignment is given.- Moved babel-* dependencies to
devDependencies
and make the assumption that these are installed by developers if they do not want to use our pre-build bundle. - Added code coverage and Travis-CI/Coveralls integration.
- Added missing propType validation in the
index.native.js
file as well as for the<G />
tag in the browser build.
- Support
originX
andoriginY
as properties. See #13 #18
- Updated
peerDependencies
to include all React versions, not just 15.x.x. See #16 - Correctly transform/translate svg groups (
<G>
) whenx
andy
properties are added. See #15
- Improved accessibility by supporting titles for SVG elements. See #11
- Correctly use
textPath
instead oftextpath
as the element names are case sensitive. See #12
- 3.0.0 also introduced some
Prop-Type
validation to certain components. It forcedx
andy
values to be strings. This has now been updated to allow bothstring
andnumber
values.
browser
property changed toreactnative
.- Additional babel object spread plugin added.
- Actually run the build during publish so we
npm publish
a version with the compiled code.
- The package is now published with ES5 compiled code. Except for the
browser
field as that is still used by React-Native so we would want ES6 there.
- The package
react-native-svg
has been removed from thepeerDependencies
. We now make the assumption that you install this dependency as part of your react-native application. This resolves issues that people when trying tonpm shrinkwrap
their dependencies when they are not using react-native.