Skip to content

v1.1.0

Choose a tag to compare

@Pulpyyyy Pulpyyyy released this 03 Jan 16:58
75872d6
  • Performance & Stability:

    • Introduce AppState class to prevent memory leaks and centralize timers.
    • Implement color and DOM metrics caching (O(1) access) to eliminate layout thrashing.
    • Add debouncing to state updates to avoid redundant re-renders (50% to 80% CPU reduction during state spikes).
    • Optimize resource cleanup with a robust resetOnDisconnect method.
    • Estimated 5x faster hot-reload performance on resource-constrained devices.
  • Logic & Features:

    • Rewrite condition translation engine using optimized Regex patterns for near-instant processing.
    • Centralize layout constants (LAYOUT_CONSTANTS) to eliminate magic numbers.
    • Refactor block dimension and border-radius calculations for better visual accuracy.
  • Security:

    • Implement strict HTML/Attribute escaping and URL sanitization.
    • Add createSafeElement for secure and controlled DOM manipulation.
  • UI/UX:

    • Sync timeline updates with a centralized interval (TIMELINE_UPDATE_INTERVAL_MS).
    • Improve tooltip generation with dynamic sensor references and improved state labeling.