Releases: vapor/fluent
4.10.0 - Fix up Fluent provider for Sendable-correct FluentKit
What's Changed
Fix up Fluent provider for Sendable-correct FluentKit by @gwynne in #774
Updates the Fluent provider for the 1.48.0 release of FluentKit, which adds mostly-complete
Sendable
-correctness. Also bumps minimum Swift version to 5.8, matching FluentKit.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 4.9.0...4.10.0
4.9.0 - Asyncification of Fluent provider
What's Changed
Asyncification of Fluent provider by @gwynne in #772
Updates the Fluent provider package to be (mostly)
Sendable
-correct and switchesMigrateCommand
to being async to avoid dangerous misuse ofEventLoopFuture.wait()
.Bumps minimum Swift version to 5.7 (matching Vapor).
This patch was released by @gwynne
Full Changelog: 4.8.0...4.9.0
Update min Swift version to 5.6 and make platform versions consistent
This patch was authored and released by @gwynne.
Update to match FluentKit's declared version minimums
This patch was authored and released by @gwynne.
This should help fix building in Xcode.
Also bumps minimum Swift version to 5.5.2 and removes outdated compiler conditionals on concurrency support, incidentally enabling back-deployment in the process.
Add migrationLogLevel configuration
This patch was authored by @madsodgaard and released by @gwynne.
Adds the possibility to configure the log level for migrations with:
app.fluent.migrationLogLeveL = .debug
Update minimum Swift version to 5.5
This patch was authored and released by @gwynne.
Also updates very ancient CI.
Add `asyncCredentialsAuthenticator` to `ModelCredentialsAuthenticatable`
Add support for async/await
This patch was authored and released by @0xTim.
Adds initial support for async/await
Fix conditional Codable conformance
This patch was authored and released by @siemensikkema.
This fixes an issue introduced in vapor/fluent-kit#435 where Page
does not automatically conform to Codable
anymore (#730)
Add page size limit
This patch was authored by @pulpn0ir and released by @siemensikkema.
Adds a means to prevent server overloads by limiting the maximum amount of elements returned in a single page.
Application
and Request
have been extended with setters for page size limits. Set limits using the newly introduced PageLimit
type.
// Set page size limit for the current request. Default is `nil`, which means no limit.
request.fluent.pagination.pageSizeLimit = 3
// Setting the request-level limit to `nil` will cause the application-level limit to be used instead.
request.fluent.pagination.pageSizeLimit = nil
// Use `.noLimit` if you intend to override a limit set on application level.
request.fluent.pagination.pageSizeLimit = .noLimit
// Set application-wide page size limit. Default is `nil`, which means no limit.
application.fluent.pagination.pageSizeLimit = 3
This PR depends on: vapor/fluent-kit#412