v3.0.5
What's Changed
Bug Fixes
- cleanupIds, correctly handle references to other nodes in animations. By @KTibow in #1862
- convertPathData, fix issue when removing redundant
Z
between mergableM
/m
commands. By @KTibow in #1856 - convertPathData, adhere to error/precision in
z
conversions. By @KTibow in #1842 - removeEmptyContainers, skip if parent node is
<switch>
, as empty containers can be used for attributes likerequiredFeatures
. By @vincentbernat in #1747 - removeHiddenElems, when removing a hidden definition, also remove nodes that reference it. By @SethFalco in #1852
- Output the optimization stats (profit) in red if the file size increased. By @gimler in #1162
- Type definition files now correctly use the
.d.ts
file extension instead of.ts
. By @Exotelis in #1780
Chores
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 |