Packages

svgo

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

Your version

2.2.1

6 Mar 2021Where it was published

2.8.4 is the newest release of 2.x.

In short

9 fixed5 changed

Security

4 advisories affect 2.2.1; 2.8.4 fixes them

Release note

This is a big patch with new style computing (#1399) and landed to master regression tests

A lot of bugs are fixed

  • Fixed scientific notation parsing in paths (d6f972c)

  • Forbade invalid <style> type attribute in inlineStyles plugin (#1400)

  • Fixed <style> support in removeHiddenElems plugin (#1399)

  • Fixed noSpaceAfterFlags option support (0e02fd9)

  • Fixed floatPrecision when extending default plugins (d58a7e6)

  • Fixed <style> support when removing useless path commands (c21fef5)

  • Fixed <style> support when combining path commands (ba7e9bd)

  • Prevent removing filter primitive defaults (555a961)

  • Prevent merging paths with markers (de4fd79)

  • Prevent removing single point paths with markers (21c04e4)

  • Keep empty <pattern> when at least one argument is present (0e6b0c4)

  • Keep <marker> with display none (d3e3726)

  • Preserve empty conditional processing attributes (a2b0e73)

  • Preserve viewBox in nested <svg> (28c01cf)

435 of 526 regression tests are passing

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.