Skip to content

Releases: php-collective/dto

0.1.12

09 Feb 02:52
df6b7db

Choose a tag to compare

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

07 Feb 13:04
4496cdb

Choose a tag to compare

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

07 Feb 09:18
a5da0d0

Choose a tag to compare

Improvements

  • Add serialize/unserialize convenience methods and fix associative collection keys - #74

Full Changelog: 0.1.9...0.1.10

0.1.9

06 Feb 14:06
471b2bb

Choose a tag to compare

New Features

  • Add external file $ref support to schema importer (#66)
  • Add collection remove methods (withRemovedItem) (#64)
  • Add field transforms (transformFrom/transformTo) for DTOs (#65)
  • Add JsonSerializable support (#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

01 Feb 07:56
598b5c6

Choose a tag to compare

Improvements

  • Improved DTO from and to paths by multiple factors

Full Changelog: 0.1.7...0.1.8

0.1.7

21 Jan 16:49
7616455

Choose a tag to compare

Improvements

  • Add security tests and fix recursion depth propagation - #47
  • Mark Serializable interface methods as deprecated - #49
  • Allow underscore-prefixed field names - #51
  • Collection adapter pattern for framework-specific collections - #55

Full Changelog: 0.1.6...0.1.7

0.1.6

17 Jan 04:39
df0fb61

Choose a tag to compare

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

16 Dec 22:28
7dd25a7

Choose a tag to compare

Improvements

  • Refactor Builder.php and improve error messages
  • Add JSON Schema export feature

Full Changelog: 0.1.4...0.1.5

0.1.4

16 Dec 00:22
c086285

Choose a tag to compare

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

15 Dec 13:46
8b4daab

Choose a tag to compare

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