Skip to content

v3.1.0

Choose a tag to compare

@zeyadsadaqa zeyadsadaqa released this 15 Jun 09:29
· 13 commits to master since this release

πŸ› 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