vapor/fluent
### [`v4.4.0`](https://togithub.com/vapor/fluent/releases/4.4.0)
[Compare Source](https://togithub.com/vapor/fluent/compare/4.3.1...4.4.0)
###### *This patch was authored and released by [@0xTim](https://togithub.com/0xTim).*
Adds initial support for async/await
### [`v4.3.1`](https://togithub.com/vapor/fluent/releases/4.3.1)
[Compare Source](https://togithub.com/vapor/fluent/compare/4.3.0...4.3.1)
###### *This patch was authored and released by [@siemensikkema](https://togithub.com/siemensikkema).*
This fixes an issue introduced in [https://github.com/vapor/fluent-kit/pull/435](https://togithub.com/vapor/fluent-kit/pull/435) where `Page` does not automatically conform to `Codable` anymore ([#730](https://togithub.com/vapor/fluent/issues/730))
### [`v4.3.0`](https://togithub.com/vapor/fluent/releases/4.3.0)
[Compare Source](https://togithub.com/vapor/fluent/compare/4.2.0...4.3.0)
###### *This patch was authored by [@pulpn0ir](https://togithub.com/pulpn0ir) and released by [@siemensikkema](https://togithub.com/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.
```swift
// 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: [https://github.com/vapor/fluent-kit/pull/412](https://togithub.com/vapor/fluent-kit/pull/412)
### [`v4.2.0`](https://togithub.com/vapor/fluent/releases/4.2.0)
[Compare Source](https://togithub.com/vapor/fluent/compare/4.1.0...4.2.0)
###### *This patch was authored and released by [@tanner0101](https://togithub.com/tanner0101).*
Add Fluent implementation for Vapor's new cache protocol: [https://github.com/vapor/vapor/pull/2558](https://togithub.com/vapor/vapor/pull/2558)
```swift
app.caches.use(.fluent)
// Or with specific database id
app.caches.use(.fluent(.foo))
```
Make sure to add the `CacheEntry` migration (similar to `SessionRecord`).
```swift
app.migrations.add(CacheEntry.migration)
```
### [`v4.1.0`](https://togithub.com/vapor/fluent/releases/4.1.0)
[Compare Source](https://togithub.com/vapor/fluent/compare/4.0.0...4.1.0)
###### *This patch was authored and released by [@0xTim](https://togithub.com/0xTim).*
Improves the experience for users writing web applications. Adds a `ModelCredentialsAuthenticator` to automatically conform `Model` types to `CredentialsAuthenticatable` and provide a middleware to use.
This can be used when logging in users via a web form, as shown in the tests. This also backfills some tests for ModelSessionAuthenticatable.
Also fixes a bug where the SessionAuthenticator was not using the provided `DatabaseID`
Resolves [#710](https://togithub.com/vapor/fluent/issues/710)
Resolves [#701](https://togithub.com/vapor/fluent/issues/701)
Docs here [vapor/docs#576](https://togithub.com/vapor/docs/issues/576)
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
from: "4.0.0"
->from: "4.4.0"
Release Notes
vapor/fluent
### [`v4.4.0`](https://togithub.com/vapor/fluent/releases/4.4.0) [Compare Source](https://togithub.com/vapor/fluent/compare/4.3.1...4.4.0) ###### *This patch was authored and released by [@0xTim](https://togithub.com/0xTim).* Adds initial support for async/await ### [`v4.3.1`](https://togithub.com/vapor/fluent/releases/4.3.1) [Compare Source](https://togithub.com/vapor/fluent/compare/4.3.0...4.3.1) ###### *This patch was authored and released by [@siemensikkema](https://togithub.com/siemensikkema).* This fixes an issue introduced in [https://github.com/vapor/fluent-kit/pull/435](https://togithub.com/vapor/fluent-kit/pull/435) where `Page` does not automatically conform to `Codable` anymore ([#730](https://togithub.com/vapor/fluent/issues/730)) ### [`v4.3.0`](https://togithub.com/vapor/fluent/releases/4.3.0) [Compare Source](https://togithub.com/vapor/fluent/compare/4.2.0...4.3.0) ###### *This patch was authored by [@pulpn0ir](https://togithub.com/pulpn0ir) and released by [@siemensikkema](https://togithub.com/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. ```swift // 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: [https://github.com/vapor/fluent-kit/pull/412](https://togithub.com/vapor/fluent-kit/pull/412) ### [`v4.2.0`](https://togithub.com/vapor/fluent/releases/4.2.0) [Compare Source](https://togithub.com/vapor/fluent/compare/4.1.0...4.2.0) ###### *This patch was authored and released by [@tanner0101](https://togithub.com/tanner0101).* Add Fluent implementation for Vapor's new cache protocol: [https://github.com/vapor/vapor/pull/2558](https://togithub.com/vapor/vapor/pull/2558) ```swift app.caches.use(.fluent) // Or with specific database id app.caches.use(.fluent(.foo)) ``` Make sure to add the `CacheEntry` migration (similar to `SessionRecord`). ```swift app.migrations.add(CacheEntry.migration) ``` ### [`v4.1.0`](https://togithub.com/vapor/fluent/releases/4.1.0) [Compare Source](https://togithub.com/vapor/fluent/compare/4.0.0...4.1.0) ###### *This patch was authored and released by [@0xTim](https://togithub.com/0xTim).* Improves the experience for users writing web applications. Adds a `ModelCredentialsAuthenticator` to automatically conform `Model` types to `CredentialsAuthenticatable` and provide a middleware to use. This can be used when logging in users via a web form, as shown in the tests. This also backfills some tests for ModelSessionAuthenticatable. Also fixes a bug where the SessionAuthenticator was not using the provided `DatabaseID` Resolves [#710](https://togithub.com/vapor/fluent/issues/710) Resolves [#701](https://togithub.com/vapor/fluent/issues/701) Docs here [vapor/docs#576](https://togithub.com/vapor/docs/issues/576)Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.