fix(deps): update dependency svgo to v3 #39
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.
This PR contains the following updates:
^2.8.0
->^3.0.0
^2.6.3
->^3.0.0
Release Notes
svg/svgo (svgo)
v3.2.0
Compare Source
What's Changed
Bug Fixes
q
was incorrectly converted tot
. By @KTibow in https://github.com/svg/svgo/pull/1889SVG Optimization
smartArcRounding
tofalse
. By @KTibow in https://github.com/svg/svgo/pull/1873convertToQ
tofalse
. By @KTibow in https://github.com/svg/svgo/pull/1889Performance
#stringifyPathData
for performance. By @SethFalco in https://github.com/svg/svgo/pull/1900Set
instead ofArray
for faster lookups. By @SethFalco in https://github.com/svg/svgo/pull/1899Metrics
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:
v3.1.0
Compare Source
What's Changed
Bug Fixes
<style>
tag contains XML comments. By @john-neptune in https://github.com/svg/svgo/pull/1736<defs>
), namely when<defs>
are defined at the end of the document. By @KTibow in https://github.com/svg/svgo/pull/1879url('#a')
) across various plugins. By @SethFalco in https://github.com/svg/svgo/pull/1881SVG Optimization
defaultMarkupDeclarations
. By @SethFalco in https://github.com/svg/svgo/pull/1872Metrics
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:
v3.0.5
Compare Source
What's Changed
Bug Fixes
Z
between mergableM
/m
commands. By @KTibow in https://github.com/svg/svgo/pull/1856z
conversions. By @KTibow in https://github.com/svg/svgo/pull/1842<switch>
, as empty containers can be used for attributes likerequiredFeatures
. By @vincentbernat in https://github.com/svg/svgo/pull/1747.d.ts
file extension instead of.ts
. By @Exotelis in https://github.com/svg/svgo/pull/1780Chores
#loadConfig
method. By @nuintun in https://github.com/svg/svgo/pull/1844Metrics
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:
v3.0.4
Compare Source
Includes various bug fixes for existing plugins and a new optimization. Also splits
removeXMLNS
, which removed XLink, into two separate plugins,removeXMLNS
andremoveXlink
.What's Changed
Default Behavior
xmlns:xlink
) namespace. If that is desirable, you should enable the new Remove XLink (removeXlink
) plugin, which does more while being safer. By @TrySound and @SethFalco in https://github.com/svg/svgo/pull/1535Bug Fixes
pre
elements inforeignObject
. By @SethFalco in https://github.com/svg/svgo/pull/1796@-webkit-keyframes
in<style>
node. By @SethFalco in https://github.com/svg/svgo/pull/1826SVG Optimization
z
command if going back to initial position, or dropz
if redundant. By @KTibow in https://github.com/svg/svgo/pull/1822xmlns:xlink
) namespace and migrates from XLink attributes to the SVG 2 equivalent. Disabled by default. By @TrySound and @SethFalco in https://github.com/svg/svgo/pull/1535Metrics
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:
v3.0.3
Compare Source
Includes various bug fixes and optimizations for existing plugins.
We're also revamped the documentation for the project. You can find it on svgo.dev!
The frontend for svgo.dev is maintained in svg/svgo.dev, contributions are welcome.
What's Changed
Settings
preservePatterns
parameter. Preserves legal comments by default, same as the previous behavior, but can now be overridden. By @SethFalco in https://github.com/svg/svgo/pull/1812removeAny
parameter tofalse
by default for accessibility. By @SethFalco in https://github.com/svg/svgo/pull/1806Bug Fixes
defs
children after optimization. By @SethFalco in https://github.com/svg/svgo/pull/1785null
,undefined
, or empty plugin. Instead, log a warning and ignore it. By @SethFalco in https://github.com/svg/svgo/issues/1128SVG Optimization
on*
) andhref
attributes withjavascript:
URIs. By @cakeinpanic and @SethFalco in https://github.com/svg/svgo/pull/1807, https://github.com/svg/svgo/pull/1818, https://github.com/svg/svgo/pull/1819, https://github.com/svg/svgo/pull/1820Performance
Chores
Metrics
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:
v3.0.2
Compare Source
Installing
@types/csso
no longer requiredv3.0.1
Compare Source
Thanks to @Kreeg, @XhmikosR and @TrySound
v3.0.0
Compare Source
SVGO v3
Improvements and fixes
datauri
option whenmultipass
is not enabledBreaking channges
Config
Typescript types are exposed out of the box. No longer need to install
@types/svgo
Active flag is no longer supported
extendDefaultPlugins
is removed,preset-default
plugin should be used insteadwhen need to customize plugins defaults
Enabled sortAttrs plugin by default to get better gzip compression.
Can be disabled if necessary
cleanupIDs plugin is renamed to cleanupIds
Removed cleanupIds plugin "prefix" param, prefixIds should be used instead
Public API
Removed width and height from optimization result.
Can be found with custom plugin
Removed error and modernError from optimization result
Now all errors are thrown, parsing error can be checked by name
Custom plugins
Removed
full
,perItem
andperItemReverse
plugin types.visitor
is the only supported plugin api soplugin.type
is no longer required.
Removed
plugin.active
flag.Removed
plugin.params
used as default params, destructuring with defaults can be used insteadname
andfn
are only required nowRemoved
createContentItem
and JSAPI class from nodes.All nodes are now plain objects with one exception.
parentNode need to be defined to not break builtin plugins.
Thanks to @istarkov, @boidolr, @deining, @ranman, @mondeja, @liamcmitchell-sc, @rogierslag, @kriskowal, @hugolpz and @TrySound
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 these updates again.
This PR has been generated by Mend Renovate. View repository job log here.