> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/appendix/changelog-javascript.md).

# Changelog — JavaScript SDK

Release notes for [@dnotifier-realtime/dnotifier](https://www.npmjs.com/package/@dnotifier-realtime/dnotifier).

{% hint style="info" %}
Install the latest version with `npm install @dnotifier-realtime/dnotifier`. Pin a specific version in `package.json` for reproducible builds.
{% endhint %}

***

## 1.1.13

### Workflows

* `DNotifier.defineAgent`, `DNotifier.Workflow`, and `DNotifier.runWorkflow` for multi-step AI pipelines.
* `WorkflowContext` helpers: `runAgent`, `sendAI`, `search`, document CRUD, `recordStep`.
* Optional workflow observability when `observability: true`.
* `WorkflowError` for validation and runtime failures.

→ [Workflows overview](/product-docs/workflows-and-agents/overview.md)

### Chat history

* `fetchChatHistory({ senderId, receiverIds })` — request history; response delivered via `onMessage`.
* Supports multi-receiver history queries for thread reconstruction.

→ [Chat history](/product-docs/chat/chat-history/javascript-typescript.md)

### Delete APIs

* `deleteChatHistoryMessage({ senderId, messageId })` — remove a stored chat message.
* `deleteAIHistoryMessage({ senderId, messageId })` — remove a stored AI history entry.

→ [Delete chat messages](/product-docs/chat/delete-messages/javascript-typescript.md)

### Messaging

* Large payloads automatically chunked and reassembled before `onMessage`.
* Applies to structured `send()` data including images and binary content.

→ [Large messages & chunking](/product-docs/realtime-communication/chunking.md)

***

## 1.1.12

### Workflows (initial)

* Early workflow and agent primitives: `defineAgent`, `Workflow`, `WorkflowRunner`.
* `authToken` available on `DNotifier` after successful `connect()`.

### Chat history (initial)

* `fetchChatHistory` for retrieving stored conversations between users.

### Delete (initial)

* `deleteChatHistoryMessage` for per-message chat deletion.
* `deleteAIHistoryMessage` for AI conversation cleanup.

### Messaging (initial)

* Automatic outbound chunking for large payloads.
* Inbound reassembly before `onMessage`.

***

## Earlier highlights

| Version area | Features                                                                                 |
| ------------ | ---------------------------------------------------------------------------------------- |
| AI pipeline  | `sendAI`, `fetchAIHistory`, knowledge-base `search`, `addDocument`, session `logs: true` |
| Transports   | WebSocket with `WebSocketImpl` injection; HTTP for RPC-style calls                       |
| Realtime     | `send`, `sendBinary`, plan limits from auth                                              |
| Deprecated   | `sendWithOpenAI` — use `sendAI`                                                          |

***

## Upgrade notes

### From pre-1.1.12

1. Update `npm install @dnotifier-realtime/dnotifier@latest`
2. Replace any `sendWithOpenAI` calls with `sendAI`
3. If using workflows, register agents before `runWorkflow`

### Node.js WebSocket

Ensure `WebSocketImpl` is passed when using `transport: "ws"`:

```js
import WebSocket from "ws";
```

→ [Node.js platform guide](/product-docs/platform-guides/nodejs.md)

***

## Related

* [Changelog — Dart SDK](/product-docs/appendix/changelog-dart.md)
* [Support & links](/product-docs/appendix/support.md)
