1.48.0 - Primary Sendable support for Fluent
What's Changed
Primary Sendable support for Fluent by @gwynne in #601
Adds as much
Sendable
correctness to FluentKit as it is possible to add.[!IMPORTANT]
It was not possible to makeModel
correctlySendable
due to limitations of how property wrappers work, even though the wrappers themselves areSendable
. Users can get around this by adding@unchecked Sendable
to each individualModel
class, but this of course does not confer actual safety; it just disables the compiler’s warnings.Also adds some missing APIs to
FluentSQL
to allow encoding Fluent models to SQLKit queries. The existing APIs for decoding Fluent models from SQLKit queries have been renamed, and the old names deprecated.Other changes:
- The performance improvements for
Mirror
are now used in Swift 5.10QueryHistory
is no longer thread-unsafe for reading- The minimum supported Swift version is now 5.8
SomeCodingKey
is now an alias for SQLKit’s version
This patch was released by @gwynne
Full Changelog: 1.47.3...1.48.0