Releases: ugoevola/ts-mapstruct
Releases · ugoevola/ts-mapstruct
v3.1.0
v3.0.3
v3.0.0
Breaking Changed
- The Mappings decorator doesn't work without Mapper on the parent class
Added
- The ability to force the type of a targeted property
- The ability to target a targeted property in depth
- Implicit Mapping for more than one parameter
- Reinforcement of the tests
Changed
- Before the script auto-generated by Mappings did heavy calculations, like selecting the right BeforeMapping or AfterMapping methods before executing them. So when a method was called, the computation time varied depending on the number of methods inside the mapper.
All the selection calculations are done when the mapper is instantiated, and the auto-generated mapping method does the minimum.- Adding one provided mapping method: getOrEmptyString
- Review of returned exceptions
Fixed
- The getConcatProperies without a separator don't work well, so now the separator must be filled in.
v2.0.3
v2.0.0
Changes:
- the getters/setters are no longer required in object's classes for mapping
- new features:
- @BeforeMapping: perform some actions before the mapping process
- @AfterMapping: perform some actions after the mapping process
- @MappingTarget: provide the mapping object throw mapping methods
- changes in thrown exceptions
ts-mapstruct v1.0.0
Mappings(...options: MappingOptions[])