Skip to content

Releases: vapor/fluent

4.10.0 - Fix up Fluent provider for Sendable-correct FluentKit

27 Apr 22:34
d831ac5
Compare
Choose a tag to compare

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

11 Jan 03:40
a586a5d
Compare
Choose a tag to compare

What's Changed

Asyncification of Fluent provider by @gwynne in #772

Updates the Fluent provider package to be (mostly) Sendable-correct and switches MigrateCommand to being async to avoid dangerous misuse of EventLoopFuture.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

14 Apr 01:01
4b4d8bf
Compare
Choose a tag to compare

Update to match FluentKit's declared version minimums

20 Mar 06:46
8d60150
Compare
Choose a tag to compare
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

12 Feb 13:56
4db22cc
Compare
Choose a tag to compare
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

27 Nov 02:53
2da106f
Compare
Choose a tag to compare
This patch was authored and released by @gwynne.

Also updates very ancient CI.

Add `asyncCredentialsAuthenticator` to `ModelCredentialsAuthenticatable`

16 Aug 16:22
26c4460
Compare
Choose a tag to compare
This patch was authored by @fatto and released by @0xTim.

Adds asyncCredentialsAuthenticator to ModelCredentialsAuthenticatable to allow it to be overridden if needs be

Add support for async/await

26 Oct 16:13
ea707ee
Compare
Choose a tag to compare
This patch was authored and released by @0xTim.

Adds initial support for async/await

Fix conditional Codable conformance

03 Jun 07:58
5810a40
Compare
Choose a tag to compare
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

24 May 20:47
c67c33a
Compare
Choose a tag to compare
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