Releases: dioKaratzas/fluent-dto-macro
Releases · dioKaratzas/fluent-dto-macro
1.1.1
What's Changed
🚀 Features
✨ improve relationship handling in DTOs (#9)
- Make all relationship properties optional in DTOs
- Add value existence checks for all relationships
- Change default includeRelations to .all
- Return empty arrays for unloaded array relationships
- Return nil for unloaded single relationships
Full Changelog: 1.1.0...1.1.1
1.1.0
What's Changed
- 📝 Renamed project from FluentContentMacro to FluentDTOMacro to better reflect its purpose
- 🔄 Updated all internal references from Content to DTO
Migration
- Update package URL in your dependencies
- Replace
@FluentContent
with@FluentDTO
in your code - Update any custom implementations where you used
UserContent
toUserDTO
,PostContent
toPostDTO
, etc.
Full Changelog: 1.0.2...1.1.0
1.0.1
What's Changed
🐛 Bug Fixes
- Add SwiftSyntax 509.0.0 compatibility (#2)
- Add overloaded extractModelDeclInfo methods for both DeclSyntaxProtocol and DeclGroupSyntax
- Fix type conformance issues between Swift 5.9 and 6.0
- Support both providingPeersOf and attachedTo macro expansion methods
Full Changelog: 1.0.0...1.0.1
1.0.0
What's Changed
🚀 Features
✨ add configurable protocol conformances and global defaults
✨ add Sendable conformance and align package dependencies
✨ streamline GitHub Actions workflows
✨ add FluentContent macro for generating DTOs
🔧 Bug Fixes
🐛 align parameter name from 'includedWrappers' to 'includeRelations'
🔨 Improvements
♻️ optimize macro parser and improve test coverage
♻️ rename includeWrappers to includeRelations and improve docs
♻️ simplify relationship wrapper selection