|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to LatteSplash will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [1.0.0] - 2024-01-01 |
| 9 | + |
| 10 | +### Added |
| 11 | + |
| 12 | +- Initial release of LatteSplash Java library |
| 13 | +- Complete port of wrapsplash npm module (v5.0.0) |
| 14 | +- Support for all 34 Unsplash API endpoints |
| 15 | +- Synchronous and asynchronous (`CompletableFuture`) API variants |
| 16 | +- Builder pattern configuration (`LatteSplashConfig.Builder`) |
| 17 | +- OkHttp-based HTTP client with retry support |
| 18 | +- JSON serialization/deserialization using Gson |
| 19 | +- SLF4J logging integration |
| 20 | +- Bearer token and Client-ID authentication |
| 21 | +- Input validation for all API methods |
| 22 | +- SHA-256 header hashing for security |
| 23 | +- Configurable timeout and retry settings |
| 24 | +- Automatic retry with configurable delay |
| 25 | +- Error normalization with `LatteSplashError` exception |
| 26 | +- 204 Content Deleted handling |
| 27 | +- 403 Rate Limit handling |
| 28 | +- Comprehensive JUnit 5 test suite (95 tests) |
| 29 | +- Full Javadoc documentation |
| 30 | +- Maven and Gradle dependency support |
| 31 | +- GitHub Actions CI/CD workflow |
| 32 | +- GitHub Packages publishing workflow |
| 33 | + |
| 34 | +### Features |
| 35 | + |
| 36 | +- **Users API**: Get user profiles, photos, likes, collections, statistics |
| 37 | +- **Photos API**: List, get, update, like, unlike photos; get statistics and download links |
| 38 | +- **Search API**: Search photos, collections, and users |
| 39 | +- **Collections API**: Full CRUD operations for collections |
| 40 | +- **Current User API**: Get and update current user profile |
| 41 | +- **Stats API**: Get platform statistics totals and monthly stats |
| 42 | + |
| 43 | +### Authentication |
| 44 | + |
| 45 | +- Bearer token authentication |
| 46 | +- Client-ID authentication |
| 47 | +- OAuth2 support with bearer token generation |
| 48 | + |
| 49 | +### Configuration |
| 50 | + |
| 51 | +- Builder pattern for immutable configuration |
| 52 | +- Configurable timeout (default: 10000ms) |
| 53 | +- Configurable retry count (default: 2) |
| 54 | +- Configurable retry delay (default: 100ms) |
| 55 | + |
| 56 | +### Error Handling |
| 57 | + |
| 58 | +- Checked exception model (`LatteSplashError`) |
| 59 | +- Automatic error normalization |
| 60 | +- Rate limit detection and handling |
| 61 | +- Content deletion (204) handling |
| 62 | + |
| 63 | +### Testing |
| 64 | + |
| 65 | +- Unit tests for all API classes |
| 66 | +- Integration tests with MockHttpClient |
| 67 | +- Validation tests for input parameters |
| 68 | +- Async operation tests |
| 69 | +- Error handling tests |
| 70 | +- SHA-256 hashing tests |
| 71 | + |
| 72 | +### Documentation |
| 73 | + |
| 74 | +- Comprehensive README with usage examples |
| 75 | +- Full Javadoc for all public APIs |
| 76 | +- API reference documentation |
| 77 | +- Contributing guidelines |
| 78 | +- Code of conduct |
| 79 | +- Security policy |
| 80 | +- Changelog |
| 81 | + |
| 82 | +## [Unreleased] |
| 83 | + |
| 84 | +### Planned |
| 85 | + |
| 86 | +- Maven Central publishing |
| 87 | +- Additional logging adapters |
| 88 | +- Connection pooling optimization |
| 89 | +- Retry-after header support |
| 90 | +- Rate limit headers parsing |
| 91 | + |
| 92 | +--- |
| 93 | + |
| 94 | +## Versioning |
| 95 | + |
| 96 | +- **Major**: Breaking changes to public API |
| 97 | +- **Minor**: New features, backward compatible |
| 98 | +- **Patch**: Bug fixes, backward compatible |
| 99 | + |
| 100 | +## Support |
| 101 | + |
| 102 | +- Java 11+ required |
| 103 | +- GitHub Issues: https://github.com/SandeepVattapparambil/lattesplash-java/issues |
0 commit comments