Skip to main content

Genies Web SDK v0.1.37

Updated: April 30, 2026

Breaking Changes

  • Breaking for Unified Event Bus direct listeners: replace window.onLodUpgradeStart = fn with const sub = Module.subscribeEvent('onLodUpgradeStart', fn) and call Module.unsubscribeEvent(sub) on teardown. Same for onUpgradeEntityReady.

What's New

  • Unified Event Bus
    • Events now go through a single Module.* API instead of window.* globals.
    • registerLodCallbacks / unregisterLodCallbacks are unchanged — NafLod was migrated internally.
    • JSON payload arrays are now type-tagged ({"_t":"f64a","v":[…]}) to survive int/float round-trips.

What's Fixed

  • Avatar Load Crash Fix (Debug builds)
    • Fixed an Aborted: val accessed from wrong thread assertion.
    • A new MainThreadAnimationProvider adapter wraps the container provider and hops every clip-completion callback to the main thread before invoking it. The callback body, the local clip parameter destruction, replacing previously-set clips (SetTalking, demeanor swap), and any cascaded LoadAnimations per-asset callbacks all now run on main.