Togo
Togo
Apply for the betaSign in

Changelog@togohq/sdk-node

@togohq/sdk-node 2.0.0

Version 2.0.0 introduces experiment tracking and removes custom session ID support

  • Node.js SDK

On this site since

Breaking

  • Custom session ID support via init({ sessionId }) and SessionIdMode 'custom' is removed.

New

  • getExperiment() is now available for experiment tracking, sending $experiment_entered events.

Improved

  • The SDK now forwards session IDs from the browser's getSessionId() only, without sending $session_started.

Fixed

  • The reserved-name log in the Node SDK now correctly follows other drops, and non-string names are logged.

Migration

Replace custom session ID usage with ordinary event properties.

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

The old form stops working in 2.0.0.