---
title: "Version 2.2.0 updates error and diagnostic codes for improved clarity"
canonical: https://www.togohq.ai/changelog/sdk-browser/2.2.0
package: "@togohq/sdk-browser"
version: "2.2.0"
released: 2026-11-18T08:08:42.673Z
published: 2026-11-19T00:00:00Z
breaking: true
---

# @togohq/sdk-browser 2.2.0 — Version 2.2.0 updates error and diagnostic codes for improved clarity

Released November 18, 2026 · Browser SDK
Permalink: https://www.togohq.ai/changelog/sdk-browser/2.2.0

## Breaking

- BREAKING: Error and diagnostic codes have been renamed for consistency and clarity. For example, `invalid_property_type` is now `property_value_wrong_type`, and `shutdown_undelivered` is now `shutdown_flush_failed`. Update any handlers that switch on these codes to use the new names.

## Migration

Update error and diagnostic code handlers to use the new code names.

Before:

```ts
onError: (e) => {
  if (e.code === 'shutdown_undelivered') {
    handleShutdownError();
  }
};
```

After:

```ts
onError: (e) => {
  if (e.code === 'shutdown_flush_failed') {
    handleShutdownError();
  }
};
```

The old form stops working in @togohq/sdk-browser 2.2.0.
