Releases: tiny-blocks/mapper
Releases · tiny-blocks/mapper
v2.0.1
- Fixed mapping for
Traversableobjects inIterableExtractor, ensuring thatiterator_to_arrayis correctly applied directly to the object when it implementsTraversable, preserving the keys and structure defined bygetIterator()instead of falling back to reflection-based property extraction.
v2.0.0
- Implement
fromIterable()for bidirectional object-array mapping. - Support private constructors via reflection-based instantiation.
- Automatic type casting with extensible
CasterHandlerarchitecture. - Recursive mapping for nested objects and collections.
- Extracted
MappabilityBehaviortrait to eliminate code duplication betweenObjectMappabilityandIterableMappability
toJson()andtoArray()implementations now shared via composition. - Improved architecture, enhanced caster layer with
instanceofguards to prevent unnecessary object reconstruction, centralized reflection logic, and eliminated code duplication across mapping strategies.
v1.4.0
- Upgraded minimum PHP requirement from 8.3 to 8.5 and updated Docker image accordingly.
- Refactored CI workflow to use artifact caching and added a help system to the Makefile.
v1.3.0
- Updates project dependencies and GitHub Actions workflows.
v1.2.0
- Updates project dependencies and GitHub Actions workflows.
v1.1.1
- Fixes
composer.json.
v1.1.0
- Fixes
composer.json.
v1.0.5
- Fixes mapping of iterables to objects using the fromIterable method.
v1.0.4
- Fixes
composer.jsonand adds tests for collection mapping.
v1.0.3
- Fixes
Collectionto array mapping.