dartz_plus_generator 0.1.1
dartz_plus_generator: ^0.1.1 copied to clipboard
Code generator for dartz_plus AutoMapper.
Changelog #
All notable changes to this project will be documented in this file.
0.1.1 - 2025-01-03 #
Changed #
- Breaking: Moved
Mapperannotation fromdartz_pluspackage intodartz_plus_generator - Updated all imports to use
package:dartz_plus_generator/annotations.dart - Removed
dartz_plusdependency - generator is now fully independent - Users should now import
@Mapperannotation fromdartz_plus_generatorinstead ofdartz_plus
Migration Guide #
If upgrading from 0.1.0, update your imports:
// Before
import 'package:dartz_plus/dartz_plus.dart';
// After
import 'package:dartz_plus_generator/annotations.dart';
0.1.0 - 2025-12-15 #
Added #
- Initial release of
dartz_plus_generator @Mapperannotation for automatic mapping code generationMapperGeneratorclass that generates bidirectional mapping extensions- Support for generating
to{TargetName}()extension methods - Bidirectional mapping support (can be disabled with
reverse: false) - Smart field resolution that handles:
- Optional parameters
- Nullable parameters
- Required parameter validation
- Inheritance support - collects fields from superclasses
- Comprehensive error messages for:
- Invalid annotation targets
- Missing constructors
- Missing required fields
build.yamlconfiguration for automatic code generation- Full integration with
build_runner
Dev Dependencies #
build_runner: ^2.10.4lints: ^6.0.0source_gen_test: ^1.3.3test: ^1.26.3
Requirements #
- Dart SDK: ^3.10.4