Skip to content

@tanstack/ai-angular@0.13.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 12:51
· 216 commits to main since this release
Immutable release. Only release title and notes can be modified.
25e0d65

Minor Changes

  • #1645 807c5e1 - StructuredOutputPart.data is no longer optional when status is 'complete'. After you check part.status === 'complete', TypeScript knows part.data is set.

    Migration: if you validate messages with a schema typed as UIMessage (for example z.ZodType<UIMessage>), split the structured-output part by status. Give 'complete' a required data field.

    Add isHydrating to useChat (and injectChat, createChat) and an onHydratingChange callback plus getIsHydrating() to ChatClient. It is true while the chat is rebuilt from persistence (the server hydrate with persistence: true, or an async storage adapter). It turns false when the transcript is in place and any in-flight run is re-joined, or when the load fails.

Patch Changes

  • Updated dependencies [807c5e1]:
    • @tanstack/ai@0.65.1
    • @tanstack/ai-client@0.38.0