pkg: Update svg processors (major) #1882
Closed
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.2
^3.0.3
->^4.0.0
Release Notes
svg/svgo
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
svg/svgo-loader
v4.0.0
: 4.0.0Compare Source
Breaking changes:
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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.