svg/svgo
### [`v2.8.0`](https://togithub.com/svg/svgo/releases/v2.8.0)
[Compare Source](https://togithub.com/svg/svgo/compare/v2.7.0...v2.8.0)
If you enjoy SVGO and would like to support our work, consider sponsoring us directly via our [OpenCollective](https://opencollective.com/svgo).
Join us in our [discord](https://discord.gg/z8jX8NYxrE)
#### Features and bug fixes
- added --no-color flag for testing purposes but you may find it useful ([https://github.com/svg/svgo/pull/1588](https://togithub.com/svg/svgo/pull/1588))
- handle url() in style attributes properly ([https://github.com/svg/svgo/pull/1592](https://togithub.com/svg/svgo/pull/1592))
- removeXMLNS plugin now removes `xmlns:xlink` attribute ([https://github.com/svg/svgo/pull/1508](https://togithub.com/svg/svgo/pull/1508))
- load .cjs configuration only with `require` to fix segfaults in linux ([https://github.com/svg/svgo/pull/1605](https://togithub.com/svg/svgo/pull/1605))
#### Refactorings
- simplified and covered with types svg stringifier ([https://github.com/svg/svgo/pull/1593](https://togithub.com/svg/svgo/pull/1593))
- migrated to visitor api and covered with types removeEmptyAttrs plugin ([https://github.com/svg/svgo/pull/1594](https://togithub.com/svg/svgo/pull/1594))
- migrated to visitor api and covered with types inlineStyles plugin ([https://github.com/svg/svgo/pull/1601](https://togithub.com/svg/svgo/pull/1601))
- migrated to picocolors ([https://github.com/svg/svgo/pull/1606](https://togithub.com/svg/svgo/pull/1606))
#### DX
I found some users are trying to enable plugins which are not part of default preset, for example
```js
{
name: 'preset-default',
params: {
overrides: {
cleanupListOfValues: true
}
}
}
```
To fix this I made docs more concrete about plugin (https://github.com/svg/svgo/commit/5165ccb9d1f116b26a30a020e65aadd666012cb1)
and introduced a warning when true is specified in overrides (https://github.com/svg/svgo/commit/cb7e9be623b6e2fbbfcb9b67c4c85131e1477925).
Please give us feedback if you still have issues.
Thanks to [@IlyaSkriblovsky](https://togithub.com/IlyaSkriblovsky), [@devongovett](https://togithub.com/devongovett), [@matheus1lva](https://togithub.com/matheus1lva), [@omgovich](https://togithub.com/omgovich), [@renatorib](https://togithub.com/renatorib) and [@TrySound](https://togithub.com/TrySound)
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
2.7.0
->2.8.0
Release Notes
svg/svgo
### [`v2.8.0`](https://togithub.com/svg/svgo/releases/v2.8.0) [Compare Source](https://togithub.com/svg/svgo/compare/v2.7.0...v2.8.0) If you enjoy SVGO and would like to support our work, consider sponsoring us directly via our [OpenCollective](https://opencollective.com/svgo). Join us in our [discord](https://discord.gg/z8jX8NYxrE) #### Features and bug fixes - added --no-color flag for testing purposes but you may find it useful ([https://github.com/svg/svgo/pull/1588](https://togithub.com/svg/svgo/pull/1588)) - handle url() in style attributes properly ([https://github.com/svg/svgo/pull/1592](https://togithub.com/svg/svgo/pull/1592)) - removeXMLNS plugin now removes `xmlns:xlink` attribute ([https://github.com/svg/svgo/pull/1508](https://togithub.com/svg/svgo/pull/1508)) - load .cjs configuration only with `require` to fix segfaults in linux ([https://github.com/svg/svgo/pull/1605](https://togithub.com/svg/svgo/pull/1605)) #### Refactorings - simplified and covered with types svg stringifier ([https://github.com/svg/svgo/pull/1593](https://togithub.com/svg/svgo/pull/1593)) - migrated to visitor api and covered with types removeEmptyAttrs plugin ([https://github.com/svg/svgo/pull/1594](https://togithub.com/svg/svgo/pull/1594)) - migrated to visitor api and covered with types inlineStyles plugin ([https://github.com/svg/svgo/pull/1601](https://togithub.com/svg/svgo/pull/1601)) - migrated to picocolors ([https://github.com/svg/svgo/pull/1606](https://togithub.com/svg/svgo/pull/1606)) #### DX I found some users are trying to enable plugins which are not part of default preset, for example ```js { name: 'preset-default', params: { overrides: { cleanupListOfValues: true } } } ``` To fix this I made docs more concrete about plugin (https://github.com/svg/svgo/commit/5165ccb9d1f116b26a30a020e65aadd666012cb1) and introduced a warning when true is specified in overrides (https://github.com/svg/svgo/commit/cb7e9be623b6e2fbbfcb9b67c4c85131e1477925). Please give us feedback if you still have issues. Thanks to [@IlyaSkriblovsky](https://togithub.com/IlyaSkriblovsky), [@devongovett](https://togithub.com/devongovett), [@matheus1lva](https://togithub.com/matheus1lva), [@omgovich](https://togithub.com/omgovich), [@renatorib](https://togithub.com/renatorib) and [@TrySound](https://togithub.com/TrySound)Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.