Skip to content

Releases: karriereat/json-decoder

v5.0.0

01 Mar 09:49
20583a8
Compare
Choose a tag to compare

Added

  • Support for PHP 8.2.
  • Support for typed properties (in addition to the annotated properties)
  • [BREAKING] Type hints and return types

Changed

  • [BREAKING] Constructor order of Bindings
  • [BREAKING] Argument order of transform and transferRaw in JsonDecoder
  • Set dynamic properties only if AllowDynamicProperties attribute is set (on PHP 8.2. and greater)
  • Linting to pint
  • Unit tests to pest

Removed

  • Support for PHP 7.4.

For further information you can also take a look at the UPGRADE.md.

v4.2.0

11 Nov 10:38
Compare
Choose a tag to compare

Added

  • Support for using array-keys in ArrayBinding (#52, #55)

v4.1.1

17 Jan 13:27
Compare
Choose a tag to compare

Fixed

  • Avoid IDE warnings when passing Closure to CallbackBinding (#47, #43)

v4.1.0

02 Nov 06:52
93b5ed6
Compare
Choose a tag to compare

Added

  • Support for PHP 8

v4.0.3

30 Nov 07:02
Compare
Choose a tag to compare

Fixed

  • Too strict param type in transform method

v4.0.2

15 Oct 12:27
bb0cc38
Compare
Choose a tag to compare

Fixed

  • Another issue where CallbackBinding wasn't handled.

v4.0.1

15 Oct 08:00
8c115df
Compare
Choose a tag to compare

Fixed

  • Still handle CallbackBinding when property name doesn't match a JSON fieldname.

v4.0.0

06 Oct 07:30
3e7d354
Compare
Choose a tag to compare

Added

  • support for magic class properties
  • auto casing for json field - class properties mapping
  • PHP CS Fixer for linting and fixing code style

Changed

  • unit tests to phpunit

Removed

  • support for PHP 7.2

v3.1.0

10 Apr 19:07
Compare
Choose a tag to compare

Added

  • DateTimeBinding for parsing date string

v3.0.0

25 Mar 08:25
Compare
Choose a tag to compare

Changed

  • Update dependencies to be compatible with PHP 7.4
  • Switch to PSR-12 linting

Removed

  • Support for PHP 7.0 and 7.1