Packages

@flue/sdk

2.3.1 · 18 Nov 2026Apache-2.0309.1k / weekRepositoryHomepagenpmAtom feed

Upgrading @flue/sdk From 2.1.1 to 2.2.0

1 release in betweenevery note read

Other targets from 2.1.1Newest 2.x, Latest2.3.1
  1. 2.1.1yours
  2. 2.2.0target
  3. 2 pre
0
changes to make
0
advisories fixed
3
new
0
fixes

Release by release

  1. 2.2.0

    28 Sep 20263 new
    • New

      Add bounded conversation history reads so long-running chats no longer transfer the whole transcript on every page load or reconnect.

    • New

      Support document attachments (PDFs) on user messages. DeliveredAttachment is now a union of image and document attachments — { type: 'document', data, mimeType: 'application/pdf', filename? } — accepted on dispatch(), the init() handle, and direct HTTP prompts. session.prompt(), skill(), and task() gain a documents option alongside images, and @flue/react's sendMessage() gains a documents option. Documents are forwarded to the model as native document content: Anthropic document blocks, OpenAI (and Azure OpenAI) Responses input_file parts, and Google inlineData. On other model APIs the document is replaced in model context with a text placeholder saying it was omitted. Documents are stored like images — as canonical attachments projected as file parts with mediaType: 'application/pdf' — so existing conversations and persistence adapters need no migration. The SDK also exports DeliveredImageAttachment and DeliveredDocumentAttachment.

    • New

      Conversation messages now carry a server-authored timestamp (ISO 8601 capture time of the underlying durable record) in history(), observe(), and useFlueAgent. It works for every role and for existing conversations. metadata remains entirely agent-authored. Conversation settlements carry the same timestamp for when the submission settled.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.