# AI SDK 7.0.163 Added Two Stream Parts in a Patch Release. My Exhaustive Switch Stopped Compiling

Source: [DEV Community: javascript](https://dev.to/sushilmagare10/ai-sdk-70163-added-two-stream-parts-in-a-patch-release-my-exhaustive-switch-stopped-compiling-1m14) · 2026-11-09 · Frontend
Page: https://themorning.dev/story/ai-sdk-7-0-163-added-two-stream-parts-in-a-patch-release-my-exhaustive-switch-st-377e9159b2d0bcda
Kind: release · Impact: medium

## In brief

- AI SDK 7.0.163 is a patch release that adds two new members to the fullStream part union returned by streamText.
- Code that loops over fullStream and switches on part.type with an assertNever fallback fails type checking after upgrading from 7.0.162 to 7.0.163 or later.
- The runtime behaviour is unchanged; the breakage is a compile-time type error caused by the new union members.

## Why it matters

Patch upgrades that widen a union can break exhaustive type checks in projects that depend on the AI SDK, even though no runtime behaviour changed.

## What to do

- Add handling for the two new stream part types in exhaustive switches over fullStream when upgrading to 7.0.163 or later.
- Pin the ai package to 7.0.162 if the type change cannot be handled immediately.

## Versions

- AI SDK 7.0.162
- AI SDK 7.0.163

## Timeline

- 2026-11-09: DEV Community article reports the type break after AI SDK 7.0.163 added two stream parts

## Coverage

- [AI SDK 7.0.163 Added Two Stream Parts in a Patch Release. My Exhaustive Switch Stopped Compiling](https://dev.to/sushilmagare10/ai-sdk-70163-added-two-stream-parts-in-a-patch-release-my-exhaustive-switch-stopped-compiling-1m14) — DEV Community: javascript, 2026-11-09

Tags: ai-sdk, typescript, streaming, breaking-types, patch-release

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
