Packages

svgo

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

Your version

107 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x
  2. 1.0.1

    31 Oct 2017
    • Fixed error “Object.defineProperty called on non-object” in images with <foreignObject/>.

  3. 1.0.0

    30 Oct 2017
    • Breaking

      SVGO now requires Node 4 or higher.

    • Changed CLI syntax to treat filenames as input, thus allowing svgo *.svg syntax.

    • SVGO.optimize() now returns Promise.

  4. 0.7.x
  5. 0.7.2

    29 Jan 2017
    • Extended currentColor match conditions (string, rx, bool)

    • Fixed removing <animate> in <stop>.

    • Fixed removing same transform in inner element in removeUnknownsAndDefaults.

  6. 0.7.1

    27 Sep 2016
    • Reverted the requirement of Node.js to version 0.10.

    • Added addAttributesToSVGElement to the default config to allow using it with --enable option.

    • Added korean translation of “How it works” doc

  7. 0.7.0

    25 Aug 2016
    • Required Node.js version has increased to 0.12.

    • New plugins: removeElementsByAttr (by IDs or classes)
      addAttributesToSVGElement
      removeXMLNS (for SVG inlining)

    • Tests now correctly pass in Windows with CRLF line endings. Pretty print now accounts system line endings.

  8. 0.6.x
  9. 0.6.6

    25 Apr 2016
    • Corrected CSSO API usage

  10. 0.6.5

    25 Apr 2016
    • Extra content inserted by editors are now being removed within <foreignObject> as well thus fixing bug “Namespace prefix … is not defined“ after applying SVGO.

    • Doctype with entities declartion is now also being removed since SVGO correctly parses them starting from the version 0.6.2.

    • Corrected moveGroupAttrsToElems not to move attributes to g content if it's referenced (has an id).

  11. 0.6.4

    5 Apr 2016
    • Fixed bug in “convertStyleToAttrs” plugin with converting styling properties to non-existent attributes (which are normally removed later by removeUnknownsAndDefaults).

    • Added --indent option to style pretty-printed SVG. (e.g. --indent 2)

    • Added currentColor param to convertColors plugin for converting values like fill and stroke to currentColor

  12. 0.6.3

    20 Mar 2016
    • Smart rounding (introduced in 0.4.5) now applies only when rounding is needed, thus making subsequent passes more stable.

    • Fixed regression in converting curves to arcs.

    • xlink:href references are now being checked by local name href, thus correctly working with another namespace prefix.

  13. 0.6.2

    8 Mar 2016
    • Better error handling and messaging improvements.

    • SVG files with XML entities (e.g. from Adobe Illustrator) are now correctly being parsed.

    • Fixed error on converting curves to arcs.

  14. 0.6.1

    21 Nov 2015
    • Added option --quite to suppress output

    • Removed lib-cov folder from the package, which was erroneously included before.

    • Fixed errors in “minifyStyles” when there are <style> elements with CDATA content or without content at all.

  15. 0.6.0

    8 Nov 2015
    • New optimization: circular curves are now being converted to arcs. A notable improvement for circles within paths.

    • New plugin “minifyStyles” which minifies <style> elments content with CSSO

    • New plugin “removeStyleElement” (disabled by default)

  16. 0.5.x
  17. 0.5.6

    13 Aug 2015
    • Fixed paths removing.

  18. 0.5.5

    5 Aug 2015
    • Reverted debugging changes.

  19. 0.5.4

    5 Aug 2015

    Reading the note…

  20. 0.5.3

    21 Jun 2015

    Reading the note…

  21. 0.5.2

    24 May 2015

    Reading the note…

  22. 0.5.1

    30 Mar 2015

    Reading the note…

  23. 0.5.0

    4 Nov 2014

    Reading the note…

  24. 0.4.x
  25. 0.4.5

    2 Aug 2014

    Reading the note…

  26. 0.4.4

    14 Jan 2014

    Reading the note…

  27. 0.4.3

    2 Jan 2014

    Reading the note…

  28. 0.4.2

    19 Dec 2013

    Reading the note…

  29. 0.4.1

    18 Nov 2013

    Reading the note…

  30. 0.4.0

    18 Nov 2013

    Reading the note…

  31. 0.3.x
  32. 0.3.7

    24 Jun 2013

    Reading the note…

  33. 0.3.6

    6 Jun 2013

    Reading the note…

  34. 0.3.5

    7 May 2013

    Reading the note…

  35. 0.3.4

    6 May 2013

    Reading the note…

  36. 0.3.3

    5 May 2013

    Reading the note…

  37. 0.3.2

    3 May 2013

    Reading the note…

  38. 0.3.1

    15 Apr 2013

    Reading the note…

  39. 0.3.0

    12 Apr 2013

    Reading the note…

  40. 0.2.x
  41. 0.2.4

    5 Apr 2013

    Reading the note…

  42. 0.2.3

    22 Feb 2013

    Reading the note…

  43. 0.2.2

    9 Feb 2013

    Reading the note…

  44. 0.2.1

    18 Jan 2013

    Reading the note…

  45. 0.2.0

    23 Dec 2012

    Reading the note…

  46. 0.1.x
  47. 0.1.9

    17 Dec 2012

    Reading the note…

  48. 0.1.8

    11 Dec 2012

    Reading the note…

  49. 0.1.7

    8 Dec 2012

    Reading the note…

  50. 0.1.6

    7 Dec 2012

    Reading the note…

  51. 0.1.5

    6 Dec 2012

    Reading the note…

  52. 0.1.4

    6 Dec 2012

    Reading the note…

  53. 0.1.3

    30 Nov 2012

    Reading the note…

  54. 0.1.2

    23 Nov 2012

    Reading the note…

  55. 0.1.1

    23 Nov 2012

    Reading the note…

  56. 0.1.0

    22 Nov 2012

    Reading the note…

  57. 0.0.x
  58. 0.0.9

    28 Oct 2012

    Reading the note…

  59. 0.0.8

    20 Oct 2012

    Reading the note…

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.