Update dependency svgo to v3.2.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| svgo (source) | 3.0.4 -> 3.2.0 |
Release Notes
svg/svgo (svgo)
v3.2.0
What's Changed
Bug Fixes
- Convert Path Commands, fix instances were
qwas incorrectly converted tot. By @KTibow in https://github.com/svg/svgo/pull/1889 - Convert Transform, fix for some transforms that weren't being converted correctly. By @SethFalco in https://github.com/svg/svgo/pull/1916
SVG Optimization
- Convert Path Commands, improves closing paths and how we determine if to use absolute or relative commands. By @KTibow in https://github.com/svg/svgo/pull/1867
- Convert Path Commands, round arc or convert to lines based on the sagitta, can be disabled by setting
smartArcRoundingtofalse. By @KTibow in https://github.com/svg/svgo/pull/1873 - Convert Path Commands, convert cubic Bézier curves to quadratic Bézier curves where possible, can be disabled by setting
convertToQtofalse. By @KTibow in https://github.com/svg/svgo/pull/1889
Performance
- Merge Paths, refactor for performance with large files. By @mozzie in https://github.com/svg/svgo/pull/1764 and https://github.com/svg/svgo/pull/1904
- Convert Path Commands, refactor
#stringifyPathDatafor performance. By @SethFalco in https://github.com/svg/svgo/pull/1900 - Use
Setinstead ofArrayfor faster lookups. By @SethFalco in https://github.com/svg/svgo/pull/1899
Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
| SVG | Original | v3.1.0 | v3.2.0 | Delta |
|---|---|---|---|---|
| Arch Linux Logo | 9.529 KiB | 4.162 KiB | 4.115 KiB | ⬇️ 0.047 KiB |
| Blobs | 50.45 KiB | 42.949 KiB | 42.623 KiB | ⬇️ 0.326 KiB |
| Isometric Madness | 869.034 KiB | 550.153 KiB | 540.582 KiB | ⬇️ 9.571 KiB |
| tldr-pages Banner | 2.071 KiB | 1.07 KiB | 1.07 KiB | |
| Wikipedia Logo | 161.551 KiB | 116 KiB | 111.668 KiB | ⬇️ 4.332 KiB |
Before and after of the browser bundle of each respective version:
| v3.1.0 | v3.2.0 | Delta | |
|---|---|---|---|
| svgo.browser.js | 660.9 kB | 910.9 kB | ⬆️ 250 kB |
v3.1.0
What's Changed
Bug Fixes
- Prefix IDs, correctly prefix IDs when
<style>tag contains XML comments. By @john-neptune in https://github.com/svg/svgo/pull/1736 - Remove Hidden Elements, improve handling of definitions (
<defs>), namely when<defs>are defined at the end of the document. By @KTibow in https://github.com/svg/svgo/pull/1879 - Cleanup Enable Background, clean up inline-styles too. By @SethFalco in https://github.com/svg/svgo/pull/1866
- Cleanup IDs, handle URI encoded references properly. By @SethFalco in https://github.com/svg/svgo/pull/1880
- Inline Styles, no longer crashes on non-inlined selectors with a pseudo-class. By @SethFalco in https://github.com/svg/svgo/pull/1865
- Improve handling of URL references in reference attributes (
url('#a')) across various plugins. By @SethFalco in https://github.com/svg/svgo/pull/1881
SVG Optimization
- Remove Unknowns and Defaults, now removes defaults in XML declarations too, enabled by default and can be toggled with
defaultMarkupDeclarations. By @SethFalco in https://github.com/svg/svgo/pull/1872
Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
| SVG | Original | v3.0.5 | v3.1.0 | Delta |
|---|---|---|---|---|
| Arch Linux Logo | 9.529 KiB | 4.608 KiB | 4.162 KiB | ⬇️ 0.446 KiB |
| Blobs | 50.45 KiB | 42.949 KiB | 42.949 KiB | |
| Isometric Madness | 869.034 KiB | 550.153 KiB | 550.153 KiB | |
| tldr-pages Banner | 2.071 KiB | 1.07 KiB | 1.07 KiB | |
| Wikipedia Logo | 161.551 KiB | 117.146 KiB | 116 KiB | ⬇️ 1.146 KiB |
Before and after of the browser bundle of each respective version:
| v3.0.5 | v3.1.0 | Delta | |
|---|---|---|---|
| svgo.browser.js | 657.5 kB | 660.9 kB | ⬆️ 3.4 kB |
v3.0.5
What's Changed
Bug Fixes
- Cleanup IDs, correctly handle references to other nodes in animations. By @KTibow in https://github.com/svg/svgo/pull/1862
- Convert Path Commands, fix issue when removing redundant
Zbetween mergableM/mcommands. By @KTibow in https://github.com/svg/svgo/pull/1856 - Convert Path Commands, adhere to error/precision in
zconversions. By @KTibow in https://github.com/svg/svgo/pull/1842 - Remove Empty Containers, skip if parent node is
<switch>, as empty containers can be used for attributes likerequiredFeatures. By @vincentbernat in https://github.com/svg/svgo/pull/1747 - Remove Hidden Elements, when removing a hidden definition, also remove nodes that reference it. By @SethFalco in https://github.com/svg/svgo/pull/1852
- Output the optimization stats (profit) in red if the file size increased. By @gimler in https://github.com/svg/svgo/pull/1162
- Type definition files now correctly use the
.d.tsfile extension instead of.ts. By @Exotelis in https://github.com/svg/svgo/pull/1780
Chores
- Improved exported types for the
#loadConfigmethod. By @nuintun in https://github.com/svg/svgo/pull/1844
Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
| SVG | Original | v3.0.4 | v3.0.5 | Delta |
|---|---|---|---|---|
| Arch Linux Logo | 9.529 KiB | 4.735 KiB | 4.608 KiB | ⬇️ 0.127 KiB |
| Blobs | 50.45 KiB | 42.949 KiB | 42.949 KiB | |
| Isometric Madness | 869.034 KiB | 550.593 KiB | 550.153 KiB | ⬇️ 0.44 KiB |
| tldr-pages Banner | 2.071 KiB | 1.07 KiB | 1.07 KiB | |
| Wikipedia Logo | 161.551 KiB | 117.152 KiB | 117.146 KiB | ⬇️ 0.006 KiB |
Before and after of the browser bundle of each respective version:
| v3.0.4 | v3.0.5 | Delta | |
|---|---|---|---|
| svgo.browser.js | 656.9 kB | 657.5 kB | ⬆️ 0.6 kB |
Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.36%. Comparing base (
2d19d55) to head (c1fc1b4).
:exclamation: Current head c1fc1b4 differs from pull request most recent head a954e3e. Consider uploading reports for the commit a954e3e to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## master #1284 +/- ##
==========================================
+ Coverage 69.30% 69.36% +0.05%
==========================================
Files 59 59
Lines 5082 5082
Branches 1069 1069
==========================================
+ Hits 3522 3525 +3
+ Misses 1533 1530 -3
Partials 27 27
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.