Skip to content

v0.1.10

Choose a tag to compare

@IhsenBouallegue IhsenBouallegue released this 14 May 11:36
· 14 commits to main since this release

Fix

Re-export registerEntity from the main entry so solid/hooks.ts can import it via bare specifier. Previously imported via relative path, which caused vendor build splits (multi-entry consumers like dash prod) to duplicate connection/subscription-manager into the /solid chunk. The duplicated module had its own refCounts and conn, so registerEntity() updated one instance while initConnection() wired the other — subscribe_entities was never sent and widgets never received HA state updates.

Dev was unaffected: Vite's /@fs/ source aliases resolve both entry points to the same file, collapsing to a single instance.

Detection

Added globalThis.__GH_SYNC_LAYER_STORE__ and __GH_SYNC_LAYER_SUB_MGR__ guards. Both log a clear console error on duplicate module instantiation so future regressions are visible immediately.