---
title: "Version 2.2.0 updates error and diagnostic codes in `onError`, requiring changes to error handlers"
canonical: https://www-stage.togohq.ai/changelog/sdk-node/2.2.0
package: "@togohq/sdk-node"
version: "2.2.0"
released: 2026-11-18T08:12:32.661Z
published: 2026-11-19T00:00:00Z
breaking: true
---

# @togohq/sdk-node 2.2.0 — Version 2.2.0 updates error and diagnostic codes in `onError`, requiring changes to error handlers

Released November 18, 2026 · Node.js SDK
Permalink: https://www-stage.togohq.ai/changelog/sdk-node/2.2.0

## Breaking

- BREAKING: `onError` codes `envelope_too_many_properties` and `shutdown_undelivered` are now `envelope_properties_too_many` and `shutdown_flush_failed`. Update handlers that switch on these names.

## Migration

Update `onError` handlers to use the new error code names.

Before:

```ts
onError((error) => {
  if (error.code === 'envelope_too_many_properties') {
    handleTooManyProperties();
  }
});
```

After:

```ts
onError((error) => {
  if (error.code === 'envelope_properties_too_many') {
    handleTooManyProperties();
  }
});
```

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