Skip to content

1.48.0 - Primary Sendable support for Fluent

Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 26 Apr 20:12
· 8 commits to main since this release
4fffbaa

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 make Model correctly Sendable due to limitations of how property wrappers work, even though the wrappers themselves are Sendable. Users can get around this by adding @unchecked Sendable to each individual Model 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.10
  • QueryHistory 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