entityfy 2.1.0
entityfy: ^2.1.0 copied to clipboard
A powerful Dart code generator that automatically creates toEntity() methods for seamless conversion between domain models and data layer entities using simple annotations.
2.1.0 #
Summary #
This minor release introduces fake data generation capabilities for testing and development, along with enhanced documentation and improved package description.
Added #
- π§ͺ Fake Data Generation: New
generateFakeList
parameter for creating mock data during testing and development - π Testing Support: Automatic generation of static
fakeList()
methods within Entity classes for creating realistic test data - π CopyWith Method: Automatic generation of
copyWith()
methods for both Entity and UI Model classes enabling immutable updates - π§ Enhanced Configuration: Extended annotation flexibility with three boolean flags:
generateEntity
,generateUiModel
, andgenerateFakeList
Improved #
- π Enhanced Documentation: Comprehensive examples showcasing all annotation combinations including fake data usage
- π¦ Package Description: Updated description to better reflect the
toEntity()
method generation capabilities - π― Usage Examples: Added detailed examples for fake data generation in testing scenarios
- π Clean Architecture Guide: Expanded Clean Architecture integration documentation with practical examples
- π Reference Section: Added comprehensive references for Clean Architecture and design patterns
2.0.1 #
Summary #
This patch release improves package metadata and workspace organization for better discoverability and developer experience.
Improved #
- π¦ Package Metadata: Enhanced package information with proper homepage, repository, and issue tracker URLs
- π·οΈ Topics & Discovery: Added relevant topics for better package discoverability on pub.flutter-io.cn
- π Documentation Links: Updated documentation URLs for clearer navigation
- π Repository Organization: Improved workspace structure and monorepo configuration
Fixed #
- π§ URL Corrections: Fixed repository and homepage URLs to remove
.git
suffix - π Metadata Completeness: Added missing issue tracker and documentation links
2.0.0 #
Added #
- π― New
@Entityfy
Annotation: Unified annotation replacing multiple individual annotations - βοΈ Flexible Configuration: Boolean flags
generateEntity
andgenerateUiModel
for selective generation - π Bidirectional Support: Enable generation of both Entity and UI Model classes from single source
- π Enhanced Documentation: Comprehensive annotation documentation with usage examples
- π‘οΈ Compile-time Validation: Assertion ensuring at least one generation flag is enabled
- ποΈ Architecture Support: Built specifically for Clean Architecture and multi-layer applications
Features #
- Support for generating Entity classes with
generateEntity: true
- Support for generating UI Model classes with
generateUiModel: true
- Simultaneous generation of both types with dual flags
- Extensive inline documentation with real-world examples
- Type-safe annotation with sealed class implementation
- Meta annotations for proper IDE integration and tooling support
Breaking Changes #
- Replaced individual annotations with unified
@Entityfy
annotation - New API requires explicit boolean configuration instead of class references
- Updated import structure for better organization
Documentation #
- Added comprehensive usage examples for all configuration combinations
- Included Freezed integration examples
- Added Clean Architecture integration patterns
- Enhanced API documentation with detailed parameter descriptions
1.0.0 #
- Initial version.