[0.1.2] - 2026-05-19
Fixed
- API paths corrected from plural to singular:
/offices→/office,/companies→/company,/persons→/person. All previous versions returned 404 on these endpoints when called against the real CNPJá API.
[0.1.1] - 2026-05-19
Added
Cnpja.CompanyRef— lightweight company reference embedded inOfficeandRfbto avoid circular parsingCnpja.SizeLabel— company size struct withid,acronym, andtextfields (distinct fromLabel)Cnpja.PersonMembershipandCnpja.PersonMembershipCompany— typed person membership recordsstatus_date,reason,special_date,specialfields onCnpja.OfficeandCnpja.Rfbname,equity,nature,size,jurisdictionfields onCnpja.Rfbjurisdictionfield onCnpja.Companyperformedfield onCnpja.Activity- Full
Cnpja.Suframarewrite:since,head,approved(boolean),approval_date,address,phones,emails,incentives - Address parsing accepts both
"zip"and"code"field names - Extended
@camel_mapcovering all search, image, and certificate query parameters
Improved
- Test suite expanded to 74 tests with 98.3% line coverage
- Network error path and plain-text error body now tested
[0.1.0] - 2026-05-19
Added
- Full coverage of all 17 CNPJá API endpoints
- Typed structs for all API responses (
Cnpja.Office,Cnpja.Company,Cnpja.Zip, etc.) - Tagged tuple error handling —
{:ok, struct}/{:error, %Cnpja.Error{}} - Support for configuration via
config.exsand per-callapi_key:option - Bypass-based integration tests for all endpoints
- ExDoc documentation published on HexDocs