Packages

svgo

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

Upgrading svgo From 3.0.5 to 3.1.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.0.5Newest 3.x, Clears its 4 advisories3.3.5Latest4.1.0
  1. 3.0.5yours
  2. 3.1.0target
0
changes to make
0
advisories fixed
0
new
6
fixes

Security

Release by release

  1. 3.1.0

    11 Dec 20236 fixes
    • Fixed

      prefixIds, correctly prefix IDs when <style> tag contains XML comments.

    • Fixed

      removeHiddenElems, improve handling of definitions (<defs>), namely when <defs> are defined at the end of the document.

    • Fixed

      cleanupEnableBackground, clean up inline-styles too.

    • Fixed

      cleanupIds, handle URI encoded references properly.

    • Fixed

      inlineStyles, no longer crashes on non-inlined selectors with a pseudo-class.

    • Fixed

      Improve handling of URL references in reference attributes (url('#a')) across various plugins.

1 other line we could not sort, mostly version bumps
  • removeUnknownsAndDefaults, now removes defaults in XML declarations too, enabled by default and can be toggled with defaultMarkupDeclarations.

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