2025-12-11 13:37:40 +00:00
|
|
|
### Changelog
|
|
|
|
|
|
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
|
2026-01-06 19:01:31 +00:00
|
|
|
#### [0.1.0] - 2026-01-06
|
2025-12-11 13:37:40 +00:00
|
|
|
|
2026-01-06 19:01:31 +00:00
|
|
|
##### Added
|
|
|
|
|
- **Caching Layer**: Integrated PSR-16 (Simple Cache) support into `AbstractDao` and `AbstractMongoDao`.
|
|
|
|
|
- Automated cache invalidation on write operations.
|
|
|
|
|
- Identity Map synchronization for cached objects.
|
|
|
|
|
- Customizable TTL and prefix per DAO.
|
|
|
|
|
- **CLI Enhancements**:
|
|
|
|
|
- Extracted CLI logic into dedicated Command classes in `Pairity\Console`.
|
|
|
|
|
- Added `--pretend` flag to `migrate`, `rollback`, and `reset` commands for dry-run support.
|
|
|
|
|
- Added `--template` flag to `make:migration` for custom migration boilerplate.
|
|
|
|
|
- **MongoDB Refinements**:
|
|
|
|
|
- Production-ready `MongoClientConnection` wrapping `mongodb/mongodb` ^2.0.
|
|
|
|
|
- Integrated caching into `AbstractMongoDao`.
|
|
|
|
|
- Improved `_id` normalization and BSON type handling.
|
|
|
|
|
- **Improved Testing**: Added `PretendTest`, `MigrationGeneratorTest`, and `CachingTest`.
|
2025-12-11 17:38:20 +00:00
|
|
|
|
2026-01-06 19:01:31 +00:00
|
|
|
##### Changed
|
|
|
|
|
- Updated `AbstractDto` to support `\Serializable` and PHP 8.1+ `__serialize()`/`__unserialize()` for better cache persistence.
|
|
|
|
|
- Refactored `bin/pairity` to use the new Console Command structure.
|
2025-12-11 17:38:20 +00:00
|
|
|
|
2026-01-06 19:01:31 +00:00
|
|
|
#### [0.0.1] - 2025-12-11
|
|
|
|
|
- Initial development version with core ORM, Relations, Migrations, and basic MongoDB support.
|