# Changelog

## 0.1.0 — 2026-11-30

First working tree of the BAM library. Nothing has been published to Hex, and this version has not been tagged.

The tree includes a BGZF reader and writer on `:zlib`, BAM header and reference-dictionary codecs, alignment streaming, SAM text parse and format, BAI and CSI read and write, region queries, `mix bam.inspect`, and `mix bam.bench`. Limits reject oversized length fields before those fields are used as allocation sizes. Strict streams raise `%BAM.Error{}`. Permissive streams yield `{:ok, record}` or `{:error, %BAM.Error{}}` when the record boundary is known.

`samtools` 1.25 checked the synthetic fixture and a round trip written by this library. The comparison is described in `docs/compatibility.md`. CRAM, object storage, and the long-CIGAR `CG` tag are not implemented.
