Skip to content

v2.7.0

Compare
Choose a tag to compare
@TrySound TrySound released this 23 Sep 21:20

If you enjoy SVGO and would like to support our work, consider sponsoring us directly via our OpenCollective.

Join us in our discord

ES Modules support

This release adds support for es modules in svgo.config.js when package.json type field is "module".
For projects with mixed cjs and esm svgo.config.mjs and svgo.config.cjs are also supported as fallback.

See #1583

export default {
  plugins: [
    'preset-default'
  ]
}

Fixes

  • added validation to removeAttrs plugin (#1582)

Refactorings

Follwing plugins are migrated to the new visitor plugin api and covered with tsdoc

Other internal changes

  • covered svg parser with tsdoc (#1584)
  • avoided parentNode in style manager which makes us one step closer to releasing new plugin api publicly (#1576)
  • replaced colorette with nanocolors (#1586)

Thanks to @renatorib, @matheus1lva, @omgovich, @deepsweet, @ai, @samouss and @TrySound