Skip to content

Releases: jolicode/automapper

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

9.0.1

10 May 13:24
e9c287e
Compare
Choose a tag to compare

Fixes

  • GH#124 Fix Symfony's WebProfiler issues
  • GH#125 Fix MetadataCollector default highlight colors

9.0.0

06 May 09:37
7ceaf7a
Compare
Choose a tag to compare

Added

  • GH#61 Add event system during code generation, make serializer optional thanks to it
  • GH#63 Merge bundle directly into automapper, will replace automapper-bundle
  • GH#59 Add MapTo & MapFrom attributes
  • GH#78 Add MapTo & MapFrom listeners to bundle
  • GH#80 Add if feature to MapTo / MapFrom attributes
  • GH#81 Allow MapTo / MapFrom attributes in class when declaring a transformer and a name
  • GH#82 Add groups to MapTo / MapFrom attributes
  • GH#84 Allow expression language for transformer and add provider for custom functions
  • GH#86 Bundle: Allow to use eval loader instead of file
  • GH#89 Add normalizer format in context, allow skipping group checking and remove registry interface from normalizer
  • GH#96 Add a way to instantiate the target object from external service using provider
  • GH#98 Allow normalizer to only work with registered mapping
  • GH#95 Add Api Platform integration
  • GH#103 Add debug command and profiler for the symfony bundle
  • GH#114 Introducing Mapper Attribute
  • GH#117 Allow multiple source/target, allow overriding attribute with priority system

Changed

  • GH#56 Refactor metadata
  • GH#68 Allow to use sf 5.4 for most things, remove useless deps / suggests
  • GH#71 Use interface for class metadata factory
  • GH#75 Types: better matching between types to better handle multiple types
  • GH#79 Refactor the way to create custom transformer
  • GH#90 Allow to run symfony app in tests
  • GH#104 Replace allow_constructor with constructor_strategy to have more control on how to use the constructor
  • GH#102 Change default reload behavior for the symfony bundle
  • GH#119 Change serializer configuration naming in Symfony Bundle

Fixed

  • GH#70 Split map to / map from, fix from array
  • GH#73 Don't map unexisting context, fix target to populate
  • GH#72 Don't map property if groups specified and no groups attached
  • GH#74 Check class exists when checking reflection class in object transformer factory
  • GH#77 Try to get types from read accessor / write mutator first
  • GH#83 Fix MapFrom: correctly use method from target if asked
  • GH#85 Fix mapping with proxies
  • GH#85 Fix \Traversable normalization
  • GH#85 Fix array fetching on string indexed array
  • GH#87 Correctly map from an inherited class
  • GH#93 Fix map to overriding ignore / groups attribute from serializer
  • GH#94 Fix most phpstan issues
  • GH#101 Fix some inconsistencies with symfony/serializer behavior

Documentation

  • GH#91 Add documentation versioning
  • GH#88 Reorganize documentation structure
  • GH#92 Add doc about mapping
  • GH#98 Add migration guide into documentation
  • GH#109 Use AutoMapper exceptions
  • GH#115 Fix generating discriminator dependencies
  • GH#116 Fix property transformer with adder and remover methods

9.0.0-beta.2

02 Apr 19:54
ff562a8
Compare
Choose a tag to compare
9.0.0-beta.2 Pre-release
Pre-release

Added

  • GH#95 Add Api Platform integration
  • GH#103 Add debug command and profiler for the symfony bundle

Changed

  • GH#104 Replace allow_constructor with constructor_strategy to have more control on how to use the constructor
  • GH#102 Change default reload behavior for the symfony bundle

Fixed

  • GH#101 Fix some inconsistencies with symfony/serializer behavior

9.0.0-beta.1

25 Mar 10:41
8f2aeb3
Compare
Choose a tag to compare
9.0.0-beta.1 Pre-release
Pre-release

Added

  • GH#61 Add event system during code generation, make serializer optional thanks to it
  • GH#63 Merge bundle directly into automapper, will replace automapper-bundle
  • GH#59 Add MapTo & MapFrom attributes
  • GH#78 Add MapTo & MapFrom listeners to bundle
  • GH#80 Add if feature to MapTo / MapFrom attributes
  • GH#81 Allow MapTo / MapFrom attributes in class when declaring a transformer and a name
  • GH#82 Add groups to MapTo / MapFrom attributes
  • GH#84 Allow expression language for transformer and add provider for custom functions
  • GH#86 Bundle: Allow to use eval loader instead of file
  • GH#89 Add normalizer format in context, allow skipping group checking and remove registry interface from normalizer
  • GH#96 Add a way to instantiate the target object from external service using provider
  • GH#98 Allow normalizer to only work with registered mapping

Changed

  • GH#56 Refactor metadata
  • GH#68 Allow to use sf 5.4 for most things, remove useless deps / suggests
  • GH#71 Use interface for class metadata factory
  • GH#75 Types: better matching between types to better handle multiple types
  • GH#79 Refactor the way to create custom transformer
  • GH#90 Allow to run symfony app in tests

Fixed

  • GH#70 Split map to / map from, fix from array
  • GH#73 Don't map unexisting context, fix target to populate
  • GH#72 Don't map property if groups specified and no groups attached
  • GH#74 Check class exists when checking reflection class in object transformer factory
  • GH#77 Try to get types from read accessor / write mutator first
  • GH#83 Fix MapFrom: correctly use method from target if asked
  • GH#85 Fix mapping with proxies
  • GH#85 Fix \Traversable normalization
  • GH#85 Fix array fetching on string indexed array
  • GH#87 Correctly map from an inherited class
  • GH#93 Fix map to overriding ignore / groups attribute from serializer
  • GH#94 Fix most phpstan issues

Documentation

  • GH#91 Add documentation versioning
  • GH#88 Reorganize documentation structure
  • GH#92 Add doc about mapping
  • GH#98 Add migration guide into documentation

8.2.2

22 Mar 22:15
ad0b65f
Compare
Choose a tag to compare

Added

  • GH#54 Introduce MapperContext::DATETIME_FORCE_TIMEZONE

Fixed

  • GH#55 Remove most of deprecations in tests
  • GH#69 Allow to handle union types with several objects

Documentation

  • GH#64 Use poetry to run and build documentation