svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 0.2.2 to 0.7.2
33 releases in betweennotes for 20
Reading releases, release notes and advisories…
- 1+
- change to make
- 0
- advisories fixed
- 16+
- new
- 32+
- fixes
Counted from 20 of 33 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Deprecated0.3.7
Release by release
- Fixed
Fixed removing
<animate>in<stop>. - Fixed
Fixed removing same transform in inner element in
removeUnknownsAndDefaults. - Fixed
Fixed collapsing groups with same non-inheritable attribue.
- Fixed
- New
Added
addAttributesToSVGElementto the default config to allow using it with--enableoption. - New
Added korean translation of “How it works” doc
- New
- New
New plugins:
removeElementsByAttr(by IDs or classes)addAttributesToSVGElementremoveXMLNS(for SVG inlining) - Fixed
Fixed bugs with collapsing groups with masks and transforms in
collapseGroups. - Fixed
Fixed bugs with erroneous removing IDs in
cleanupIDs.
- New
0.6.5 – 0.6.62 releases, nothing new or fixed in the notes
- New
Added
--indentoption to style pretty-printed SVG. (e.g.--indent 2) - New
Added
currentColorparam toconvertColorsplugin for converting values likefillandstroketocurrentColor - Fixed
Fixed bug in “convertStyleToAttrs” plugin with converting styling properties to non-existent attributes (which are normally removed later by
removeUnknownsAndDefaults).
- New
- Fixed
Fixed regression in converting curves to arcs.
- Fixed
Fixed
idremoving with disabledplugins/convertStyleToAttrs.js.
- Fixed
- Fixed
Fixed error on converting curves to arcs.
- Fixed
Fixed matrix decomposition losing sign in case like
[1, 0, 0, -1, 0, 0](scale(1 -1)). - Fixed
Fixed crash on uppercased color name.
- Fixed
- New
Added option
--quiteto suppress output - Fixed
Fixed errors in “minifyStyles” when there are
<style>elements withCDATAcontent or without content at all.
- New
49 other lines we could not sort, mostly version bumps
- 0.7.2
Extended
currentColormatch conditions (string, rx, bool) - 0.7.2
Corrected removing of leading zero in case of exponential notation.
- 0.7.1
Reverted the requirement of Node.js to version 0.10.
- 0.7.0
Required Node.js version has increased to 0.12.
- 0.7.0
Tests now correctly pass in Windows with CRLF line endings. Pretty print now accounts system line endings.
- 0.7.0
Improved attributes sorting in
sortAttrs - 0.7.0
addClassesToSVGElementno more repeats classes - 0.6.6
Corrected CSSO API usage
- 0.6.5
Extra content inserted by editors are now being removed within
<foreignObject>as well thus fixing bug “Namespace prefix … is not defined“ after applying SVGO. - 0.6.5
Doctype with entities declartion is now also being removed since SVGO correctly parses them starting from the version 0.6.2.
1 internal line (docs, tests, tooling) left out.
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.