Skip to content

Releases: jolicode/automapper

10.2.0

27 Apr 09:04
ec0026f

Choose a tag to compare

Added

  • GH#336 Support for array shape

Fixed

  • GH#340 Allow type resolver in 2.0 for dependencies
  • GH#341 Fix phpstan extractor not using private properties in bundle

9.5.1

27 Apr 08:31
e55b2ac

Choose a tag to compare

  • Support type resolver in 2.0

10.1.0

18 Mar 11:48
dec01d4

Choose a tag to compare

Added

  • GH#328 Register mappers as lazy to reduce initialization calls when sub mappers are not used

Fixed

  • GH#333 Fix incompatibility with class-string<object> notation
  • GH#330 Cast inner values of array properties when mapping from untyped sources

10.0.3

25 Feb 09:06
41466d7

Choose a tag to compare

Fixed

  • GH#327 Fix cache extractor in symfony bundle being mixed between source and target.

10.0.2

24 Feb 15:46
a3aba33

Choose a tag to compare

Fixed

  • GH#326 Fix array, be consistent with old behavior, undefined array should be mapped with their keys.

10.0.1

24 Feb 14:19
9f36330

Choose a tag to compare

Fixed

  • GH#325 Fix creating union or intersection type when not enough types.

10.0.0

10 Feb 09:36
994e916

Choose a tag to compare

Added

  • GH#297 Support PHP 8.5 and Symfony 8, this library now use the TypeInfo Component for types instead of PropertyInfo directly.
  • GH#297 Debug command now show the type of each property mapped, transformers will also display more information.
  • GH#297 Profiler now show the type of each property mapped, transformers will also display more information.
  • GH#304 Allow to override source and/or target property type.
  • GH#314 Add support for static callable in attribute transformer.
  • GH#317 Initial support for nested properties.
  • GH#318 Add support for lazy mapping.
  • GH#316 Add support for object invokable transformer in attribute transformer.
  • GH#319 Add support for discriminator with Mapper attribute.
  • GH#320 Add a new interface PropertyTransformerComputeInterface to allow property transformers with supports, to compute a value that will be fixed during code generation.
  • GH#306 Support ObjectMapper attributes.
  • GH#306 Add an implementation for Symfony ObjectMapperInterface using AutoMapper.

Changed

  • [BC Break] GH#297 PropertyTransformerSupportInterface does not use a TypesMatching anymore, you can get the type directly from SourcePropertyMetadata or TargetPropertyMetadata.
  • [BC Break] GH#297 ProviderInterface::provide method now receive also the identifiers of the object to provide.

Fixed

  • GH#303 Fix api platform not returning an iri when there is no property mapped.

Miscellaneous

  • GH#297 Add a castor task to serve the symfony app in tests for debugging purpose.

9.5.0

18 Sep 10:12
cf1f71b

Choose a tag to compare

Added

  • GH#260 Add support for identifiers detection and comparison of objects, this allow mappers to detect if objects are equals based on some properties, which allow better deep merge / update of collections.
  • GH#253 Add support for Doctrine provider, which allow to fetch entities from database instead of creating new ones, this is an experimental feature.

Changed

  • GH#286 Optimize condition order to avoid unnecessary method calls by prioritizing custom conditions

Fixed

  • GH#280 Use correct property name to extract types from write mutator, which result in better extraction in some cases.
  • GH#272 Fixed circular references with promoted properties.
  • GH#285 Fix constructor not used when on a abstract class.

Miscellaneous

  • GH#281 Generate expected data for test with new line to please IDE.
  • GH#263 Add a regression test for nested array bug that occured and fixed between 9.2.1 and 9.4.1.
  • GH#288 Update php cs fixer to support PHP 8.4.

9.4.1

03 Jun 13:48
26f9739

Choose a tag to compare

Fixed

  • GH#278 Allow to set remove default property config in symfony bundle

9.4.0

30 May 16:53
b77f09f

Choose a tag to compare

Added

  • GH#246 Add support for PHP 8.4
  • GH#246 Add support for API Platform 4
  • GH#252 Add support for SerializedName attributes
  • GH#251 Allow to map extra properties on array/object
  • GH#242 Add support for DiscriminatorMap with interface
  • GH#256 Allow nested array to be transformed to object
  • GH#262 Allow to extract types from getter
  • GH#261 Remove existing values when using adder and remover on collection

Changed

  • GH#243 GH#258 Clean the tests suite
  • GH#264 Upgrade phpstan to make it work with PHP 8.4
  • GH#257 Better error reporting of missing 'typePropery' when using DiscriminatorMap
  • GH#265 Set deep populate to true if passing an existing value
  • GH#266 Use composer to get installed versions instead of const

Fixed

  • GH#244 Avoid double CI run
  • GH#247 Update invalid syntax in configuration.md for constant
  • GH#255 Fix array and collection when using deep target populate
  • GH#274 Fix support for Symfony 7.3