@togohq/sdk-browser 1.3.0
Version 1.3.0 introduces session timeout in seconds and fixes session timeout handling
- Browser SDK
Breaking
- BREAKING:
DEFAULT_SESSION_TIMEOUT_MSis nowDEFAULT_SESSION_TIMEOUT_SECONDS, andSESSION_HARD_CAP_MSis no longer exported. - BREAKING:
batchSizeandflushIntervalMsoptions are removed; batching is fixed at 50 events or 5 seconds.
Deprecated
sessionTimeoutMsis deprecated in favor ofsessionTimeoutSecondsand will be removed in a future version.
New
sessionTimeoutSecondsis 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.
(DEFAULT_SESSION_TIMEOUT_MS, sessionTimeoutMs, batchSize, flushIntervalMs);(DEFAULT_SESSION_TIMEOUT_SECONDS, sessionTimeoutSeconds);