Skip to content

v1.7.0

Choose a tag to compare

@SoloPHP SoloPHP released this 03 Dec 11:42
· 35 commits to main since this release

Breaking Changes

  • Removed search criteria key (LIKE search on multiple fields)
  • Removed deleted criteria key with modes 'only', 'with', 'without'
  • Soft delete now works via direct deleted_at column condition:
    • Only non-deleted: ['deleted_at' => null] (default)
    • Only deleted: ['deleted_at' => ['!=', null]]
    • All records: ['deleted_at' => '*']

Removed

  • CriteriaBuilder: removed $deletedAtColumn constructor parameter, applySearchConditions(), applyDeletedCondition()
  • BaseRepository: removed getDeletedAtColumn()
  • RelationCriteriaApplier: removed splitCriteria()
  • SoftDeleteService: removed getDeletedAtColumn()

Improvements

  • CriteriaBuilder is now readonly
  • Added explicit IN/NOT IN operator support: ['status' => ['IN', ['a', 'b']]]
  • Extracted determineArrayParamType() to eliminate code duplication
  • Simplified pluckUnique/pluckIds using array_column
  • Simplified create() method

Infrastructure

  • Added phpunit.xml configuration
  • 100% test coverage (177 tests, 333 assertions)