Details relating to major changes that aren't presently in CHANGELOG.md, due to limitations with how that file is being generated.
Changed
@tanem/svg-injectorupdated to v11 (see migration notes). This drops explicit IE / legacy browser support. The library may still work in older browsers, but compatibility is no longer tested or guaranteed. If you need IE support, pin@tanem/svg-injector@^10andreact-svg@^16.
Added
onErrorprop.
Changed
afterInjectionis 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
ReactSVGis now a named export.
Added
beforeInjectionprop.
Changed
onInjectedprop renamed toafterInjection.
Removed
svgClassNameprop has been removed. Instead, usebeforeInjectionto add the class name to the SVG DOM element.svgStyleprop has been removed. Instead, usebeforeInjectionto add the style attribute to the SVG DOM element.
Changed
@tanem/svg-injectorupdated to its latest version. The dependency was significantly refactored. There were no breaking API changes toreact-svg, but the major version was bumped to reduce the risk of unexpected breakage in consuming code.
Added
fallbackprop.
Changed
onInjectedis now an error-first callback.
Changed
pathprop renamed tosrc.
Added
- All additional non-documented props will now be spread onto the wrapper element.
Changed
callbackprop renamed toonInjected.classNameprop renamed tosvgClassName.styleprop renamed tosvgStyle.
Removed
wrapperClassNamehas been removed. Instead, passclassNamesince it will be spread onto the wrapper element.