|
| 1 | +# Changelog |
| 2 | + |
| 3 | +## [0.2.2] - 2026-02-11 |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +- Automatic API key discovery from `VISGATE_API_KEY` environment variable. |
| 8 | +- `max_retries` parameter with exponential backoff for transient errors (429, 5xx). |
| 9 | +- `replicate_key` and `runway_key` constructor parameters for BYOK mode. |
| 10 | +- `client.health()` method for API health checks. |
| 11 | +- `client.usage.logs()` and `client.usage.dashboard()` methods. |
| 12 | +- `ValidationError` for 422 responses with `.field` attribute. |
| 13 | +- `TimeoutError` and `ConnectionError` for network failures. |
| 14 | +- `py.typed` marker (PEP 561) for downstream type checking. |
| 15 | +- `CONTRIBUTING.md` for contributor guidelines. |
| 16 | +- CI workflow testing Python 3.9, 3.11, and 3.12. |
| 17 | +- 54 unit tests covering client, errors, data classes, and async. |
| 18 | + |
| 19 | +### Changed |
| 20 | + |
| 21 | +- `api_key` is now optional -- reads from environment if not provided. |
| 22 | +- `generate()` is a proper method on the client, not a callable resource. |
| 23 | +- Response handling is shared between sync and async clients (fixes async `ProviderError` bug). |
| 24 | +- All datetime fields use consistent parsing via `_utils.parse_datetime`. |
| 25 | +- All result types have `__repr__` for readable debugging output. |
| 26 | +- User-Agent changed to `visgate-sdk-python/{version}`. |
| 27 | +- `__version__` falls back gracefully when package is not installed. |
| 28 | +- Usage resource uses proper `params=` instead of manual query string. |
| 29 | +- PyPI publish uses trusted publisher (no token required). |
| 30 | + |
| 31 | +### Removed |
| 32 | + |
| 33 | +- `VisGate` alias (use `Client` directly). |
| 34 | +- Redundant `sdk-test-project/` and `istanbul_prompt_to_image.py` examples. |
| 35 | +- Stale `RELEASE.md`, `RELEASE_CHECKLIST.md`, `docs/SDK-WORKFLOW.md`. |
| 36 | + |
| 37 | +## [0.2.1] - 2026-02-10 |
| 38 | + |
| 39 | +### Changed |
| 40 | + |
| 41 | +- Initial standalone release on PyPI. |
| 42 | + |
| 43 | +## [0.2.0] - 2026-02-07 |
| 44 | + |
| 45 | +### Added |
| 46 | + |
| 47 | +- BYOK proxy layer, unified `/v1/generate` endpoint, megapixel pricing. |
0 commit comments