Skip to content

Releases: dioKaratzas/fluent-dto-macro

1.1.1

16 Feb 19:34
e7c9299
Compare
Choose a tag to compare

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

06 Feb 21:02
816db82
Compare
Choose a tag to compare

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 to UserDTO, PostContent to PostDTO, etc.

Full Changelog: 1.0.2...1.1.0

1.0.1

05 Feb 14:49
Compare
Choose a tag to compare

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

05 Feb 09:27
Compare
Choose a tag to compare

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