Skip to content

v2.9

Choose a tag to compare

@knoop7 knoop7 released this 22 Feb 05:53
· 115 commits to main since this release

HTML Card Pro v2.9 Released
Complete Architecture Refactor | Native HACS Support | JS Engineering

Resolves #4

Core Upgrades
1. Native HACS Integration: One-click install and auto-updates via Home Assistant Community Store. No more manual file copying.
2. Web Components Architecture: Core rewritten with LitElement, Shadow DOM isolation, 300% performance boost.
3. Declarative Data Binding: Bind entities via data-entity attributes. State sync without Jinja2 templates.
4. Dual Mode Compatible: Legacy Jinja2 support retained (do_not_parse: false). Zero-config migration.

Full Changelog (20 Items)

Architecture Refactor
1. Core engine migrated from string templates to Web Components standard
2. Shadow DOM style isolation implemented. CSS pollution eliminated
3. Virtual DOM diff algorithm introduced. Render latency under 10ms
4. Entity state management refactored with centralized data store
5. Hot-reload dev mode supported. Real-time config preview

HACS Support
6. Standard hacs.json config added
7. Automatic version detection and update push implemented
8. Frontend asset loading paths optimized for HACS directory structure
9. Installation validation added. Auto-detects config integrity

JS Enhancements
10. Built-in data-action directive system (toggle/more-info/turn_on)
11. data-brightness and data-temperature two-way slider binding supported
12. data-state-text automatic state text rendering added
13. Global variables hass, config, root exposed for script access
14. External JS library on-demand loading supported (scripts array config)

Performance Optimization
15. Entity state caching mechanism. 80% reduction in unnecessary re-renders
16. Event delegation optimized. 60% lower memory footprint
17. Image lazy loading supported. Faster initial load speed

Stability Fixes
18. Error boundaries handled. Single card failure won't crash entire dashboard
19. Fixed UI freeze when entities become unavailable
20. Mobile touch feedback optimized. Fixed 44px below click area failure