v2.8.0
If you enjoy SVGO and would like to support our work, consider sponsoring us directly via our OpenCollective.
Join us in our discord
Features and bug fixes
- added --no-color flag for testing purposes but you may find it useful (#1588)
- handle url() in style attributes properly (#1592)
- removeXMLNS plugin now removes
xmlns:xlink
attribute (#1508) - load .cjs configuration only with
require
to fix segfaults in linux (#1605)
Refactorings
- simplified and covered with types svg stringifier (#1593)
- migrated to visitor api and covered with types removeEmptyAttrs plugin (#1594)
- migrated to visitor api and covered with types inlineStyles plugin (#1601)
- migrated to picocolors (#1606)
DX
I found some users are trying to enable plugins which are not part of default preset, for example
{
name: 'preset-default',
params: {
overrides: {
cleanupListOfValues: true
}
}
}
To fix this I made docs more concrete about plugin (5165ccb)
and introduced a warning when true is specified in overrides (cb7e9be).
Please give us feedback if you still have issues.
Thanks to @IlyaSkriblovsky, @devongovett, @matheus1lva, @omgovich, @renatorib and @TrySound