Skip to content

Releases: jolicode/automapper

9.4.1

03 Jun 13:48
26f9739
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

9.0.2

23 May 07:01
00e22d0
Compare
Choose a tag to compare

Deprecated

  • GH#136 Deprecate the ability to inject AST transformer factories withing stand-alone AutoMapper

Fixed

  • GH#131 Require mandatory packages
  • GH#132 Use DI Extension class instead of deprecated HttpKernel Extension
  • GH#130 Make ClassDiscriminatorResolver optional
  • GH#135 Fix return type of AutoMapper::create()
  • GH#139 Fix unreachable variable in BuitinTransformer
  • GH#138 Declare CopyTransformerFactory as a service
  • GH#142 Make MapperMetadata non-internal because it is used within PropertyTransformerSupportInterface interface
  • GH#148 Handle deprecated class LNumber in nikic/php-parser v5
  • GH#151 Fix type in generated code