Togo
Togo
Apply for the betaSign in

Changelog@togohq/sdk-browser

@togohq/sdk-browser 2.0.0

Version 2.0.0 introduces breaking changes to session management and experiment tracking

  • Browser SDK

On this site since

Breaking

  • BREAKING: init({ sessionId }) and SessionIdMode '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_entered events.
  • $session_started is 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.

Before
init({ sessionId: 'custom-id' });
After
init();

The old form stops working in 2.0.0.