Skip to content

Releases: spiks/user-input-processor

0.10.1

06 May 12:06
f81f52d
Compare
Choose a tag to compare

fix:
fix EnumerationDenormalizer return type

0.10.0

22 Apr 14:38
71d8ca0
Compare
Choose a tag to compare

New features:

New denormalizers:

  • DateTimeRangeDenormalizer.
  • TimeZoneDenormalizer
  • EnumerationDenormalizer
  • UniqueArrayDenormalizer

0.9.0

10 Mar 19:33
57d0c01
Compare
Choose a tag to compare

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::denormalizeStaticFields was renamed to ObjectDenormalizer::denormalize. The third argument now accepts array instead of ObjectStaticFields object. ObjectStaticFields class was removed.
  • Method ObjectDenormalizer::denormalizeDynamicFields was removed with ObjectDiscriminatorFields class. Constraint violation WrongDiscriminatorValue is removed too.
  • ConstraintViolationCollection was removed. It was replaced with an array of ConstraintViolationInterface everywhere.
  • Constant WrongPropertyType::JSON_TYPE_INTEGER was renamed to WrongPropertyType::JSON_TYPE_NUMBER. Its value was changed to number too.

Bug fixes:

  • Method WrongPropertyType::guessGivenType() now distinguishes between JSON arrays and JSON objects. Previously, it always reported both data types as WrongPropertyType::JSON_TYPE_ARRAY.
  • In rare cases WrongPropertyType::guessGivenType() could fail because it used variable with mixed type in concatenation when throwed exception.

0.8.0

01 Dec 11:46
8fd26d1
Compare
Choose a tag to compare
  • Method ConstraintViolationCollection::__toString() was renamed to ConstraintViolationCollection::toString() and marked as @internal.
  • Removed Stringable interface from ConstraintViolationCollection.
  • Added method Pointer::toString() and marked as @internal.

0.7.0

22 Nov 16:22
064a910
Compare
Choose a tag to compare

Moved project to SPIKS organisation:

  • Package name was changed from @flaksp/user-input-processor to @spiks/user-input-processor.
  • Package namespace was changed from Flaksp\UserInputProcessor\ to Spiks\UserInputProcessor\.

0.6.2

14 Nov 19:30
b05619a
Compare
Choose a tag to compare
Merge pull request #47 from flaksp/fix/is-indexed-array-function

0.6.1

25 Oct 16:19
8269d43
Compare
Choose a tag to compare

Small improvements for better static analysis.

0.6.0

16 Sep 16:14
4930c15
Compare
Choose a tag to compare

Breaking changes:

  • Remove $allowNumericString argument from IntegerDenormalizer and FloatDenormalizer.
  • Remove $isNullable argument from all denormalizers. Added $isNullable argument to ObjectField.

0.5.0

24 Jul 15:19
cf3c870
Compare
Choose a tag to compare

Add $allowNumericString argument to IntegerDenormalizer and FloatDenormalizer.

0.4.2

23 Jul 14:43
3dfd449
Compare
Choose a tag to compare

Allow int type in FloatDenormalizer.