Skip to content

chore: add changeset for middleware system#364

Merged
AlemTuzlak merged 1 commit intomainfrom
chore/middleware-changesets
Mar 11, 2026
Merged

chore: add changeset for middleware system#364
AlemTuzlak merged 1 commit intomainfrom
chore/middleware-changesets

Conversation

@AlemTuzlak
Copy link
Contributor

@AlemTuzlak AlemTuzlak commented Mar 11, 2026

Summary

  • Adds changeset for the middleware system feature merged in feat: tanstack ai middleware #318
  • Minor bump for @tanstack/ai (new middlewares subpath, content guard middleware)
  • Minor bump for @tanstack/ai-event-client (initial release, extracted devtools middleware)
  • Patch bump for @tanstack/ai-client and @tanstack/ai-devtools (event type and UI updates)

Summary by CodeRabbit

  • New Features
    • Introduced a composable middleware system for chat applications with configurable hooks (onStart, onIteration, onChunk, onToolPhaseComplete, onFinish)
    • Added content guard and tool cache middleware options
    • Released a new event client package for improved modularity
    • Enhanced DevTools with middleware-aware event handling and timeline visualization

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 11, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

A new middleware system is introduced for TanStack AI with composable chat middleware architecture, including contentGuardMiddleware and toolCacheMiddleware. The devtoolsMiddleware is extracted into a standalone @tanstack/ai-event-client package. Event types and DevTools UI are updated to support middleware-aware event handling.

Changes

Cohort / File(s) Summary
Middleware System Changelog
.changeset/middleware-system.md
Documents introduction of new middleware system, extraction of devtoolsMiddleware to separate package, middleware hooks (onStart, onIteration, onChunk, onToolPhaseComplete, onFinish), and updates to event types and DevTools UI.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A middleware dance, so neat and clean,
Hooks and chains in between,
DevTools spin-off, light and free,
Chat flows smooth as can be! 🌱✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately describes the primary change—adding a changeset for the middleware system feature.
Description check ✅ Passed The PR description clearly explains the changeset additions and version bumps for all affected packages, though it omits the formal template sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/middleware-changesets

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@AlemTuzlak AlemTuzlak merged commit 51c6614 into main Mar 11, 2026
1 of 2 checks passed
@AlemTuzlak AlemTuzlak deleted the chore/middleware-changesets branch March 11, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants