Packages

svgo

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

Your version

2.2.0

1 Mar 2021Where it was published

2.8.4 is the newest release of 2.x.

In short

6 fixed2 changed

Security

4 advisories affect 2.2.0; 2.8.4 fixes them

Release note

Wow, two minor releases in a row. There is a big reason for that. We got a new logo! See it in readme. Big thanks to @DerianAndre.

There were also implemented brand new path data parser and stringifier (#1378 and #1387) to do more reliable transformations and produce smaller svg.

A cup of small fixes

  • Fixed optimisation when stroke-linecap=round is specified (7901588)

  • Prevented transform applying when inline style is present (79dbb4b)

  • Apply transform to stroke-dasharray and stroke-dashoffset (dd37fcf)

  • Fixed removing hidden elements when descendant enables visibility (d06747a)

  • Fixed removing elements with zero opacity inside clipPath (9d67586)

  • Fixed removing empty mask which can hide elements by id (d14315b)

  • Fixed removing stroke-width when marker-end is specified (3639156)

  • Fixed <tspan> inside <a> (091172a)

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.