Packages

svgo

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

Your version

2.4.0

13 Aug 2021Where it was published

2.8.4 is the newest release of 2.x.

In short

1 removed1 fixed4 changed

  • Removed

    Remove more spaces around flag in arc command #1484

Security

4 advisories affect 2.4.0; 2.8.4 fixes them

Release note

Hey everybody!

In this release I happy to introduce the new plugin "preset-default" which allows to declaratively setup and customize default set of plugins. Previous solution extendDefaultPlugins utility prevented parcel users from using cachable json config, svgo-loader and svgo-jsx required svgo to be installed locally. "preset-default" plugin is just another builtin plugi.

module.exports = {
  plugins: [
    {
      name: 'preset-default',
      params: {
        overrides: {
          // customize options
          builtinPluginName: {
            optionName: 'optionValue',
          },
          // or disable plugins
          anotherBuiltinPlugin: false,
        },
      },
    },
  ],
};

We also fixed a few bugs

  • Performance is improved by ~37% for svg with styles (#1456)

  • Reset cursor after "closeto" command when applying transformation (9e578b5)

  • Fixed usage of removed internal methods (#1479)

  • Chalk is replaced with smaller colorette (#1511)

  • Test files are excluded from published package (#1458)

  • Removed

    Remove more spaces around flag in arc command #1484

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.