svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
0.7.2 is the newest release of 0.7.x.
In short
1 new2 fixed4 changed
Release note
Required Node.js version has increased to 0.12.
New plugins:
removeElementsByAttr(by IDs or classes)addAttributesToSVGElementremoveXMLNS(for SVG inlining)Tests now correctly pass in Windows with CRLF line endings. Pretty print now accounts system line endings.
Fixed bugs with collapsing groups with masks and transforms in
collapseGroups.Fixed bugs with erroneous removing IDs in
cleanupIDs.Improved attributes sorting in
sortAttrsaddClassesToSVGElementno more repeats classes
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.