Releases: spiks/user-input-processor
Releases · spiks/user-input-processor
0.10.1
0.10.0
New features:
New denormalizers:
- DateTimeRangeDenormalizer.
- TimeZoneDenormalizer
- EnumerationDenormalizer
- UniqueArrayDenormalizer
0.9.0
New features:
- New denormalizer:
ObjectPropertyDenormalizer(it's experimental API!). - Internal and external APIs are fully covered with Psalm and PHPStan types.
Breaking changes:
- Minimum supported version of PHP is 8.1 now.
- Method
ObjectDenormalizer::denormalizeStaticFieldswas renamed toObjectDenormalizer::denormalize. The third argument now accepts array instead ofObjectStaticFieldsobject.ObjectStaticFieldsclass was removed. - Method
ObjectDenormalizer::denormalizeDynamicFieldswas removed withObjectDiscriminatorFieldsclass. Constraint violationWrongDiscriminatorValueis removed too. ConstraintViolationCollectionwas removed. It was replaced with an array ofConstraintViolationInterfaceeverywhere.- Constant
WrongPropertyType::JSON_TYPE_INTEGERwas renamed toWrongPropertyType::JSON_TYPE_NUMBER. Its value was changed tonumbertoo.
Bug fixes:
- Method
WrongPropertyType::guessGivenType()now distinguishes between JSON arrays and JSON objects. Previously, it always reported both data types asWrongPropertyType::JSON_TYPE_ARRAY. - In rare cases
WrongPropertyType::guessGivenType()could fail because it used variable withmixedtype in concatenation when throwed exception.
0.8.0
0.7.0
0.6.2
Merge pull request #47 from flaksp/fix/is-indexed-array-function
0.6.1
0.6.0
0.5.0
0.4.2
Allow int type in FloatDenormalizer.