npm / react-inlinesvg
react-inlinesvg
What changed in react-inlinesvg 1 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking6 new APIs and options1 performance2 behavior and defaults1 tooling5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-inlinesvg 49 changes
New APIs and options 4
An opt-in cache is available for converted elements.
Adds a function to modify IDs in SVG styles.
Adds a hook to handle the inline SVG lifecycle.
A cache module and provider were added.
Tooling 1
An explicit return type was added to InlineSVG, clarifying its TypeScript type.
Fixes and other changes 4
Edge cases in the element cache are fixed.
The unique hash is generated lazily so renders stay deterministic.
Concurrent cache waiters no longer silently fail when an in-flight operation errors.
Fixes an infinite re-render loop when many SVGs load with the loader prop.
react-inlinesvg 24 changes
Breaking changes 2
InlineSVGError is removed, so developers can no longer use this API.
The React peer dependency requirement is updated to ^16.8.0.
New APIs and options 1
An ES module is added to the package.
Fixes and other changes 1
A provided loader is rendered during SSR instead of rendering null.
react-inlinesvg 15 changes
Breaking changes 1
Replaces httpplease with fetch; legacy browsers need a polyfill.
New APIs and options 1
Custom props are spread onto the SVG element, giving developers greater control.
Performance 1
Caching is improved.
Behavior and default changes 2
Adds initial support for SSR.
SVG rendering no longer needs a wrapper using dangerouslySetInnerHTML.