Togo
Togo
Apply for the betaSign in

Changelog — page 2 of 3

Changelog

What changed, and when it reached production.

  1. Togo v0.3.15

    Breaking changes to error and diagnostic codes

    • Dashboard
    • API
    • Ingestion

    Breaking

    • The onError codes envelope_too_many_properties and shutdown_undelivered are now envelope_properties_too_many and shutdown_flush_failed. Update any handler that switches on these names to use the new ones.

    Fixed

    • The install screen now correctly re-reads the organization's status before the Continue button is used, preventing a misleading 'No data yet' banner.

    Migration

    Update onError code handlers to use new code names.

    Before
    switch (error.code) { case 'envelope_too_many_properties': handleTooMany(); break; case 'shutdown_undelivered': handleShutdown(); break; }
    After
    switch (error.code) { case 'envelope_properties_too_many': handleTooMany(); break; case 'shutdown_flush_failed': handleShutdown(); break; }

    The old form stops working in 0.3.15.

  2. Togo v0.3.14

    Improved handling of test and live events in the Dashboard

    • Dashboard

    Improved

    • Live View now guides users through connecting Togo first and then prompts for installation if no events have been received.

    Fixed

    • The Overview page now correctly omits an unreadable date for test events, preventing 'arrived on Invalid Date' from displaying.
    • The Overview page now accurately displays when the first test event arrived and explains why the Live View can be empty.
    • Live View now correctly prompts for installation only after a live event has arrived, rather than any event.
  3. Togo v0.3.13

    Improved onboarding and install instructions visibility

    • Dashboard
    • API
    • MCP

    Improved

    • The Overview page now consistently shows install instructions until the project's first live event is received, ensuring clarity during the onboarding process.
    • The install screen now waits for a test key event before querying Live View, reducing unnecessary polling and improving efficiency.
    • The install banner now accurately reflects the newest event status, even if it was refused, providing clearer feedback during setup.
    • Install steps now display an error message if they cannot load, instead of appearing to load indefinitely.
    • The install banner now counts only the most severe diagnostics, providing more accurate feedback on issues to address.
  4. Togo v0.3.11

    Enhanced people management and live event tracking

    • Dashboard
    • API
    • MCP

    New

    • The People list now includes 'Country' and 'Platform' columns, and the person page shows 'Last seen on' with platform, OS, device type, and country.
    • A person's events are now grouped by session on their page, with the ability to watch events live as they arrive.
    • The 'People' section in the dashboard now allows searching for recently active identified people and viewing a person's detailed page with identity, profile, and activity summary.

    Improved

    • Anonymous visitors' pages now survive reloads and shared links by using a random visitor ID in the URL.

    Fixed

    • Anonymous ID searches no longer incorrectly count mistyped IDs as matches.
    • A failed search no longer incorrectly triggers a search event on the next page load.
    • Rejected events for a person now appear in the 'Watch live' feature.
    • A person's page now displays times in a brief format, with full details on hover.
  5. @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.

  6. @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.

  7. 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.

  8. @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.

  9. @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.

  10. 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.
  11. @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.
  12. @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.

  13. @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.

  14. @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.

  15. @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.

  16. 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.
  17. 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.
  18. 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.

  19. 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.

  20. 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.