Skip to content

2024.10.27

Compare
Choose a tag to compare
@beecho01 beecho01 released this 27 Oct 16:04
· 10 commits to main since this release

Breaking Changes

  • Repository Structure: The repository and installation have transitioned from a "Lovelace" repository (v1.X.X) to an "Integration" repository (202X.X.X+). Users should reinstall from the new integration repository to avoid compatibility issues.
  • Icon Prefix Migration: The icon prefix has transitioned from m3s, which previously contained all icon styles, to individual prefixes based on style. Each style now has its unique prefix (e.g., m3o for outlined, m3r for rounded). Refer to the documentation for the complete list of prefixes.
  • Reduction in Available Icons: The number of available icons has been reduced from ~18,600 to 13,460.

Release Notes

Enhancements and Improvements

  • Optimised Caching: Implemented a two-layer caching system to enhance performance. Icon names are now pre-fetched from icons.json, significantly reducing repeated SVG file requests.
    Dynamic Icon Loading: The code dynamically loads icons.json files for each icon set prefix, allowing modular updates to icon lists without hardcoding. This design offers more flexibility for future icon additions.
  • Streamlined Icon Object: Simplified the structure of the returned icon object, focusing on essential properties such as viewBox and path to optimise resource usage.
  • Security Enhancements: Improved security by filtering out SVGs containing scripts or event handlers to ensure safe icon rendering.
  • Consistent Icon Set Registration: Standardised icon set registration through a loop structure, resulting in cleaner and more maintainable code.

Bugs and Issues Resolved

  • [#11]: Icons not appearing in Icon Picker dropdown list.

Full Changelog

2024.10.24...2024.10.27