> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 1.32.0-rc0

**`(feat):`** Add context cancellation support to streams. `NewStream` now accepts a
`context.Context` so that blocking `Recv()` calls unblock when the context
is cancelled or times out.

**`(feat):`** Add `RecvEvent()` and `RecvEventRaw()` methods that return SSE metadata
(id, event type, retry) alongside the data payload. Also add `LastEventID()`
for tracking the most recent event ID across reconnections.

**`(fix):`** Fix SSE comment lines (`: heartbeat`) crashing the stream. Comment-only
events are now silently skipped per the WHATWG SSE specification.

**`(fix):`** Fix SSE streams to handle all spec-compliant line endings (LF, CR, CRLF).
Previously only LF was supported, causing parse failures with servers that
use Windows-style or bare CR line endings.

**`(fix):`** Fix SSE `id:` and `retry:` fields being parsed but discarded. The `id:`
field now persists across events per spec, and `retry:` is parsed as an
integer milliseconds value.

**`(feat):`** Ship `core/stream_test.go` into generated SDKs so that streaming logic
is verified by user CI alongside the rest of the SDK.