Togo
Togo
Apply for the beta

Changelog@togohq/sdk-browser

@togohq/sdk-browser 1.2.0

Version 1.2.0 introduces event ID returns and updates email handling rules

  • Browser SDK

On this site since

Breaking

  • The governance wire's declared and contractSha256 are now defined and definitionSha256; DeclaredEvent is now DefinedEvent.

New

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

Improved

  • Session IDs are no longer rejected for resembling emails; diagnostics attach to TEST events only.

Fixed

  • The scenario driver's Intl stub now survives a fake clock by using a regular function instead of an arrow function.

Migration

Update governance wire and event types to use 'defined' instead of 'declared'.

Before
(DeclaredEvent, declared, contractSha256);
After
(DefinedEvent, defined, definitionSha256);

The old form stops working in 1.2.0.