svg/svgo
### [`v2.4.0`](https://togithub.com/svg/svgo/releases/v2.4.0)
[Compare Source](https://togithub.com/svg/svgo/compare/v2.3.1...v2.4.0)
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.
```js
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 ([https://github.com/svg/svgo/pull/1456](https://togithub.com/svg/svgo/pull/1456))
- reset cursor after "closeto" command when applying transformation (https://github.com/svg/svgo/commit/9e578b515a6b23e6ab4bd41f7b28e2655d3bd110)
- fixed usage of removed internal methods ([https://github.com/svg/svgo/pull/1479](https://togithub.com/svg/svgo/pull/1479))
- chalk is replaced with smaller colorette ([https://github.com/svg/svgo/pull/1511](https://togithub.com/svg/svgo/pull/1511))
- test files are excluded from published package ([https://github.com/svg/svgo/pull/1458](https://togithub.com/svg/svgo/pull/1458))
- remove more spaces around flag in arc command [https://github.com/svg/svgo/pull/1484](https://togithub.com/svg/svgo/pull/1484)
Thanks to [@TrySound](https://togithub.com/TrySound), [@ydaniv](https://togithub.com/ydaniv), [@ludofischer](https://togithub.com/ludofischer), [@XhmikosR](https://togithub.com/XhmikosR) and [@joseprio](https://togithub.com/joseprio)
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, check this box.
This PR contains the following updates:
2.3.1
->2.4.0
Release Notes
svg/svgo
### [`v2.4.0`](https://togithub.com/svg/svgo/releases/v2.4.0) [Compare Source](https://togithub.com/svg/svgo/compare/v2.3.1...v2.4.0) 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. ```js 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 ([https://github.com/svg/svgo/pull/1456](https://togithub.com/svg/svgo/pull/1456)) - reset cursor after "closeto" command when applying transformation (https://github.com/svg/svgo/commit/9e578b515a6b23e6ab4bd41f7b28e2655d3bd110) - fixed usage of removed internal methods ([https://github.com/svg/svgo/pull/1479](https://togithub.com/svg/svgo/pull/1479)) - chalk is replaced with smaller colorette ([https://github.com/svg/svgo/pull/1511](https://togithub.com/svg/svgo/pull/1511)) - test files are excluded from published package ([https://github.com/svg/svgo/pull/1458](https://togithub.com/svg/svgo/pull/1458)) - remove more spaces around flag in arc command [https://github.com/svg/svgo/pull/1484](https://togithub.com/svg/svgo/pull/1484) Thanks to [@TrySound](https://togithub.com/TrySound), [@ydaniv](https://togithub.com/ydaniv), [@ludofischer](https://togithub.com/ludofischer), [@XhmikosR](https://togithub.com/XhmikosR) and [@joseprio](https://togithub.com/joseprio)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.