Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@ipranjal ipranjal released this 11 Oct 08:07
· 2 commits to main since this release

What's New ?

Features

  • Eager load modal reaction
  • toArray() and toString() now returns with loaded relations
  • Database factory to build container and Database class
  • refresh() function for model to sync its state if relational models are modified
  • Ability to store arrays and objects directly into database (this is done using serialisation)

Performance

  • Loaded relational models are not loaded again

Security and Stability

  • Using safe version of php function so that Exception is thrown instead of false value being return
  • Force setting of id now throws error
  • Foreign key constraints are applied when saving relational models
  • Unstable static functions are removed
  • Events class is removed as it was causing multiple side effect
  • Dependencies are now properly managed by containers

Testing and Code quality

  • Code now follows phpcs-fixer symfony code guideline
  • Minimised class complexity using traits
  • Code coverage now 100%
  • Passes <75% in mutation testing
  • Passes level 8 phpstan analysis

Full Changelog: v3.4.0...v4.0.0