# changelog ## 0.1.7 - report terminal live error frames once through the reconnect handler. - size subscription paths and WebSocket handshake buffers for large DID filters. - filter archive event kinds before decoding, so excluded malformed records cannot fail a subscription; selected malformed records still report errors. - pin and verify patched Go 1.27.3 for CI and release checks. ## 0.1.6 - require Zig 0.17.0 and adopt ZAT 0.6.0-alpha.6 and WebSocket 0.2.0-alpha.5 with eMudhra certificate distrust. - propagate dictionary-fetch cancellation, tail inline when the stall watchdog cannot start a concurrent task, and synchronize its progress counter atomically. - add repository-local conformance, regression and performance checks, with exact-commit CI gates before release tagging. ## 0.1.5 - use timestamp cursors for live failover, without archive requests or API keys; preserve sequence deduplication on same-host reconnects and reset it for timestamp entry into a new host. - decode archive zstd frames with omitted content size, including small blocks from the official Go writer, while retaining checksum and size limits. - seed live duplicate suppression from sequence resume cursors, dropping boundary events even if the server sends them again. - report dictionary rejection through `onError` after refresh, honoring caller stop before reconnecting, matching upstream Go callback behavior. ## 0.1.4 - adopt ZAT 0.5.2 and ZTTP 0.1.2 so signed `RateLimit-Reset` timestamps reach the archive retry policy. An expired negative reset retains precedence over a conflicting `Retry-After`, matching Atmos v0.4.0. - add a regression for negative reset precedence; no SDK call-site changes. ## 0.1.3 - enable live dictionary compression by default, refresh rejected dictionaries, and fall back to uncompressed live delivery when refresh cannot recover. - decode omitted-size, concatenated, and skippable live zstd frames; enforce upstream window and aggregate-output limits and preserve checksum validation. - cover malformed live-frame callback continuation and stop behavior, dictionary rotation, and decoder recovery with bounded local regressions. - document the client integration workflow, upstream/Atmos reference versions, raw-record scope, production verification, and remaining HTTP retry work. - no consumer call-site changes; archive authentication and downloads are unchanged. ## 0.1.2 - adopt ZAT 0.5.1 and ZTTP 0.1.1, including legacy HTTP-date retry hints. - finish snapshot pagination with a pinned sealed tip and a cumulative block budget; reject stalled plans. Match collection wildcards and enforce live filters. - report recoverable archive download/decode errors to the caller; continue on the same archive only when accepted. Plan errors remain terminal. - align download retry attempts, backoff, jitter, and server-hint handling with upstream's separate block and whole-segment policies. - authenticate archives only. Remove `live.Options.api_key`; callers setting it must remove it. The unified client's archive `api_key` remains supported. - report archive bytes fetched and allow archive reads without record decoding. - add local segment-to-TSV export and network-wide collection slice examples; authenticate Streamplace archive replay with an environment-provided key. - fix loopback shutdown and EOF handling so tests complete promptly; add upstream conformance regressions and a release workflow skill. ## 0.1.1 - the plan request now carries `kinds` (upstream WithKinds parity): the planner prunes marker/sentinel blocks server-side instead of the client fetching and discarding them. measured against the production archive: a 3-collection account slice went 108.5s -> 5.3s (the network-wide statusphere plan shrinks 83x, 140,705 -> 1,684 blocks). previously `kinds` filtered client-side only. - `LiveClient`/`subscribe` send `Authorization: Bearer` on the websocket handshake when `api_key` is set (upstream Go client parity; hosted instances can gate the tail at their edge). - new example: `slice_sync` — one account's whole history from the archive slice (the local-first pattern), plus `cutover_smoke` from the seam-verification work. ## 0.1.0 first tagged release of the zig jetstream service SDK — the service half of the zat protocol/service split (zat 0.4.0). - **`subscribe`** — the unified v2 client, mirroring the official Go client: filtered archive replay (planSnapshot → getBlock/getSegment → jss v1 columnar decode), gapless replay→live cutover at the sealed tip, per-event seq dedup, `CursorTooOld` re-backfill (bounded, monotonic), `snapshot_only`. - **`LiveClient`** — the subscribeEvents v2 live tail standalone: lexicon frames, `kinds`/`collections`/`dids`, dict-zstd negotiation with rotation recovery, typed pre-upgrade errors matched by xrpc error name, reconnect backoff resuming at the highest delivered seq. - **records match upstream `Event` exactly**: `commit.record_cbor` is the canonical DAG-CBOR (live records canonicalized from the wire JSON like upstream `decodeLiveRecord` — whole numbers to integers, `$bytes`/ `$link` sentinels, finite f64 floats via zat 0.4.2's `cbor.fromJson`; archive records alias the stored payload verbatim, block-buffer lifetime). `commit.record` is the generic form derived from the canonical bytes. `MalformedRecord` classifies records that cannot canonicalize, kept non-fatal like other malformed data frames. - **multi-host failover** (see docs/failover.md): `hosts` is a list with the first entry preferred — the same contract as zat's v1 clients — rotating on error threshold or opt-in event-stall detection (`failover_stall_ns`, catches connected-but-silent hosts), re-anchoring across per-instance seq spaces by witnessed time with a delivery floor bounding duplicates to the rewind margin; failback retries the primary after healthy drops. - **`ArchiveBackfill`** — the archive half standalone (moved in from zat 0.3.30), with the classic `onEvent` commit contract and the unified `onRow` every-row contract; `fetchSeqBounds` maps time windows to plan bounds. - loopback e2e suite: fake v2 instances (real wire: JSON endpoints, raw-block zstd frames, websocket upgrade) drive the real client through failover, stall rotation, and clean stop; live failover smoke example. - pinned upstream: bluesky-social/jetstream 289b032 (v0.2.0); deps: zat v0.4.2, websocket.zig v0.1.12.