Releases: uncenter/eleventy-plugin-icons
v4.5.1
v4.5.0
v4.4.1
v4.4.0
Full Changelog: v4.3.1...v4.4.0
Fixes sprite
mode from an earlier bug I introduced that removed the lines adding each page's icons to this.page.icons (#36), fixes icons from sprite.extraIcons
not being included in the sprite
shortcode (d4580bb), fixes duplicate symbols appearing in the sprite sheet (5921ae0), upgrades a bunch of dependencies, adds an example for icon.transform
usage (382a5b2), and adds a note to the README regarding the usage of attributes in sprite
mode (cec2f5a).
v4.3.1
Full Changelog: v4.3.0...v4.3.1
Fixed some bugs with the options validation - it worked fine but would log the location of the issue incorrectly. I simplified how options are validated which will hopefully prevent this from happening again in the future!
v4.3.0
Full Changelog: v4.2.1...v4.3.0
This release removes Zod and related dependencies that were used for validating this plugin's options. Instead I adopted a much more basic validation function that takes a little more work to update each time but is about 4 times faster and reduces the package size by ~76%. The logging is also slightly updated here and looks more similar to 11ty's logging (because it is actually based on 11ty's logging) - you can thank @Aankhen for that.
v4.2.1
Full Changelog: v4.2.0...v4.2.1
Fix package not being built before publishing!
v4.2.0
Full Changelog: v4.1.1...v4.2.0
Now written in TypeScript, with options validation, improved docs, and better testing.
v4.1.1
Full Changelog: v4.1.0...v4.1.1
Fixes options not merging properly with the default options.
v4.1.0
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.