Releases: EventSaucePHP/ObjectHydrator
Releases · EventSaucePHP/ObjectHydrator
1.0.0
0.5.0
Full Changelog: 0.4.3...0.5.0
0.4.3
0.4.2
Full Changelog: 0.4.1...0.4.2
0.4.1
What's Changed
- Add additional CastToDateTimeImmutable attribute argument timezone (optional) by @jmatthiesen81 in #21
New Contributors
- @jmatthiesen81 made their first contribution in #21
Full Changelog: 0.4.0...0.4.1
0.4.0
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, useObjectMapperUsingReflection
and hint against the newObjectMapper
interface. - The
ListOfObjects
class was deprecated, use theIterableList
object instead. - The
KeyFormattingWithoutConversion
class was deprecated, use theKeyFormatterWithoutConversion
class instead.
Breaking Changes
- The
ObjectHydrator
class was converted into an interface namedObjectMapper
, the main implementation isObjectMapperUsingReflection
. - The
PropertyDefintion
class was renamed toPropertyHydrationDefinition
to be symmetrical with the newPropertySerializationDefinition
. - The
DefinitionProvider::provideDefinition
method was deprecated in favour of the newprovideHydrationDefinition
for symmetry withprovideSerializationDefinition
. - The
KeyFormatter
interface was changed by adding akeyToPropertyName
method, needed for serialization. - The
ObjectHydrator::hydrateObjects
return type class was renamed fromListOfObjects
toIterableList
.
Full Changelog: 0.3.1...0.4.0
0.3.1
What's Changed
- Add @template info to functions using class-string. by @zobo in #13
- Added the ability to specify default key conversion strategy by @frankdejonge in #14
- Fix example code in the readme by @jdreesen in #16
New Contributors
Full Changelog: 0.3.0...0.3.1
0.3.0
What's Changed
- [FEATURE] Added ability to define nested input by @frankdejonge in #12
Full Changelog: 0.2.0...0.3.0
0.2.0
What's Changed
- [FEATURE] Added ability to register default casters. by @frankdejonge in #4
- Add the Jane's AutoMapper to alternatives by @Korbeil in #6
- Typo fix by @mxr576 in #8
- Fix very nitpicky typo by @bradjones1 in #7
- Fixed #9: Added ability to map a list of payloads to objects. by @frankdejonge in #11
New Contributors
- @Korbeil made their first contribution in #6
- @mxr576 made their first contribution in #8
- @bradjones1 made their first contribution in #7
Full Changelog: 0.1.0...0.2.0
0.1.0
What's Changed
- Added ability to use multiple casters for one property. by @frankdejonge in #2
- Feature: capture from multiple keys by @frankdejonge in #3
- Add benchmarks to CI. by @frankdejonge in #5
- Initial implementation
New Contributors
- @frankdejonge made their first contribution in #2
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/commits/0.1.0