Skip to content

Releases: MapsterMapper/Mapster

v10.0.8-pre02

20 Apr 09:21
bcea4f3

Choose a tag to compare

v10.0.8-pre02 Pre-release
Pre-release

What's Changed

Full Changelog: v10.0.8-pre01...v10.0.8-pre02

v10.0.8-pre01

14 Apr 09:32
f82047c

Choose a tag to compare

v10.0.8-pre01 Pre-release
Pre-release

What's Changed

  • feat: add Flattening mapping for all source type by @DocSvartz in #916

Full Changelog: 10.0.7...v10.0.8-pre01

10.0.7

07 Apr 08:53
98962ae

Choose a tag to compare

What's Changed

Full Changelog: v10.0.6...10.0.7

10.0.7-pre04

01 Apr 09:55
7278f90

Choose a tag to compare

10.0.7-pre04 Pre-release
Pre-release

What's Changed

Full Changelog: v10.0.7-pre03...10.0.7-pre04

v10.0.7-pre03

31 Mar 10:45
6d82c35

Choose a tag to compare

v10.0.7-pre03 Pre-release
Pre-release

What's Changed

  • Fix regression when abstract destination type have required properties by @DocSvartz in #907

Full Changelog: v10.0.7-pre02...v10.0.7-pre03

v10.0.7-pre02

30 Mar 10:22
456502f

Choose a tag to compare

v10.0.7-pre02 Pre-release
Pre-release

What's Changed

Full Changelog: v10.0.7-pre01...v10.0.7-pre02

v10.0.7-pre01

29 Mar 06:19
6a581ce

Choose a tag to compare

v10.0.7-pre01 Pre-release
Pre-release

What's Changed

Full Changelog: v10.0.6...v10.0.7-pre01

v10.0.6

26 Mar 01:13
e192f41

Choose a tag to compare

Breaking change in v10.0+ and new feature

New feature:

  • Fix #883 - Add class ctor using default value for param

In version 7.4.0 this feature was only available for record types

If you encountered this mapping behavior in 7.4.0, it is possible that your class was recognized as a record type, or was mistakenly recognized as a record type See more.

If you need the mapping behavior as for Record, in v10.0+ you can use - [AdaptWith(AdaptDirectives.DestinationAsRecord)] .
If you need the ability to set this setting without using attributes, open issue on this topic.

Example:

[AdaptWith(AdaptDirectives.DestinationAsRecord)]
public class SimpleRecord
{
    public int Id { get; private set; }
    public string Name { get; private set; }

    public SimpleRecord(int id, string name)
    {
        this.Id = id;
        this.Name = name;
    }
}

What's Changed

  • fix: #893 by @DocSvartz in #894
  • fix: Regression in v10 - disabled ConstructUsing and MapToConstructor if have public parameterless constructor by @DocSvartz in #896

Full Changelog: v10.0.4...v10.0.6

v10.0.4

24 Mar 15:24
22b232a

Choose a tag to compare

Breaking change in v10.0+ and new feature

New feature:

In version 7.4.0 this feature was only available for record types

If you encountered this mapping behavior in 7.4.0, it is possible that your class was recognized as a record type, or was mistakenly recognized as a record type See more.

If you need the mapping behavior as for Record, in v10.0+ you can use - [AdaptWith(AdaptDirectives.DestinationAsRecord)] .
If you need the ability to set this setting without using attributes, open issue on this topic.

Example:

[AdaptWith(AdaptDirectives.DestinationAsRecord)]
public class SimpleRecord
{
    public int Id { get; private set; }
    public string Name { get; private set; }

    public SimpleRecord(int id, string name)
    {
        this.Id = id;
        this.Name = name;
    }
}

What's Changed

New Contributors

Full Changelog: v10.0.0...v10.0.4

v10.0.0

18 Mar 15:18
fde27d6

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v7.4.0...v10.0.0