Packages

svgo

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

Your version

2.1.0

23 Feb 2021Where it was published

2.8.4 is the newest release of 2.x.

In short

3 fixed7 changed

Security

4 advisories affect 2.1.0; 2.8.4 fixes them

Release note

This release introduced two big changes

  • We forked sax parser to fix issues inaccessible from public api (github.com/svg/sax)

  • We added regression tests which already caught 4 bugs (WIP)

See fixed bugs

  • Fixed empty <svg /> with enabled cleanupIDs plugin (9b97e06)

  • Fail when file specified in --config flag does not exist or json string is specified (a855b40)

  • Disabled convertStyleToAttrs by default (#1365)

  • Preserve whitespace in elements containing text (#1220)

  • Fixed removing xml:space="preserve" (776ec1e)

  • Preserve whitespace in nested textual elements (9de471a)

  • Keep empty <g> when filter attribute is specified (c1d5f0f)

  • Fixed parsing xml entities (#1371 #200)

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.