Releases: MapsterMapper/Mapster
v10.0.8-pre03
What's Changed
- fix race condition when mapping to Record used IgnoreNullValues by @DocSvartz in #923
Full Changelog: v10.0.8-pre02...v10.0.8-pre03
v10.0.8-pre02
What's Changed
- fix IsNotSelfCreation detect by @DocSvartz in #919
Full Changelog: v10.0.8-pre01...v10.0.8-pre02
v10.0.8-pre01
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
What's Changed
- Fix: regression when update required property by @DocSvartz in #902
- Add ctor null propagation by @DocSvartz in #903
- Fix bug in #903 and Fix #858 by @DocSvartz in #905
- Fix regression when abstract destination type have required properties by @DocSvartz in #907
- fix: IgnoreNullValues regression from MapToTarget cases in #905 by @DocSvartz in #908
- Restore behavior for types cannot be instantiated from itselves by @DocSvartz in #912
- Bump version to 10.0.7 - Release by @DocSvartz in #913
Full Changelog: v10.0.6...10.0.7
10.0.7-pre04
What's Changed
- fix: IgnoreNullValues regression from MapToTarget cases in #905 by @DocSvartz in #908
Full Changelog: v10.0.7-pre03...10.0.7-pre04
v10.0.7-pre03
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
What's Changed
- Fix bug in #903 and Fix #858 by @DocSvartz in #905
Full Changelog: v10.0.7-pre01...v10.0.7-pre02
v10.0.7-pre01
What's Changed
- Fix: regression when update required property by @DocSvartz in #902
- Added ctor null propagation by @DocSvartz in #903
Full Changelog: v10.0.6...v10.0.7-pre01
v10.0.6
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
Breaking change in v10.0+ and new feature
New feature:
- Fix #883 - Add class ctor using default value for param by @DocSvartz in #885
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: Restore PackageLicense by @DocSvartz in #870
- Fix #875 - ProjectToType regression in v10 by @DocSvartz in #876
- Feature : add simplification UseDestinationValue configuration method by @DocSvartz in #886
- Fix #883 - Add class ctor using default value for param by @DocSvartz in #885
- Fix: Restore v7.4.0 behavior for property without setter in class by @DocSvartz in #887
- Fix #881 - ProjectToType record regression by @DocSvartz in #888
- Improvement build - part 1 by @DocSvartz in #889
- fix: Typo in Data-types.md by @NLHaarP in #891
New Contributors
Full Changelog: v10.0.0...v10.0.4