Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Releases: Ocramius/GeneratedHydrator

4.6.0

09 Jan 10:07
4.6.0
aa5db09
Compare
Choose a tag to compare

Release Notes for 4.6.0

Feature release (minor)

4.6.0

  • Total issues resolved: 0
  • Total pull requests resolved: 8
  • Total contributors: 3

dependencies,enhancement

dependencies,duplicate,enhancement,renovate

dependencies,renovate

renovate

bug,dependencies,enhancement

4.5.0

01 Dec 16:01
4.5.0
9537dff
Compare
Choose a tag to compare

Release Notes for 4.5.0

Feature release (minor)

4.5.0

  • Total issues resolved: 0
  • Total pull requests resolved: 4
  • Total contributors: 1

dependencies,enhancement,renovate

renovate

4.4.0

29 Aug 08:00
4.4.0
4d30138
Compare
Choose a tag to compare

4.3.0

11 Jan 10:48
4.3.0
aff251c
Compare
Choose a tag to compare

Release Notes for 4.3.0

Feature release (minor)

This release only upgrades dependencies

4.3.0

  • Total issues resolved: 0
  • Total pull requests resolved: 115
  • Total contributors: 1

dependencies,php

Read more

4.2.0

19 Sep 03:51
4.2.0
67627df
Compare
Choose a tag to compare

Release Notes for 4.2.0

4.2.0

  • Total issues resolved: 1
  • Total pull requests resolved: 4
  • Total contributors: 3

dependencies,enhancement

dependencies

4.1.0

17 Jan 19:14
4.1.0
e1d2919
Compare
Choose a tag to compare

4.0.0

17 Jul 05:41
4.0.0
2b2ff2a
Compare
Choose a tag to compare

This major release upgrades the whole ocramius/generated-hydrator to rely on the laminas/laminas-hydrator
package, instead of zendframework/zend-hydrator (old name).

In addition to that, type inference on the generated hydrators should have improved by a lot, allowing for
more precise hydration/extraction type checks downstream, as well as improved overall package quality when
dealing with dependency upgrades.

Following minor BC breaks apply, although only for consumers that subclass types within this package:

[BC] CHANGED: The return type of GeneratedHydrator\Factory\HydratorFactory#getHydrator() changed from Zend\Hydrator\HydratorInterface to the non-covariant GeneratedHydrator\GeneratedHydrator
[BC] CHANGED: The return type of GeneratedHydrator\Factory\HydratorFactory#getHydrator() changed from Zend\Hydrator\HydratorInterface to GeneratedHydrator\GeneratedHydrator
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$hydratedClassName changed from string to having no type
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$autoGenerateProxies changed from bool to having no type
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$generatedClassesTargetDir changed from null|string to having no type
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$generatedClassesNamespace changed from string to having no type
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$generatorStrategy changed from \CodeGenerationUtils\GeneratorStrategy\GeneratorStrategyInterface|null to having no type
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$generatedClassesAutoloader changed from callable|null to having no type
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$classNameInflector changed from \CodeGenerationUtils\Inflector\ClassNameInflectorInterface|null to having no type
[BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$hydratorGenerator changed from \GeneratedHydrator\ClassGenerator\HydratorGenerator|null to having no type

Total issues resolved: 5

3.1.0

21 Feb 12:56
3.1.0
Compare
Choose a tag to compare

3.0.0

04 Mar 19:57
3.0.0
5838d24
Compare
Choose a tag to compare

Build Status

This release bumps the minimum supported PHP version to PHP 7.3,
allows newer PHP-Parser release usage, and overall improves the
test suite and codebase. Also, by using static function () {}
closures, we squeezed out another 15% of hydration performance
when dealing with private properties.

Please note that this is a new major release, so be aware of the
following backwards incompatible breakages:

  • [BC] CHANGED: The return type of GeneratedHydrator\CodeGenerator\Visitor\HydratorMethodsVisitor#leaveNode() changed from no type to ?PhpParser\Node\Stmt\Class_
  • [BC] REMOVED: Class GeneratedHydrator\Exception\ExceptionInterface has been deleted
  • [BC] REMOVED: Class GeneratedHydrator\Exception\DisabledMethodException has been deleted
  • [BC] CHANGED: Type documentation for property GeneratedHydrator\Configuration#$hydratorGenerator changed from \GeneratedHydrator\ClassGenerator\HydratorGeneratorInterface|null to \GeneratedHydrator\ClassGenerator\HydratorGenerator|null
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setHydratedClassName() changed from no type to void
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setAutoGenerateProxies() changed from no type to void
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setGeneratedClassAutoloader() changed from no type to void
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setGeneratedClassesNamespace() changed from no type to void
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setGeneratedClassesTargetDir() changed from no type to void
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#getGeneratedClassesTargetDir() changed from no type to string
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setGeneratorStrategy() changed from no type to void
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setClassNameInflector() changed from no type to void
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#setHydratorGenerator() changed from no type to void
  • [BC] CHANGED: The parameter $hydratorGenerator of GeneratedHydrator\Configuration#setHydratorGenerator() changed from GeneratedHydrator\ClassGenerator\HydratorGeneratorInterface to a non-contravariant GeneratedHydrator\ClassGenerator\HydratorGenerator
  • [BC] CHANGED: The parameter $hydratorGenerator of GeneratedHydrator\Configuration#setHydratorGenerator() changed from GeneratedHydrator\ClassGenerator\HydratorGeneratorInterface to GeneratedHydrator\ClassGenerator\HydratorGenerator
  • [BC] CHANGED: The return type of GeneratedHydrator\Configuration#getHydratorGenerator() changed from no type to GeneratedHydrator\ClassGenerator\HydratorGenerator
  • [BC] REMOVED: Class GeneratedHydrator\ClassGenerator\HydratorGeneratorInterface has been deleted
  • [BC] CHANGED: Class GeneratedHydrator\ClassGenerator\HydratorGenerator became an interface
  • [BC] REMOVED: These ancestors of GeneratedHydrator\ClassGenerator\HydratorGenerator have been removed: ["GeneratedHydrator\ClassGenerator\HydratorGeneratorInterface"]

Total issues resolved: 5

2.2.0

28 Nov 23:15
9b6b62d
Compare
Choose a tag to compare