Details relating to major changes that aren't presently in CHANGELOG.md
, due to limitations with how that file is being generated.
Added
onError
prop.
Changed
afterInjection
is no longer an error-first callback.
Removed
- Dropped support for React 15.
Changed
- Restored extra wrapper element in rendered output.
Changed
- Fetch errors are no longer cached (see tanem/svg-injector#692).
Changed
- Removed extra wrapper element in rendered output.
Added
- Named type definition exports.
Changed
ReactSVG
is now a named export.
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.