Skip to content

Releases: KazaiMazai/SwiftletModel

Release v0.6.1

27 Sep 12:09
749fc08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.6.0...0.6.1

Release v0.6.0

11 Sep 00:04
0a930cd
Compare
Choose a tag to compare

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

16 Aug 15:59
600fc72
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.5...0.5.0

Release v0.4.5

15 Aug 14:20
4c26623
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.4...0.4.5

Release v0.4.4

14 Aug 22:14
a820c3e
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.3...0.4.4

Release v0.4.3

12 Aug 18:48
668abaf
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.2...0.4.3

Release v0.4.2

12 Aug 18:21
6f87baa
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.1...0.4.2

Release v0.4.1

12 Aug 16:22
b078d58
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.0...0.4.1

Release v0.4.0

11 Aug 18:35
e9ee8f0
Compare
Choose a tag to compare

What's new?

One Relationship type to rule them all.

What's Changed

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

08 Aug 16:44
d731ad9
Compare
Choose a tag to compare

What's new

  1. 10x less boilerplate code thanks to powerful EntityModel macro.
  2. 10x more flexibility in incomplete data handling

What's Changed

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