Packages

svgo

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

Upgrading svgo From 0.7.2 to 1.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.7.2Latest4.1.0
  1. 0.7.2yours
  2. 1.0.0target
1
change to make
0
advisories fixed
8
new
3
fixes

Before you upgrade

Tick each one off as you go
  • Breaking1.0.0

Security

Release by release

  1. 1.0.0

    Migration needed30 Oct 20178 new · 3 fixes
    • Breaking

      SVGO now requires Node 4 or higher.

    • New

      Added datauri option to JS API.

    • New

      Added support for SVG 2 href attribute.

    • New

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

9 other lines we could not sort, mostly version bumps
  • Changed CLI syntax to treat filenames as input, thus allowing svgo *.svg syntax.

    1.0.0
  • SVGO.optimize() now returns Promise.

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

    1.0.0
  • cleanupNumericValues now rounds values in viewBox

    1.0.0
  • minifyStyles now removes styles based on usage with controlling options

    1.0.0
  • Corrected parsing in cleanupIDs to account animation syntax

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

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

    1.0.0
  • addAttributesToSVGElement now can add values to attributes.

    1.0.0

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.