Skip to content

v2.0.0

Latest

Choose a tag to compare

@tanhongit tanhongit released this 03 Mar 13:09
· 4 commits to main since this release

πŸš€ Major Release - PHP 8.4+ & Modern Architecture

✨ New Features

  • API Endpoint: New GenerateCommentAction to generate comment messages via REST API
  • Route Names: All routes now have named routes for better maintainability

πŸ”§ Improvements

  • PHP Version: Upgraded to PHP ^8.4
  • Strict Types: Added declare(strict_types=1) to all PHP files
  • Constructor Property Promotion: All classes use modern PHP 8.4 syntax with readonly
  • Strict Comparisons: All loose ==/!= replaced with strict ===/!==
  • Removed empty(): Replaced with explicit null/empty-string checks
  • Dependency Injection: Improved DI in ProcessAggregatedEvents job
  • Simplified ServiceProvider: Using mergeConfigFrom() instead of manual scandir loop

πŸ› Bug Fixes

  • Fixed ServiceProvider namespace (CSlant\GithubProject β†’ CSlant\GitHubProject)
  • Fixed double validatePayloadForComment() call in WebhookService
  • Fixed lang file copy-paste errors
  • Removed redundant Cache::forget() after Cache::pull()
  • Removed dead array_map identity function in aggregateMessages()

πŸ”’ Security

  • Removed stack trace/file/line leak in GenerateCommentAction error response

🧹 Code Cleanup

  • Removed empty registerCommands() method
  • Removed empty Constants/ and Http/ directories
  • Fixed provides() return type annotation
  • Cleaned up PHPStan baseline (removed overly broad wildcards)
  • Net: -133 lines removed

πŸ’₯ Breaking Changes

  • PHP ^8.4 now required
  • Namespace corrected from CSlant\GithubProject to CSlant\GitHubProject

πŸ“¦ Dependencies Updated

  • orchestra/testbench: ^10.0
  • pestphp/pest: ^4.0
  • nunomaduro/larastan: ^3.9
  • phpstan/phpstan: ^2.0

Full Changelog: v1.2.0...v2.0.0