Togo
Togo
Apply for the beta

Changelog@togohq/sdk-browser

@togohq/sdk-browser 1.3.0

Version 1.3.0 introduces session timeout in seconds and fixes session timeout handling

  • Browser SDK

On this site since

Breaking

  • BREAKING: DEFAULT_SESSION_TIMEOUT_MS is now DEFAULT_SESSION_TIMEOUT_SECONDS, and SESSION_HARD_CAP_MS is no longer exported.
  • BREAKING: batchSize and flushIntervalMs options are removed; batching is fixed at 50 events or 5 seconds.

Deprecated

  • sessionTimeoutMs is deprecated in favor of sessionTimeoutSeconds and will be removed in a future version.

New

  • sessionTimeoutSeconds is now available to set session idle timeout in seconds, defaulting to 1800.

Fixed

  • A null or NaN session timeout now defaults correctly, preventing sessions from being turned off unintentionally.

Migration

Update session timeout and batching configurations to use new constants and options.

Before
(DEFAULT_SESSION_TIMEOUT_MS, sessionTimeoutMs, batchSize, flushIntervalMs);
After
(DEFAULT_SESSION_TIMEOUT_SECONDS, sessionTimeoutSeconds);

The old form stops working in 1.3.0.