Skip to content

v4.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Aug 19:23
· 231 commits to main since this release
f8732ec

Full Changelog: v4.0.1...v4.1.0

The optimize option in pre-v4 releases was often used to bypass parsing errors - the plugin used an HTML parser that couldn't handle things like this:

<!-- ...  -->
<svg></svg>

or this:

<?xml version="1.0" encoding="utf-8"?>
<svg></svg>

SVGO/optimize fixed this due to some parsing to remove these before they were processed by the plugin. Because optimize was removed in v4.0.0, this may have caused some issues. This release switches to https://github.com/NaturalIntelligence/fast-xml-parser, a more flexible parser that can handle those examples above and it might even be a little bit faster. It also has an approximately 85% smaller bundle size than linkedom.