Skip to content

Releases: ugoevola/ts-mapstruct

v3.1.0

26 Sep 17:03
Compare
Choose a tag to compare

Added

  • You have now 2 solutions to expose properties :
  • with Expose decorator of class-transformer
  • Come back of getters / setters (from v1.0.1). If you define a getter or a setter for a property, it will be exposed.

v3.0.3

24 Sep 14:29
Compare
Choose a tag to compare

Added

  • Prettier

Fixed

  • Controls on MappingOptions
  • Installation

v3.0.0

23 Sep 22:36
Compare
Choose a tag to compare

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

14 Sep 21:28
Compare
Choose a tag to compare

Changes:

  • adding linter
  • adding jest tests

FIX:

  • getConcatProperties
  • parameters with underscors

v2.0.0

11 Sep 05:33
Compare
Choose a tag to compare

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

10 Sep 09:00
Compare
Choose a tag to compare

Mappings(...options: MappingOptions[])