Details relating to major changes that aren't presently in CHANGELOG.md
, due to limitations with how that file is being generated.
Added
beforeInjection
prop.
Changed
onInjected
prop renamed toafterInjection
.
Removed
svgClassName
prop has been removed. Instead, usebeforeInjection
to add the class name to the SVG DOM element.svgStyle
prop has been removed. Instead, usebeforeInjection
to add the style attribute to the SVG DOM element.
Changed
@tanem/svg-injector
updated to it's latest version. This dependency had undergone significant refactoring, so even though there were no breaking API changes made toreact-svg
, it was decided to bump the major version in order to reduce the chance of breaking changes slipping into consuming code.
Added
fallback
prop.
Changed
onInjected
is now an error-first callback.
Changed
path
prop renamed tosrc
.
Added
- All additional non-documented props will now be spread onto the wrapper element.
Changed
callback
prop renamed toonInjected
.className
prop renamed tosvgClassName
.style
prop renamed tosvgStyle
.
Removed
wrapperClassName
has been removed. Instead, passclassName
since it will be spread onto the wrapper element.