|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [Unreleased] |
| 9 | + |
| 10 | +## [2.0.8] - 2025-02-01 |
| 11 | + |
| 12 | +### Added |
| 13 | +- `decrypt_data_blob_async()` method for non-blocking decryption in async contexts |
| 14 | +- Exported `Location`, `PhotoResult`, and `RateLimitError` from package root |
| 15 | +- `CHANGELOG.md` following Keep a Changelog format |
| 16 | +- Comprehensive exception documentation (Raises sections) for all public API methods |
| 17 | + |
| 18 | +### Changed |
| 19 | +- Improved lock message sanitization to re-collapse whitespace after removing special characters |
| 20 | +- Simplified `get_history()` signature by removing unused `start`/`end` parameters |
| 21 | +- Improved docstrings for helpers.py functions |
| 22 | + |
| 23 | +### Removed |
| 24 | +- Dead code: `_parse_location_blob()` function that was never called |
| 25 | +- Placeholder comment from helpers.py |
| 26 | + |
| 27 | +### Fixed |
| 28 | +- Lock messages containing only special characters now correctly fall back to plain "lock" command |
| 29 | + |
| 30 | +## [2.0.7] - 2025-01-15 |
| 31 | + |
| 32 | +### Changed |
| 33 | +- Cleanup release to trigger new PyPI deployment |
| 34 | +- No functional changes from 2.0.6 |
| 35 | + |
| 36 | +## [2.0.6] - 2025-01-10 |
| 37 | + |
| 38 | +### Added |
| 39 | +- 100% test coverage achieved |
| 40 | + |
| 41 | +### Changed |
| 42 | +- Full type safety with strict mypy checks |
| 43 | +- Improved method signatures with precise return types |
| 44 | + |
| 45 | +## [2.0.5] - 2025-01-08 |
| 46 | + |
| 47 | +### Added |
| 48 | +- Strict typing enforcement (Phase 1) |
| 49 | +- Comprehensive edge case tests for `Location` parsing |
| 50 | +- `docs/strict_typing_enforcement_plan.md` roadmap |
| 51 | + |
| 52 | +### Changed |
| 53 | +- Updated community instance URL to https://server.fmd-foss.org/ |
| 54 | + |
| 55 | +## [2.0.4] - 2024-11-09 |
| 56 | + |
| 57 | +### Added |
| 58 | +- Password-free authentication via `export_auth_artifacts()` and `from_auth_artifacts()` |
| 59 | +- `drop_password=True` option to discard raw password after onboarding |
| 60 | +- `Device.get_picture_blobs()` and `Device.decode_picture()` methods |
| 61 | +- `Device.lock(message=...)` with sanitization (quotes, backticks, semicolons removed) |
| 62 | +- Wipe PIN validation (alphanumeric ASCII only, no spaces) |
| 63 | +- PNG detection via magic bytes in `export_data_zip()` |
| 64 | + |
| 65 | +### Changed |
| 66 | +- 401 handling now supports hash-based token refresh |
| 67 | +- Private key loading supports both PEM and DER formats |
| 68 | +- Test coverage increased to ~98% |
| 69 | + |
| 70 | +### Deprecated |
| 71 | +- `Device.take_front_photo()` - use `take_front_picture()` |
| 72 | +- `Device.take_rear_photo()` - use `take_rear_picture()` |
| 73 | +- `Device.fetch_pictures()` - use `get_picture_blobs()` |
| 74 | +- `Device.download_photo()` - use `decode_picture()` |
| 75 | + |
| 76 | +## [2.0.0] - 2024-10-01 |
| 77 | + |
| 78 | +### Added |
| 79 | +- Async client with `FmdClient.create()` factory method |
| 80 | +- Async context manager support (`async with`) |
| 81 | +- HTTPS enforcement (plain HTTP rejected) |
| 82 | +- Configurable SSL validation (`ssl=False` for dev, custom `SSLContext` for production) |
| 83 | +- Request timeouts on all HTTP calls |
| 84 | +- Retry logic with exponential backoff and jitter for 5xx errors |
| 85 | +- 429 rate-limit handling with Retry-After support |
| 86 | +- Client-side ZIP export (locations + pictures) |
| 87 | +- `Device` helper class for convenience actions |
| 88 | +- `py.typed` marker for PEP 561 compliance |
| 89 | +- GitHub Actions CI (lint, type-check, tests, coverage) |
| 90 | +- Codecov integration with badges |
| 91 | + |
| 92 | +### Changed |
| 93 | +- Complete rewrite from sync to async API |
| 94 | +- Python 3.8+ required (3.7 dropped) |
| 95 | + |
| 96 | +### Removed |
| 97 | +- Legacy synchronous `FmdApi` class |
| 98 | + |
| 99 | +### Security |
| 100 | +- Sanitized logging (no sensitive payloads exposed) |
| 101 | +- Token masking in debug output |
| 102 | + |
| 103 | +## [1.x] - Legacy |
| 104 | + |
| 105 | +Previous synchronous implementation. See git history for details. |
| 106 | + |
| 107 | +[Unreleased]: https://github.com/devinslick/fmd_api/compare/v2.0.8...HEAD |
| 108 | +[2.0.8]: https://github.com/devinslick/fmd_api/compare/v2.0.7...v2.0.8 |
| 109 | +[2.0.7]: https://github.com/devinslick/fmd_api/compare/v2.0.6...v2.0.7 |
| 110 | +[2.0.6]: https://github.com/devinslick/fmd_api/compare/v2.0.5...v2.0.6 |
| 111 | +[2.0.5]: https://github.com/devinslick/fmd_api/compare/v2.0.4...v2.0.5 |
| 112 | +[2.0.4]: https://github.com/devinslick/fmd_api/compare/v2.0.0...v2.0.4 |
| 113 | +[2.0.0]: https://github.com/devinslick/fmd_api/releases/tag/v2.0.0 |
0 commit comments