๐บ๏ธ Mappa: v1.2.0
A new version of Mappa (v1.2.0) has been released.
โ๏ธ Whatโs new?
- #53Add support for
[MappaAssignFromConstant]
attribute; - #24 Add support for faster iterations for arrays and
List<T>
usingSpan<T>
, - #47 Add native mapping support between
Guid
andbyte[]
/Span<byte>
/ReadOnlySpan<byte>
/Memory<byte>
/ReadOnlyMemory<byte>
; - #164 Add support
params
andin
keywords; - #167 Addressing leftover TODOs;
- #107 Add tests to check mapping support for
System.ValueTuple<...>
; - #162 Released NuGet packages are built in release.
๐ Bug fixes
- #153 Mapping now take into account properties in base classes;
- #159 When mapping from an interface the tree of implemented interfaces is taken into account when deriving the list of properties.
๐ Whatโs next for v1.3.0?
More feature are going to be added in future releases:
- #53 Better detection of implemented interfaces in case multiple interfaces of the same type are implemented by the class;
- #34 User should be able to select if they want to use the
Add
method or the indexer when mapping to dictionaries; - #54 When mapping from string support static
Parse
methods on the target type; - #70 Allow
MappaInvokeMethodAttribute
to support methods withMappaMethodContext
; - #118 When targeting read-only properties of type collection Mappa should support more types (e.g.
Stack<T>
,Queue<T>
, โฆ);
๐ฆ NuGet packages
Mappa provide 6 NuGet packeges:
- Mappa: source generator that allows to automatically generate mapping between classes and value types;
- Mappa source generator: source generator that allows to automatically generate mapping between classes and value types;
- Mappa Protobuf: methods to map
Google.Protobuf.WellKnownTypes
objects from Google.Protobuf package into common objects. - Mappa Protobuf dependency: utility methods to register the Protobuf mapper.
- Mappa Bson: methods to map
MongoDB.Bson
objects from MongoDB.Bson package into common objects. - Mappa Bson dependency: utility methods to register the Bson mapper.