|
2 | 2 |
|
3 | 3 | Here you can see the full list of changes between each GitHub Project PHP package release. |
4 | 4 |
|
| 5 | +## v2.0.0 - 2026-03-03 |
| 6 | + |
| 7 | +### 🚀 Major Release - PHP 8.4+ & Modern Architecture |
| 8 | + |
| 9 | +### ✨ New Features |
| 10 | + |
| 11 | +- **API Endpoint**: New `GenerateCommentAction` to generate comment messages via REST API |
| 12 | +- **Route Names**: All routes now have named routes for better maintainability |
| 13 | + |
| 14 | +### 🔧 Improvements |
| 15 | + |
| 16 | +- **PHP Version**: Upgraded to PHP ^8.4 |
| 17 | +- **Strict Types**: Added `declare(strict_types=1)` to all PHP files |
| 18 | +- **Constructor Property Promotion**: All classes use modern PHP 8.4 syntax with `readonly` |
| 19 | +- **Strict Comparisons**: All loose `==`/`!=` replaced with strict `===`/`!==` |
| 20 | +- **Removed `empty()`**: Replaced with explicit null/empty-string checks |
| 21 | +- **Dependency Injection**: Improved DI in `ProcessAggregatedEvents` job |
| 22 | +- **Simplified ServiceProvider**: Using `mergeConfigFrom()` instead of manual scandir loop |
| 23 | + |
| 24 | +### 🐛 Bug Fixes |
| 25 | + |
| 26 | +- Fixed ServiceProvider namespace (`CSlant\GithubProject` → `CSlant\GitHubProject`) |
| 27 | +- Fixed double `validatePayloadForComment()` call in `WebhookService` |
| 28 | +- Fixed lang file copy-paste errors |
| 29 | +- Removed redundant `Cache::forget()` after `Cache::pull()` |
| 30 | +- Removed dead `array_map` identity function in `aggregateMessages()` |
| 31 | + |
| 32 | +### 🔒 Security |
| 33 | + |
| 34 | +- Removed stack trace/file/line leak in `GenerateCommentAction` error response |
| 35 | + |
| 36 | +### 🧹 Code Cleanup |
| 37 | + |
| 38 | +- Removed empty `registerCommands()` method |
| 39 | +- Removed empty `Constants/` and `Http/` directories |
| 40 | +- Fixed `provides()` return type annotation |
| 41 | +- Cleaned up PHPStan baseline (removed overly broad wildcards) |
| 42 | +- Net: -133 lines removed |
| 43 | + |
| 44 | +### 💥 Breaking Changes |
| 45 | + |
| 46 | +- PHP `^8.4` now required |
| 47 | +- Namespace corrected from `CSlant\GithubProject` to `CSlant\GitHubProject` |
| 48 | + |
| 49 | +### 📦 Dependencies Updated |
| 50 | + |
| 51 | +- `orchestra/testbench`: ^10.0 |
| 52 | +- `pestphp/pest`: ^4.0 |
| 53 | +- `nunomaduro/larastan`: ^3.9 |
| 54 | +- `phpstan/phpstan`: ^2.0 |
| 55 | + |
| 56 | +**Full Changelog**: https://github.com/cslant/github-project-php/compare/v1.2.0...v2.0.0 |
| 57 | + |
5 | 58 | ## v1.2.0 - 2025-07-06 |
6 | 59 |
|
7 | 60 | ### What's Changed |
|
0 commit comments