Packages

svgo

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

Your version

1.0.0

major30 Oct 2017Where it was published

1.3.2 is the newest release of 1.x.

npm marks 1.0.0 as deprecated: This SVGO version is no longer supported. Upgrade to v2.x.x.

In short

1 breaking8 new3 fixed9 changed

  • Breaking

    SVGO now requires Node 4 or higher.

Security

3 advisories affect 1.0.0; 2.8.4 fixes them

Release note

  • 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.

  • Added datauri option to JS API.

  • Added support for SVG 2 href attribute.

  • cleanupIDs now don't removes IDs if an image consists only of defs.

  • New plugin inlineStyles for converting styles from <style> element to attributes if possible

  • cleanupNumericValues now rounds values in viewBox

  • New plugin: removeScriptElement (disabled by default) to align with removeStyleElement

  • minifyStyles now removes styles based on usage with controlling options

  • New option except in cleanupIDs to keep IDs

  • New option force in cleanupIDs to work even if SVG contains style or script elements

  • Fixed arcs transforming with different signed scale parameters

  • Fixed removeUselessStrokeAndFill to check for style or script elements per file

  • New option keepAriaAttrs in removeUnknownsAndDefaults

  • Corrected parsing in cleanupIDs to account animation syntax

  • #ff0000 now converts to red as well as #f00

  • Added “gray” variation to colors list per CSS Color Module Level 4

  • Fixed error on empty files.

  • A separator character in removeAttrs now can be changed per elemSeparator option

  • addAttributesToSVGElement now can add values to attributes.

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.