Releases: php-collective/dto
Releases · php-collective/dto
0.1.12
Improvements
- Add validation rules support (minLength, maxLength, min, max, pattern) for field constraints - #78
- Add lazy properties to defer DTO/collection hydration until first getter access - #78
- Add readonly properties support for language-level immutability - #78
- Add validationRules() method returning framework-agnostic rules for plugin integration - #79
Full Changelog: 0.1.11...0.1.12
0.1.11
Improvements
- Add serialize/unserialize convenience methods and fix associative collection keys - #75
- Fix optimizations template to use collection adapter for append - #76
Full Changelog: 0.1.10...0.1.11
0.1.10
Improvements
- Add serialize/unserialize convenience methods and fix associative collection keys - #74
Full Changelog: 0.1.9...0.1.10
0.1.9
New Features
- Add external file
$refsupport to schema importer (#66) - Add collection remove methods (
withRemovedItem) (#64) - Add field transforms (
transformFrom/transformTo) for DTOs (#65) - Add
JsonSerializablesupport (#63)
Bug Fixes
- Fix immutable array copy -
with*methods now perform defensive copying (#69) - Fix collection key field silent fallback - now throws exception when key missing (#69)
- Fix XML injection in importer schema builder (#68)
Improvements
- Clarify enum handling in importer docs (#67)
Internal
- Benchmark improvements for nested external refs (#62)
Cleanup
- Removed deprecated Serializable interface support in favor of above JsonSerializable (#71)
Full Changelog: 0.1.8...0.1.9
0.1.8
0.1.7
0.1.6
Fixes
- Fix bugs found in deep dive code review - #46
Improvements
- Add $ref resolution support to JSON Schema importer - #42
- Add OpenAPI 3.x document support to Schema Importer - #43
- Add format specifier support to Schema Importer - #44
- Add allOf composition support for schema inheritance - #45
Full Changelog: 0.1.5...0.1.6
0.1.5
Improvements
- Refactor Builder.php and improve error messages
- Add JSON Schema export feature
Full Changelog: 0.1.4...0.1.5
0.1.4
Fixes
- Fix default value rendering in generated DTOs - #25
Improvements
- Add Doctrine-compatible mapper generation - #26
Full Changelog: 0.1.3...0.1.4
0.1.3
Fixes
- Fix fast path to be used only for ignoreMissing case
- Use specific key type for associative collection methods - #20
- Fix nullable singular types in docBlockType annotations - #21
- Include parent fields in child DTO arrayShape for LSP covariance - #22
Full Changelog: 0.1.2...0.1.3