|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to the IPTU API PHP SDK 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 | +## [2.1.2] - 2026-01-24 |
| 9 | + |
| 10 | +### Fixed |
| 11 | +- Added explicit `version` field to composer.json for proper Packagist versioning |
| 12 | +- Added `autoload-dev` section for test classes |
| 13 | +- Updated package description to include all supported cities |
| 14 | + |
| 15 | +### Changed |
| 16 | +- Updated `VERSION` constant to `2.1.2` |
| 17 | + |
| 18 | +## [2.1.0] - 2025-12-15 |
| 19 | + |
| 20 | +### Added |
| 21 | +- Per-request timeout parameter for all public methods |
| 22 | +- IPTU Tools endpoints for 2026 calendar data |
| 23 | + - `iptuToolsCidades()` - List cities with IPTU calendar |
| 24 | + - `iptuToolsCalendario()` - Get IPTU calendar for a city |
| 25 | + - `iptuToolsSimulador()` - Simulate payment options |
| 26 | + - `iptuToolsIsencao()` - Check exemption eligibility |
| 27 | + - `iptuToolsProximoVencimento()` - Get next due date info |
| 28 | +- Brasilia city support |
| 29 | + |
| 30 | +### Changed |
| 31 | +- All methods now accept optional `?int $timeout` parameter to override default config timeout |
| 32 | +- Updated `VERSION` constant to `2.1.0` |
| 33 | + |
| 34 | +### Example |
| 35 | +```php |
| 36 | +// Timeout específico para operações lentas |
| 37 | +$result = $client->valuationBatch($imoveis, timeout: 120); |
| 38 | + |
| 39 | +// Via options array |
| 40 | +$result = $client->consultaEndereco("Avenida Paulista", "1000", "sp", [ |
| 41 | + 'incluirHistorico' => true, |
| 42 | + 'timeout' => 60 |
| 43 | +]); |
| 44 | +``` |
| 45 | + |
| 46 | +## [2.0.0] - 2025-11-01 |
| 47 | + |
| 48 | +### Added |
| 49 | +- Complete SDK rewrite with PHP 8.1+ features |
| 50 | +- `declare(strict_types=1)` for type safety |
| 51 | +- PSR-3 logging support via `LoggerInterface` |
| 52 | +- Exception hierarchy under `IPTUAPI\Exception` namespace |
| 53 | + - `IPTUAPIException` (base) |
| 54 | + - `AuthenticationException`, `ForbiddenException`, `NotFoundException` |
| 55 | + - `RateLimitException`, `ValidationException`, `ServerException` |
| 56 | + - `TimeoutException`, `NetworkException` |
| 57 | +- `isRetryable()` method on all exceptions |
| 58 | +- `toArray()` method for exception serialization |
| 59 | +- Configurable retry with exponential backoff via `RetryConfig` |
| 60 | +- Rate limit tracking via `getRateLimit()` and `getLastRequestId()` |
| 61 | +- `ClientConfig` for centralized configuration |
| 62 | +- Valuation endpoints (Pro+): `valuationEstimate()`, `valuationBatch()`, `valuationComparables()` |
| 63 | +- Data endpoints: `dadosIPTUHistorico()`, `dadosCNPJ()`, `dadosIPCACorrigir()` |
| 64 | + |
| 65 | +### Changed |
| 66 | +- Minimum PHP version: 8.1 |
| 67 | +- Client initialization: `new IPTUClient($apiKey, $config)` |
| 68 | +- All methods use named arguments (PHP 8.0+) |
| 69 | + |
| 70 | +### Removed |
| 71 | +- PHP 7.x support |
| 72 | +- Legacy array-based error handling |
| 73 | + |
| 74 | +## [1.0.0] - 2025-09-01 |
| 75 | + |
| 76 | +### Added |
| 77 | +- Initial release |
| 78 | +- Basic consultation methods: `consultaEndereco()`, `consultaSQL()`, `consultaCEP()` |
| 79 | +- Zoning query: `consultaZoneamento()` |
| 80 | +- Support for multiple cities (SP, BH, Recife, POA, Fortaleza, Curitiba, RJ) |
0 commit comments