Skip to content

chore(deps): bump @xsai/stream-text from 0.4.2 to 0.5.1 - #295

Merged
dyascj merged 2 commits into
mainfrom
dependabot/npm_and_yarn/xsai/stream-text-0.5.1
Nov 7, 2026
Merged

dyascj merged 2 commits into
mainfrom
dependabot/npm_and_yarn/xsai/stream-text-0.5.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @xsai/stream-text from 0.4.2 to 0.5.1.

Release notes

Sourced from @​xsai/stream-text's releases.

v0.5.1

   🐞 Bug Fixes

    View changes on GitHub

v0.5.0 "mirai"

   🧳 Migration Guides

Version 0.5.0 includes breaking API changes. Upgrade all xsAI packages to 0.5.0 together and avoid mixing 0.4.x and 0.5.x packages.

Replace maxSteps with stopWhen

Replace:

generateText({
  maxSteps: 2,
})

with:

import { stepCountAtLeast } from '@xsai/shared-chat'
generateText({
stopWhen: stepCountAtLeast(2),
})

The default remains one step. CompletionStep.stepType has been removed; use finishReason, toolCalls, and steps instead.

stopWhen is evaluated before tool execution. With the default stepCountAtLeast(1), generateText() returns pending toolCalls for manual execution and toolResults may be empty. If your 0.4.4 code relied on automatic tool execution, set stopWhen: stepCountAtLeast(2) or use a custom condition that allows another step. If you need manual approval, keep the default behavior, execute or approve the returned toolCalls, append the resulting tool messages to messages, and call generateText() again. Top-level tool results describe the final step; results from earlier steps are available in steps[n].toolResults.

Update stream event handling

streamText().eventStream now provides normalized xsAI events. fullStream now provides raw provider chat-completion chunks.

Common event changes:

| 0.4.4 | 0.5.0 |

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​xsai/stream-text since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 23, 2026
Bumps [@xsai/stream-text](https://github.com/moeru-ai/xsai/tree/HEAD/packages/stream-text) from 0.4.2 to 0.5.1.
- [Release notes](https://github.com/moeru-ai/xsai/releases)
- [Commits](https://github.com/moeru-ai/xsai/commits/v0.5.1/packages/stream-text)

---
updated-dependencies:
- dependency-name: "@xsai/stream-text"
  dependency-version: 0.5.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/xsai/stream-text-0.5.1 branch from 1d0f758 to a1bb714 Compare November 3, 2026 15:21
0.5 turned fullStream into raw OpenAI chunks and moved the typed
events to eventStream with dotted names (text.delta, reasoning.delta,
tool-call.done). Wire output to the client is unchanged.
@dyascj
dyascj merged commit 394fac3 into main Nov 7, 2026
4 checks passed
@dyascj
dyascj deleted the dependabot/npm_and_yarn/xsai/stream-text-0.5.1 branch November 7, 2026 14:46
@dyascj dyascj mentioned this pull request Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant