Skip to content

Releases: EventSaucePHP/ObjectHydrator

1.0.0

01 Nov 08:26
3198a0b
Compare
Choose a tag to compare
Prep for 1.0 release

0.5.0

08 Aug 19:17
Compare
Choose a tag to compare

Full Changelog: 0.4.3...0.5.0

0.4.3

08 Aug 19:14
Compare
Choose a tag to compare

What's Changed

  • Type Error when try to hydrate a nullable DateTime(Immutable) Object by @sleipi in #23

New Contributors

Full Changelog: 0.4.2...0.4.3

0.4.2

08 Aug 19:13
Compare
Choose a tag to compare

Full Changelog: 0.4.1...0.4.2

0.4.1

08 Jun 12:29
Compare
Choose a tag to compare

What's Changed

  • Add additional CastToDateTimeImmutable attribute argument timezone (optional) by @jmatthiesen81 in #21

New Contributors

Full Changelog: 0.4.0...0.4.1

0.4.0

05 Jun 13:45
Compare
Choose a tag to compare

What's Changed

Added

  • The ObjectMapper interface was introduced, which represents both generated and reflection based mappers.
  • [Major Feature] Serialization was added to the main ObjectHydrator interface.
  • Array hydration now also has rudimentary support for docblock type hints (@param Type[] $name, @param array<Type> $name, @param array<string, Type> $name).

Deprecations

  • The ObjectHydrator class was deprecated, use ObjectMapperUsingReflection and hint against the new ObjectMapper interface.
  • The ListOfObjects class was deprecated, use the IterableList object instead.
  • The KeyFormattingWithoutConversion class was deprecated, use the KeyFormatterWithoutConversion class instead.

Breaking Changes

  • The ObjectHydrator class was converted into an interface named ObjectMapper, the main implementation is ObjectMapperUsingReflection.
  • The PropertyDefintion class was renamed to PropertyHydrationDefinition to be symmetrical with the new PropertySerializationDefinition.
  • The DefinitionProvider::provideDefinition method was deprecated in favour of the new provideHydrationDefinition for symmetry with provideSerializationDefinition.
  • The KeyFormatter interface was changed by adding a keyToPropertyName method, needed for serialization.
  • The ObjectHydrator::hydrateObjects return type class was renamed from ListOfObjects to IterableList.

Full Changelog: 0.3.1...0.4.0

0.3.1

28 May 13:04
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.3.0...0.3.1

0.3.0

28 May 13:04
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.0...0.3.0

0.2.0

01 Apr 11:47
bee0b2d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.1.0...0.2.0

0.1.0

03 Jan 21:47
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/commits/0.1.0