Packages

svgo

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

Upgrading svgo From 3.3.5 to 4.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.3.5Latest4.1.0
  1. 3.3.5yours
  2. 4.0.0target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Deprecated4.0.0

Security

Release by release

  1. 4.0.0

    Migration needed21 Jun 20253 new · 14 fixes
    • Breaking

      Node.js v14 is no longer supported by the Node.js team, including security support, since 30 April 2023.

    • Breaking

      removeViewBox removes the scalability of SVGs.

    • Breaking

      removeTitle reduces accessibility, which preserving accessibility is more important than optimization.

    • Breaking

      svgo — for normal usage, such as scripts or server-side applications.

5 other lines we could not sort, mostly version bumps
  • convertColors, now converts all references to colors excluding references to IDs to lowercase. This can be disabled by setting convertCase to false.

    4.0.0
  • convertColors, introduce parameter to convert colors to common casing (lowercase/uppercase).

    4.0.0
  • removeEditorsNSData, include Boxy SVG namespace in the list of editor namespaces to remove.

    4.0.0
  • removeEditorsNSData, include Krita namespace in the list of editor namespaces to remove.

    4.0.0
  • We now generate our type declarations from JSDoc comments instead of maintaining them manually. Types will be much more accurate, include more documentation, and are guaranteed to be in sync with the implementation.

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