Skip to content

Releases: jolicode/automapper

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

9.3.1

07 Mar 16:27
a2b1ea9

Choose a tag to compare

Fixed

  • GH#236 Fix null values being used in constructor arguments when not allowed

9.3.0

07 Mar 14:34
037a6ba

Choose a tag to compare

Added

  • GH#223 Handle array to Doctrine Collection transformations
  • GH#225 Add mapCollection method to base interface
  • GH#200 Added skip_uninitialized_values context to skip non initialized properties
  • GH#200 Changed skip_null_values behavior to not handle initialized properties anymore
  • GH#230 Allow to map unknown array into object when it's nested
  • GH#235 Add possibility to use the NameConverterInterface from symfony 7.2

Removed

  • GH#200 Drop nikic/php-parser < 5.0 compatibility

Fixed

  • GH#231 Fix cases where constructor arguments were missing but not detected
  • GH#188 Correctly handle default constructor arguments when they are objects.
  • GH#234 Fix custom providers not being registered inside the bundle

Miscellaneous

  • GH#232 Use castor for local and CI checks on the library

9.2.1

31 Jan 09:16
e10d695

Choose a tag to compare

Fixed

  • GH#207 GH#208 Fix implicity nullable parameter deprecations
  • GH#212 Fix cases where class target has adder and remover AND constructor arguments

9.2.0

19 Nov 17:22
ce0025d

Choose a tag to compare

Added

  • GH#180 Add configuration to generate code with strict types
  • GH#183 Ability to change reload strategy from AutoMapper::create()
  • GH#193 add icon to symfony profiler

Changed

  • GH#186 Optimize creation from constructor
  • GH#205 Add support for phpstan/phpdoc-parser 2

Fixed

  • GH#184 Fix error when mapping from stdClass to constructor with nullable/optional arguments
  • GH#185 Fix constructor with default parameter array does not work with constructor_arguments context
  • GH#187 Fix regression after GH#184
  • GH#192 Fix source and context not passed to callable transformer

9.1.2

03 Sep 10:04
c3b42a3

Choose a tag to compare

Fixed

  • GH#174 Fix race condition when writing generated mappers
  • GH#167 Fix property metadata attribute name in docs
  • GH#166 Remove cache for property info, use specific services instead

9.1.1

19 Jun 14:48
2973a78

Choose a tag to compare

Fixed

  • GH#164 Fix type extract with @param in constructor doc block

9.1.0

06 Jun 13:38
d368287

Choose a tag to compare

Added

  • GH#153 Handle DateTime format in MapTo/MapFrom/Mapper attributes

Fixed

  • GH#158 Actually read reload_strategy from bundle configuration
  • GH#137 Always allow to write private props in constructor
  • GH#129 Use map_private_properties when configuring ReflectionExtractor