Togo
Togo
Apply for the beta

Changelog@togohq/sdk-node

@togohq/sdk-node 1.2.0

This version introduces event ID returns and updates terminology for event definitions

  • Node.js SDK

On this site since

Breaking

  • Terminology updated: "declare" and "contract" are now "define" and "definition" across the SDK, aligning with internal naming conventions.

New

  • track(), identify(), and setPersonProperties() now return the eventId of the event they queued, or undefined when no event is sent.

Migration

Update code to use the new terminology for event definitions.

Before
declareEvent(); // uses 'declare' terminology
After
defineEvent(); // uses 'define' terminology

The old form stops working in 1.2.0.