felixfbecker / svg-screenshots

πŸ“ΈπŸ§© Browser extension to take scalable, semantic, accessible screenshots of websites in SVG format.
809 stars 29 forks source link

fix(deps): update dependency svgo to ^2.8.0 #90

Open renovate[bot] opened 3 years ago

renovate[bot] commented 3 years ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
svgo ^2.3.0 -> ^2.8.0 age adoption passing confidence

Release Notes

svg/svgo ### [`v2.8.0`](https://togithub.com/svg/svgo/releases/tag/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) ### [`v2.7.0`](https://togithub.com/svg/svgo/releases/tag/v2.7.0) [Compare Source](https://togithub.com/svg/svgo/compare/v2.6.1...v2.7.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) #### 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 [https://github.com/svg/svgo/pull/1583](https://togithub.com/svg/svgo/pull/1583) ```js export default { plugins: [ 'preset-default' ] } ``` #### Fixes - added validation to removeAttrs plugin ([https://github.com/svg/svgo/pull/1582](https://togithub.com/svg/svgo/pull/1582)) #### Refactorings Follwing plugins are migrated to the new visitor plugin api and covered with tsdoc - collapseGroups ([https://github.com/svg/svgo/pull/1572](https://togithub.com/svg/svgo/pull/1572)) - mergeStyles ([https://github.com/svg/svgo/pull/1575](https://togithub.com/svg/svgo/pull/1575)) - moveElemsAttrsToGroup ([https://github.com/svg/svgo/pull/1574](https://togithub.com/svg/svgo/pull/1574)) Other internal changes - covered svg parser with tsdoc ([https://github.com/svg/svgo/pull/1584](https://togithub.com/svg/svgo/pull/1584)) - avoided parentNode in style manager which makes us one step closer to releasing new plugin api publicly ([https://github.com/svg/svgo/pull/1576](https://togithub.com/svg/svgo/pull/1576)) - replaced colorette with nanocolors ([https://github.com/svg/svgo/pull/1586](https://togithub.com/svg/svgo/pull/1586)) Thanks to [@​renatorib](https://togithub.com/renatorib), [@​matheus1lva](https://togithub.com/matheus1lva), [@​omgovich](https://togithub.com/omgovich), [@​deepsweet](https://togithub.com/deepsweet), [@​ai](https://togithub.com/ai), [@​samouss](https://togithub.com/samouss) and [@​TrySound](https://togithub.com/TrySound) ### [`v2.6.1`](https://togithub.com/svg/svgo/releases/tag/v2.6.1) [Compare Source](https://togithub.com/svg/svgo/compare/v2.6.0...v2.6.1) - fixed `optimize(svg)` usage without config ([https://github.com/svg/svgo/pull/1573](https://togithub.com/svg/svgo/pull/1573)) - added missing filter primitives to collections ([https://github.com/svg/svgo/pull/1571](https://togithub.com/svg/svgo/pull/1571)) - migrated to visitor plugin api and covered with tsdoc removeEmptyContainers plugin ([https://github.com/svg/svgo/pull/1570](https://togithub.com/svg/svgo/pull/1570)) Thanks to [@​XhmikosR](https://togithub.com/XhmikosR), [@​thewilkybarkid](https://togithub.com/thewilkybarkid), [@​renatorib](https://togithub.com/renatorib), [@​matheus1lva](https://togithub.com/matheus1lva), [@​omgovich](https://togithub.com/omgovich) and [@​TrySound](https://togithub.com/TrySound) ### [`v2.6.0`](https://togithub.com/svg/svgo/releases/tag/v2.6.0) [Compare Source](https://togithub.com/svg/svgo/compare/v2.5.0...v2.6.0) If you enjoy SVGO and would like to support our work, consider sponsoring us directly via our [OpenCollective](https://opencollective.com/svgo). We have some good stuff in this release #### Better syntax errors ([https://github.com/svg/svgo/pull/1553](https://togithub.com/svg/svgo/pull/1553)) Before people struggled to figure out what and why happens with such cryptic error Error: Error in parsing SVG: Unquoted attribute value Line: 1 Column: 29 Char: 6 File: input.svg This gives too little information when a lot of svgs are transformed. New errors look like this, include context and point to exact location with the issue. We hope this will solve many issues when dealing with bundlers and other tools integrations. Error: SvgoParserError: input.svg:2:29: Unquoted attribute value 1 | > 2 | | ^ 3 | 4 | #### pefixIds plugin is now idempotent ([https://github.com/svg/svgo/pull/1561](https://togithub.com/svg/svgo/pull/1561)) To get better compression results SVGO uses multipass option. This option is used to run prefixIds plugin only once to prefix ids and classes properly. Though sometimes users run svgo manually a few times which leads to duplicated prefixes and make code much bigger. To solves this prefixIds was redesigned to add prefix only when it does not exit in ids and classes. Eventually all plugins are planned to be determenistic and idempotent so multipass option would not be necessary and single pass compression could be as effective as possible. #### New js2svg options ([https://github.com/svg/svgo/pull/1546](https://togithub.com/svg/svgo/pull/1546)) js2svg.eol: 'lf' | 'crlf' Allows to customize end of line characters which is usually resolved by os.EOL in node. finalNewline: boolean Ensures SVG output has a final newline which is required for some tools like git. #### Fixes and refactorings Follwing plugins are migrated to the new visitor plugin api and covered with tsdoc - reusePaths ([https://github.com/svg/svgo/pull/1551](https://togithub.com/svg/svgo/pull/1551)) - removeUselessStrokeAndFill ([https://github.com/svg/svgo/pull/1549](https://togithub.com/svg/svgo/pull/1549)) - minifyStyles ([https://github.com/svg/svgo/pull/1552](https://togithub.com/svg/svgo/pull/1552)) - cleanupIDs ([https://github.com/svg/svgo/pull/1556](https://togithub.com/svg/svgo/pull/1556)) - removeEditorsNSData ([https://github.com/svg/svgo/pull/1557](https://togithub.com/svg/svgo/pull/1557)) - removeUnusedNS ([https://github.com/svg/svgo/pull/1559](https://togithub.com/svg/svgo/pull/1559)) - prefixIds ([https://github.com/svg/svgo/pull/1561](https://togithub.com/svg/svgo/pull/1561)) - sortAttrs ([https://github.com/svg/svgo/pull/1564](https://togithub.com/svg/svgo/pull/1564)) Also fixed a few bugs - add xmlns:xlink in reusePaths plugin when missing ([https://github.com/svg/svgo/pull/1555](https://togithub.com/svg/svgo/pull/1555)) - fixed removeNone param in removeUselessStrokeAndFill plugin ([https://github.com/svg/svgo/pull/1549](https://togithub.com/svg/svgo/pull/1549)) Thanks to [@​XhmikosR](https://togithub.com/XhmikosR), [@​matheus1lva](https://togithub.com/matheus1lva), [@​deepsweet](https://togithub.com/deepsweet), [@​omgovich](https://togithub.com/omgovich), [@​adalinesimonian](https://togithub.com/adalinesimonian) and [@​TrySound](https://togithub.com/TrySound) ### [`v2.5.0`](https://togithub.com/svg/svgo/releases/tag/v2.5.0) [Compare Source](https://togithub.com/svg/svgo/compare/v2.4.0...v2.5.0) In this release we have a couple of fixes - fixed removing transform-origin attribute (https://github.com/svg/svgo/commit/680e143daf622bc3ace9e0b82f626507caad0530) - fixed applying transform to path arc with zero radius (https://github.com/svg/svgo/commit/ac8edbaf4163fd7e0934b72175d60e71844d8cf9) Visitor api now get parentNode in enter and exit callback ```js return { element: { enter: (node, parentNode) => { }, exit: (node, parentNode) => { } } } ``` And a lot of plugins are migrated to visitor api and covered them with tsdoc - addAttributesToSVGElement - addClassesToSVGElement - cleanupAttrs - cleanupEnableBackground - cleanupListOfValues - cleanupNumericValues - convertColors - convertEllipseToCircle - convertShapeToPath - convertTransform - mergePaths - removeAttributesBySelector - removeAttrs - removeComments - removeDesc - removeDoctype - removeElementsByAttr - removeEmptyText - removeMetadata - removeRasterImages - removeScriptElement - removeStyleElement - removeTitle - removeXMLProcInst - removeHiddenElems - removeViewBox - removeUselessDefs - removeOffCanvasPaths - removeUnknownsAndDefaults - sortDefsChildren Thanks to [@​XhmikosR](https://togithub.com/XhmikosR), [@​morganney](https://togithub.com/morganney), [@​oBusk](https://togithub.com/oBusk), [@​matheus1lva](https://togithub.com/matheus1lva) and [@​TrySound](https://togithub.com/TrySound) ### [`v2.4.0`](https://togithub.com/svg/svgo/releases/tag/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) ### [`v2.3.1`](https://togithub.com/svg/svgo/releases/tag/v2.3.1) [Compare Source](https://togithub.com/svg/svgo/compare/v2.3.0...v2.3.1) Fixed vulnerability in css-select dependency ([https://github.com/svg/svgo/pull/1485](https://togithub.com/svg/svgo/pull/1485)) Thanks to [@​ericcornelissen](https://togithub.com/ericcornelissen)

Configuration

πŸ“… Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone Europe/Berlin, Automerge - 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 Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.