Packages

svgo

4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.5

30 Nov 2023Where it was published

3.3.5 is the newest release of 3.x.

In short

7 fixed1 internal

Security

4 advisories affect 3.0.5; 3.3.5 fixes them

Release note

What's Changed

Bug Fixes

  • cleanupIds, correctly handle references to other nodes in animations.

  • convertPathData, fix issue when removing redundant Z between mergable M/m commands.

  • convertPathData, adhere to error/precision in z conversions.

  • removeEmptyContainers, skip if parent node is <switch>, as empty containers can be used for attributes like requiredFeatures.

  • removeHiddenElems, when removing a hidden definition, also remove nodes that reference it.

  • Output the optimization stats (profit) in red if the file size increased.

  • Type definition files now correctly use the .d.ts file extension instead of .ts.

Metrics

Before and after using vectors from various sources, with the default preset of each respective version:

SVGOriginalv3.0.4v3.0.5Delta
Arch Linux Logo9.529 KiB4.735 KiB4.608 KiB⬇️ 0.127 KiB
Blobs50.45 KiB42.949 KiB42.949 KiB
Isometric Madness869.034 KiB550.593 KiB550.153 KiB⬇️ 0.44 KiB
tldr-pages Banner2.071 KiB1.07 KiB1.07 KiB
Wikipedia Logo161.551 KiB117.152 KiB117.146 KiB⬇️ 0.006 KiB

Before and after of the browser bundle of each respective version:

v3.0.4v3.0.5Delta
svgo.browser.js656.9 kB657.5 kB⬆️ 0.6 kB

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.