@togohq/sdk-browser 2.0.0
Version 2.0.0 introduces breaking changes to session management and experiment tracking
- Browser SDK
Breaking
- BREAKING:
init({ sessionId })andSessionIdMode 'custom'options are removed. Session IDs are now managed by the SDK.
New
getExperiment(name)is introduced to manage experiment assignments, caching results and recording$experiment_enteredevents.$session_startedis now automatically sent by the SDK, marking the start of a session.
Improved
- The SDK now owns every session ID, automatically generating and managing them internally.
Fixed
- The reserved-name log now correctly follows other drops, and non-string names are logged and dropped.
Migration
Remove custom session ID initialization and rely on SDK-managed session IDs.
init({ sessionId: 'custom-id' });init();