Repository navigation
v3.1.0
π Bug Fix: Robust player event parsing
Previously, the SDK could throw a "malformed event" error when a player event delivered its event data in an unexpected shape (for example, a JSON array or a primitive value rather than an object).
This release introduces a custom deserializer for BambuserEventPayload that gracefully handles all event payload shapes:
- Object β parsed into the event data map as before
- Array β wrapped under a "list" key
- Primitive (string/number/boolean) β wrapped under a "value" key
- null / missing β treated as empty data