Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
convertColors
, now converts all references to colors excluding references to IDs to lowercase. This can be disabled by settingconvertCase
tofalse
.Bug Fixes
cleanupIds
, treat both URI encoded and non-URI encoded IDs as the same. By @liuweifeng in #1982collapseGroups
, check styles as well as attributes. By @johnkenny54 in #1952collapseGroups
, move attributes atomically. By @johnkenny54 in fix: collapseGroups does not move attributes atomically svg/svgo#1930convertPathData
, fix q control point when item is removed. By @KTibow in fix(convertPathData): fix q control point behavior when item is removed svg/svgo#1927convertPathData
, preserve vertex for markers only paths. By @SethFalco in #1967mergePaths
, don't merge paths if attributes/styles depend depend on the nodes bounding box. By @johnkenny54 in #1964moveElemsAttrsToGroups
, no longer moves the transforms if group has thefilter
attribute. By @johnkenny54 in #1933prefixIds
, fixed issue where some IDs were not prefixed when style tag contained XML comments. By @john-neptune in #1942removeHiddenElems
, don't remove node if child element has a referenced ID. By @johnkenny54 in Fixed bug in removeHiddenElems svg/svgo#1925removeHiddenElems
, treatpath[opacity=0]
as a non-rendering node. By @johnkenny54 in #1948removeUselessDefs
, don't remove node if child element has an ID. By @johnkenny54 in Fixed bug in removeUselessDefs svg/svgo#1923-o
argument) ends with a trailing slash to a location that didn't exist. By @SethFalco in #1954SVG Optimization
convertColors
, introduce parameter to convert colors to common casing (lowercase/uppercase). By @JayLeininger in Add option to convert hex colors to a common case svg/svgo#1692removeDeprecatedAttrs
, new plugin that is disabled by default to remove SVG attributes that are deprecated. By @jdufresne in #1869Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
Before and after of the browser bundle of each respective version: