26 January 2026
Frontend
Frontend Development
Enhancement
SDK

We've released version 2.1.0 of the Frontend SDK, which introduces new session lifecycle management features and performance improvements for event handling. These are non-breaking changes and you don't need to perform any migration steps to use this version.

Enhancements
  • Session invalidation: introduced the invalidateSession() method to prevent "zombie sessions" by ensuring stale cookies are removed when a user logs out.
  • Queue management: added the flush() method to the action queue. This lets you wait for all queued actions to complete before proceeding, which is useful for preventing data loss before page navigation or other key operations.
  • Event handler inspection: added the hasEventHandlers() method to check for registered event handlers.
Performance improvements

SDK version 2.1.0 includes the following performance improvements to reduce overhead during API calls and event processing:

  • Deep cloning overhead is now removed when no event handlers are registered.
  • Redaction is now performed once per API call rather than once per event.
  • Event processing is skipped entirely when no event handlers are present.