Skip to content

Release 1.10

Choose a tag to compare

@igorpocta igorpocta released this 09 Apr 08:13
· 60 commits to main since this release

Features

  • DateTime range validators — new DateTimeGreaterThan, DateTimeLessThan and DateTimeRange validation attributes
  • Null values in normalization — null values are now included in normalization output by default
  • DateTime output format — outputFormat parameter on MapDateTimeProperty for custom DateTime serialization
  • Validator resolver — validatorResolver parameter on Mapper constructor for custom validator instantiation
  • Uninitialized property validation — properties with assert attributes are now validated even when uninitialized

Bug Fixes

  • Reject silently corrected dates in DateTimeType (e.g. 2024-02-30 no longer silently becomes 2024-03-01)
  • Restore pathPrefix correctly in ObjectType and ArrayType instead of resetting to empty string
  • Validate missing required non-constructor properties without MapProperty
  • Propagate nested object denormalization errors correctly
  • Remove deprecated ReflectionProperty::setAccessible() calls

Maintenance

  • Add PHP 8.4 and 8.5 to CI test matrix