Togo
Togo
Apply for the betaSign in

Changelog — page 2 of 3

Changelog

What changed, and when it reached production.

  1. @togohq/sdk-node 2.1.0

    @togohq/sdk-node 2.1.0

    • Node.js SDK

    Breaking

    • email and name are no longer keys of set or setOnce: pass them as the email and name parameters. A plain email or name key in set no longer type-checks, and the server drops one as person_property_reserved.
    • A property key starting with $ is reserved for Togo. Under a live key the SDK drops it, logs it once and still sends the event; under a test key it is sent, so verify_tracking reports property_reserved or person_property_reserved.

    New

    • init({ onError }) is called once for every event, or part of one, that will not be recorded, and once when the client stops sending. flush() waits for it. Pass it to your error tracker. Each error carries a code.
    • setPersonProperties({ email, name }, person) sets a person's email address and name through typed parameters. null removes one.

    Fixed

    • An empty or over-long event name is dropped on its own, instead of with the whole batch it was in.

    Migration

    Pass email and name as parameters of setPersonProperties(), not as keys of set.

    Before
    setPersonProperties({ set: { email: user.email, name: user.name } }, { userId });
    After
    setPersonProperties({ email: user.email, name: user.name }, { userId });

    The old form stops working in 2.1.0.

  2. @togohq/sdk-browser 2.1.0

    @togohq/sdk-browser 2.1.0

    • Browser SDK

    Breaking

    • email and name are no longer keys of set or setOnce: pass them as the email and name parameters. A plain email or name key in set no longer type-checks, and the server drops one as person_property_reserved.
    • A property key starting with $ is reserved for Togo. Under a live key the SDK drops it, logs it once and still sends the event; under a test key it is sent, so verify_tracking reports property_reserved or person_property_reserved.

    New

    • init({ onError }) is called once for every event, or part of one, that will not be recorded, and once when the client stops sending, in production too. Pass it to your error tracker: onError: (e) => Sentry.captureMessage(e.message). Each error carries a code.
    • setPersonProperties({ email, name }) sets a person's email address and name through typed parameters. null removes one.

    Fixed

    • A queue_full caused by one oversized event names that event, instead of reading as being offline.

    Migration

    Pass email and name as parameters of setPersonProperties(), not as keys of set.

    Before
    setPersonProperties({ set: { email: user.email, name: user.name } });
    After
    setPersonProperties({ email: user.email, name: user.name });

    The old form stops working in 2.1.0.

  3. Togo v0.3.4

    Reserved properties: filter by `$os`, `$country` and more; `$email` and `$name` on profiles

    • Dashboard
    • API
    • MCP

    Breaking

    • A profile write's plain email or name key is now dropped, and reported as person_property_reserved. Set them with the email and name parameters of setPersonProperties() in @togohq/sdk-browser and @togohq/sdk-node 2.1.0. get_person returns them as $email and $name.

    New

    • get_trend and run_funnel filter and break down by the properties Togo records on every event: $os, $browser, $country, $path, $utm_source and the rest. get_event lists them.
    • A property key your app sends that starts with $ is dropped and reported as property_reserved, because $ names are Togo's.
    • The Event registry lists the reserved properties beside the reserved events, and Live View marks a key dropped as reserved.
    • Setting Togo up through an agent now wires onError, and verify_tracking names an event the SDK dropped before sending it.

    Fixed

    • update_event_definitions reports every problem with a definition at once, including one next to a $ property.

    Migration

    Set email and name through the typed parameters of setPersonProperties().

    Before
    setPersonProperties({ set: { email: user.email, name: user.name } });
    After
    setPersonProperties({ email: user.email, name: user.name });

    The old form stops working in 0.3.4.

  4. @togohq/sdk-node 2.0.0

    Version 2.0.0 introduces experiment tracking and removes custom session ID support

    • Node.js SDK

    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.

  5. @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 }) 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.

  6. Togo v0.2.28

    Improved installation process and feedback options for Togo setup

    • Dashboard
    • MCP

    New

    • Claude Code now allows installation of the Togo plugin directly from the AI agent card and the install screen.

    Improved

    • The install screen now correctly names the project it is setting up, preventing the creation of empty projects elsewhere in the organization.
    • The install screen now instructs users to sign in through /mcp first, ensuring access to Togo tools during installation.
    • The give_feedback tool now includes options for install_report and feature_request, allowing users to provide detailed feedback on installation issues and feature wishes.
  7. @togohq/sdk-node 1.3.1

    Version 1.3.1 corrects the 1.3.0 changelog

    • Node.js SDK

    Fixed

    • The 1.3.0 entry in this changelog now describes the Node SDK's changes: withFlush(), flushIntervalSeconds replacing flushIntervalMs, the batchSize range and the flush() retry. It had listed browser-only session changes.
  8. @togohq/sdk-node 1.3.0

    Version 1.3.0 adds withFlush() for serverless handlers and takes the flush interval in seconds

    • Node.js SDK

    Breaking

    • flushIntervalSeconds (10 to 60, default 10) replaces flushIntervalMs. A flushIntervalMs passed to init() is ignored, with a warning naming the replacement.

    New

    • withFlush(handler) wraps a serverless handler so the queue is sent after it returns or throws, with its result passed through unchanged.

    Improved

    • batchSize accepts 100 to 500. A value outside that range is moved into it, with a warning.
    • flush() retries a network failure or a server error within a 2-second budget before it resolves, and never retries a 429.

    Migration

    Replace flushIntervalMs with flushIntervalSeconds, and wrap serverless handlers in withFlush().

    Before
    const analytics = init({ writeKey, flushIntervalMs: 10_000 });
    After
    const analytics = init({ writeKey, flushIntervalSeconds: 10 });
    export const handler = analytics.withFlush(async (event) => {
      analytics.track('order_paid', {}, { userId: event.userId });
    });

    The old form stops working in 1.3.0.

  9. @togohq/sdk-browser 1.3.0

    Version 1.3.0 introduces session timeout in seconds and fixes session timeout handling

    • Browser SDK

    Breaking

    • BREAKING: DEFAULT_SESSION_TIMEOUT_MS is now DEFAULT_SESSION_TIMEOUT_SECONDS, and SESSION_HARD_CAP_MS is no longer exported.
    • BREAKING: batchSize and flushIntervalMs options are removed; batching is fixed at 50 events or 5 seconds.

    Deprecated

    • sessionTimeoutMs is deprecated in favor of sessionTimeoutSeconds and will be removed in a future version.

    New

    • sessionTimeoutSeconds is now available to set session idle timeout in seconds, defaulting to 1800.

    Fixed

    • A null or NaN session timeout now defaults correctly, preventing sessions from being turned off unintentionally.

    Migration

    Update session timeout and batching configurations to use new constants and options.

    Before
    (DEFAULT_SESSION_TIMEOUT_MS, sessionTimeoutMs, batchSize, flushIntervalMs);
    After
    (DEFAULT_SESSION_TIMEOUT_SECONDS, sessionTimeoutSeconds);

    The old form stops working in 1.3.0.

  10. @togohq/sdk-node 1.2.0

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

    • Node.js SDK

    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.

  11. @togohq/sdk-browser 1.2.0

    Version 1.2.0 introduces event ID returns and updates email handling rules

    • Browser SDK

    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.

  12. Togo v0.2.19

    Enhancements and fixes in profile key management and feedback reporting

    • API
    • MCP

    New

    • The list_person_properties tool now returns dropped profile keys with their diagnostic codes, helping agents identify and fix issues more efficiently.
    • The give_feedback tool allows agents to report issues directly to the support inbox, with a limit of 20 reports per member per hour.

    Improved

    • Profile key drops are now named and recorded, making missing definitions visible in production.

    Fixed

    • Clearing an undefined profile key is no longer incorrectly recorded as a drop.
    • The list_person_properties tool now accurately indicates when the drop list is incomplete, preventing silent errors.
  13. Togo v0.2.17

    Minimum plugin version updated to 1.1.0 for MCP

    • MCP

    New

    • A notice is now displayed for plugins below version 1.1.0 when using the MCP surface. This informs users that they need to update their plugin to the latest version to ensure compatibility.
  14. Togo v0.2.14

    Changes to event definition terminology and email enforcement

    • Ingestion

    Breaking

    • The governance wire's declared and contractSha256 are now defined and definitionSha256. This affects how controls are read by the CLI and SDKs.

    Improved

    • Session IDs that resemble emails are no longer rejected at the edge. Instead, they are flagged in test events for diagnostics.

    Migration

    Update code to use 'defined' instead of 'declared' and 'definitionSha256' instead of 'contractSha256'.

    Before
    declared, contractSha256
    After
    defined, definitionSha256

    The old form stops working in 0.2.14.

  15. Togo v0.2.13

    Event governance terminology updated and PII filter enhancements

    • Dashboard
    • API
    • MCP

    Breaking

    • The governance wire's declared and contractSha256 are now defined and definitionSha256. The @togohq/sdk-browser's DeclaredEvent type is now DefinedEvent. This change affects the governance wire and SDKs.

    New

    • The PII filter switch has been added to the Event governance card in the dashboard, allowing projects to opt-in to email-shaped property filtering.

    Improved

    • The dashboard now consistently uses the term "event definition" instead of "declaration" or "contract".

    Fixed

    • An error message is now displayed when an Event governance switch fails to save, providing better feedback to users.

    Migration

    Update governance wire and SDKs to use new terminology.

    Before
    declared, contractSha256, DeclaredEvent
    After
    defined, definitionSha256, DefinedEvent

    The old form stops working in 0.2.13.

  16. Togo v0.2.10

    Enhancements and fixes for MCP setup and agent connection

    • Dashboard
    • MCP

    New

    • Introduced a setup prompt in MCP for members to start setup manually, ensuring it remains up-to-date without holding tenant data.
    • Added new tools for agents setting up Togo, including project creation, key creation per system, and access to Live View.

    Improved

    • The create_project function now matches project names exactly, aligning with the database's case-sensitive checks.

    Fixed

    • Resolved an issue where a signup initiated from an agent's sign-in would not return to the correct approval page after verification.
  17. @togohq/sdk-browser 1.1.0

    Version 1.1.0 introduces default properties, timezone, and page context features

    • Browser SDK

    New

    • init({ defaultProperties }) now allows setting default properties that are stamped on every track() call. The browser SDK reads the device timezone at initialization, and page context includes URL and path per event, with referrer and UTM parameters captured once at init.

    Fixed

    • Email redaction now correctly decodes only %40 in email addresses from page fields, preventing malformed escape errors and ensuring proper redaction.
    • An undefined event value no longer erases a default property, ensuring that undefined values are treated as absent.
  18. Togo v0.2.3

    Introduce per-project rate limiting on event ingestion

    • Ingestion

    New

    • Implemented per-project rate limiting on the /v1/events endpoint. Requests exceeding the limit receive a 429 status with a Retry-After header, which is now exposed to CORS for better handling by browser SDKs.