Releases: KazaiMazai/SwiftletModel
Releases · KazaiMazai/SwiftletModel
Release v0.6.1
Release v0.6.0
What's Changed
- EntityModel Macro - Extension Access Level attributes by @KazaiMazai in #60
Full Changelog: 0.5.0...0.6.0
Release v0.5.0
Release v0.4.5
What's Changed
- Сonditional Codable for Relations by @KazaiMazai in #58
Full Changelog: 0.4.4...0.4.5
Release v0.4.4
What's Changed
- Update README.md by @KazaiMazai in #55
- Documentation section by @KazaiMazai in #56
- EntityModelMacro fix for generic Entities by @KazaiMazai in #57
Full Changelog: 0.4.3...0.4.4
Release v0.4.3
Release v0.4.2
Release v0.4.1
Release v0.4.0
What's new?
One Relationship type to rule them all.
What's Changed
- Refactoring to single relationship by @KazaiMazai in #49
- Relationship wrapper minor fix and readme update by @KazaiMazai in #50
- Add protocol description to readme by @KazaiMazai in #51
Full Changelog: 0.3.0...0.4.0
Breaking changes
Old relation property wrappers are not available any more. @Relationship
should be used instead:
Before
//To-one optional:
@HasOne
var user: User? = nil
//To-one required:
@BelongsTo
var author: User?
//To-many:
@HasMany
var viewedBy: [User]? = nil
//Mutual relation:
@HasMany(\.chat, inverse: \.messages)
var chat: Chat?
Now
//To-one optional:
@Relationship
var user: User? = nil
//To-one required:
@Relationship(.required)
var author: User?
//To-many:
@Relationship
var viewedBy: [User]? = nil
//Mutual relation:
@Relationship(inverse: \.messages)
var chat: Chat?
Release v0.3.0
What's new
- 10x less boilerplate code thanks to powerful EntityModel macro.
- 10x more flexibility in incomplete data handling
What's Changed
- Swiftlint fixes by @KazaiMazai in #45
- Entity macros by @KazaiMazai in #46
- Incomplete data handling improvements by @KazaiMazai in #47
- Readme fixes by @KazaiMazai in #48
Breaking Changes
This release contains breaking changes:
- Old EntityModel protocol is replaced with EntityModelProtocol & EntityModel macro attribute
- Changes in relations convenience definitions
Full Changelog: 0.2.0...0.3.0