dartz_plus_generator 0.3.0
dartz_plus_generator: ^0.3.0 copied to clipboard
Code generator for dartz_plus AutoMapper.
CHANGELOG #
0.3.0 #
- New Features:
- Added support for custom field mapping using
@MapTo. - Added support for ignoring fields using
@IgnoreMap. - Added support for specifying a target class constructor in the
@Mapperannotation. - Enhanced field resolution to support bidirectional mapping with a single
@MapToannotation.
- Added support for custom field mapping using
0.2.0 #
-
Breaking Changes:
- Added support for automatic nested object and list mapping (Recursive Mapping). This may change generated code for types that were previously ignored.
-
New Features:
- Recursive Mapping: Added support for automatic nested object and list mapping.
- Generates
.toTarget()for single object type mismatches. - Generates
.map((e) => e.toTarget()).toList()forListtype mismatches.
- Generates
- Freezed Support: Enhanced property lookup to work with Freezed factory constructors by falling back to constructor parameters if fields are not present.
- Auto-Apply Builder: Enabled
auto_apply: dependentsinbuild.yaml, so users no longer need to manually enable the builder in theirbuild.yaml. - Smart Resolution: Improved field matching to handle optional and nullable parameters gracefully.
- Recursive Mapping: Added support for automatic nested object and list mapping.
-
Fixes:
- Improved robustness of field resolution for inherited properties.
- Aligned generated code formatting with
dart format.
0.1.1 #
- Added
dartz_plusdependency to shareMapperannotation. - Switched to
SharedPartBuilderfor better compatibility with other generators.
0.1.0 #
- Initial release of
dartz_plus_generator. - Support for basic
@Mapperannotation and extension-based mapping.