Skip to content

upgrade version

Choose a tag to compare

@turahe turahe released this 09 Aug 04:11
· 22 commits to master since this release

Added

  • Comprehensive Test Suite: Complete test coverage for all 9 models (120+ test methods)
  • Model Factories: Full factory support for all models with proper ULID handling
  • Test Infrastructure: EmailAccountFactory, EmailAccountFolderFactory, EmailAccountMessageFactory, and more
  • Database Testing: Comprehensive CRUD operation tests for all models
  • Relationship Testing: Complete coverage of BelongsTo, HasMany, BelongsToMany, and MorphToMany relationships
  • Validation Testing: Model constraint and field validation test coverage
  • Scope Testing: Custom query scopes and model methods testing
  • GitHub Actions CI/CD pipeline
  • Static analysis with PHPStan
  • Code style checking with PHP CS Fixer
  • Security vulnerability scanning
  • PHAR building capability
  • Automatic release management
  • Packagist publishing automation
  • PHP 8.3 Features: Enhanced enums with methods and improved functionality
  • PHP 8.3 Features: New EmailAccountManager service with modern PHP patterns
  • PHP 8.3 Features: EmailAccountConfig DTO with readonly properties and constructor validation
  • PHP 8.3 Features: HasEmailAccountValidation trait with match expressions and improved validation

Changed

  • Model Improvements: Added HasFactory trait to all models requiring factory support
  • Type Safety: Fixed ULID string casting across all models (was incorrectly cast as int)
  • Database Schema: Aligned model casts with actual migration ULID structure
  • Factory Patterns: Implemented proper factory namespace resolution and relationship building
  • Enhanced composer.json with additional dev dependencies
  • Improved package description and documentation
  • Added composer scripts for development workflow
  • Updated license from proprietary to MIT
  • Updated CI/CD matrix to support only PHP 8.3 and 8.4
  • Updated CI/CD matrix to support only Laravel 11 and 12
  • Removed support for PHP 8.1 and 8.2
  • Removed support for Laravel 10
  • Enhanced Enums: Added methods to ConnectionType, SyncState, and EmailAccountType enums
  • Improved Type Safety: Better type declarations throughout the codebase
  • Modern PHP Patterns: Used match expressions, readonly properties, and constructor property promotion

Fixed

  • Foreign Key Constraints: Resolved all database constraint violations in tests
  • ULID Support: Added missing HasUlids trait to MessageLinksClick and EmailAccountMessageHeader models
  • Model Relationships: Added missing HasOne import to EmailAccountMessage model
  • External Dependencies: Added safety checks for external package class availability
  • Factory Issues: Fixed namespace resolution for custom factory locations
  • Test Patterns: Corrected test approaches for models without traditional primary keys
  • Polymorphic relationship handling in tests
  • Database migration compatibility issues
  • Factory implementations for test data
  • Box package name in CI configuration
  • Type Declaration Issues: Fixed property type redeclaration conflicts with Laravel Model class