Skip to content

v2.1.4

Choose a tag to compare

@codebyray codebyray released this 21 Jul 18:20
· 3 commits to master since this release
e02c980

Laravel Review Rateable v2.1.4

This maintenance release improves data consistency, database compatibility, service isolation, and test coverage without changing the package’s public API or database schema.

Fixed

  • Correctly filter unapproved reviews in getReviewsByRating().
  • Run rating aggregate queries on the reviewable model’s database connection, improving support for tenant and non-default connections.
  • Wrap review and rating writes in transactions to prevent partially saved data.
  • Remove ratings that are no longer valid when a review changes departments.
  • Prevent mutable model state from leaking between resolved service instances.
  • Consistently cast review flags to booleans and rating values to integers.
  • Merge package configuration during service registration.

Maintenance

  • Added regression coverage for filtering, transactions, service bindings, model casts, department changes, and non-default database connections.
  • Added a GitHub Actions compatibility matrix covering Laravel 10, 11, 12, and 13.
  • Added cross-version PHPUnit configuration.
  • Corrected configuration keys, publishing commands, namespace examples, and formatting in the README.
  • Replaced the obsolete Travis CI configuration.

Compatibility

  • PHP 8.1 or later
  • Laravel 10, 11, 12, and 13
  • No database migrations are required when upgrading from v2.1.3.

Full Changelog: v2.1.3...v2.1.4