Mappa v1.2.0
From the portfolio: Mappa
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
Guidandbyte[]/Span<byte>/ReadOnlySpan<byte>/Memory<byte>/ReadOnlyMemory<byte>; -
#164 Add support
paramsandinkeywords; - #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 takes 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 features 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
Addmethod or the indexer when mapping to dictionaries; -
#54 When mapping from string support static
Parsemethods on the target type; -
#70 Allow
MappaInvokeMethodAttributeto 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 provides 6 NuGet packages:
- Mappa: source generator that allows you to automatically generate mappings between classes and value types;
- Mappa source generator: source generator that allows you to automatically generate mappings between classes and value types;
-
Mappa Protobuf: methods to map
Google.Protobuf.WellKnownTypesobjects from Google.Protobuf package into common objects. - Mappa Protobuf dependency: utility methods to register the Protobuf mapper.
-
Mappa Bson: methods to map
MongoDB.Bsonobjects from MongoDB.Bson package into common objects. - Mappa Bson dependency: utility methods to register the Bson mapper.