Skip to content

Latest commit

 

History

History
100 lines (52 loc) · 1.95 KB

MIGRATION.md

File metadata and controls

100 lines (52 loc) · 1.95 KB

Migrating

Details relating to major changes that aren't presently in CHANGELOG.md, due to limitations with how that file is being generated.

v16.0.0

Added

  • onError prop.

Changed

  • afterInjection is no longer an error-first callback.

v15.0.0

Removed

  • Dropped support for React 15.

v14.0.0

Changed

  • Restored extra wrapper element in rendered output.

v13.0.0

Changed

v12.0.0

Changed

  • Removed extra wrapper element in rendered output.

v11.0.0

Added

  • Named type definition exports.

Changed

  • ReactSVG is now a named export.

v10.0.0

Added

  • beforeInjection prop.

Changed

  • onInjected prop renamed to afterInjection.

Removed

  • svgClassName prop has been removed. Instead, use beforeInjection to add the class name to the SVG DOM element.
  • svgStyle prop has been removed. Instead, use beforeInjection to add the style attribute to the SVG DOM element.

v8.0.0

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 to react-svg, it was decided to bump the major version in order to reduce the chance of breaking changes slipping into consuming code.

v7.0.0

Added

  • fallback prop.

Changed

  • onInjected is now an error-first callback.

v6.0.0

Changed

  • path prop renamed to src.

v3.0.0

Added

  • All additional non-documented props will now be spread onto the wrapper element.

Changed

  • callback prop renamed to onInjected.
  • className prop renamed to svgClassName.
  • style prop renamed to svgStyle.

Removed

  • wrapperClassName has been removed. Instead, pass className since it will be spread onto the wrapper element.