Skip to content

0.5.0

Latest

Choose a tag to compare

@josbeir josbeir released this 08 Jan 11:21

🎉 Major Improvements

Simplified Object Serialization with brick/varexporter

  • Replaced native var_export() with brick/varexporter
  • Breaking Change: Objects no longer require __set_state() method
  • Object arguments now serialize automatically via reflection

Typed Event Classes

  • Introduced dedicated event classes with full type safety
  • Better IDE autocomplete and static analysis support
  • New event classes:
    • BeforeDiscoverEvent, AfterDiscoverEvent
    • BeforeScanEvent, AfterScanEvent
    • BeforeCacheClearEvent, AfterCacheClearEvent
  • Each event has a NAME constant and typed accessor methods

📦 Dependencies

  • Added: brick/varexporter: ^0.7.0

📝 Migration Guide

For existing users: No action required. The changes are backward compatible. If you have objects with __set_state() methods in attribute arguments, they will continue to work but the method is no longer necessary.