Skip to content

Releases: vapor/fluent

Update to Vapor 4 GM

09 Apr 18:08
4401a7e

Choose a tag to compare

Update to Vapor 4 GM Pre-release
Pre-release
This patch was authored and released by @tanner0101.

Updated for final Vapor 4.0.0 release (#672).

  • ModelUser renamed to ModelAuthenticatable.
  • ModelUserToken renamed to ModelTokenAuthenticatable.
  • Sessions authenticator now creatable via static method.
- app.fluent.sessions.middleware()
+ User.sessionAuthenticator()
  • New ModelSessionAuthenticatable helper protocol added.
  • Session renamed to SessionRecord. Now uses _fluent_sessions schema.

Release Candidate 1

01 Mar 22:10

Choose a tag to compare

Release Candidate 1 Pre-release
Pre-release

Updates to Swift 5.2.

Release candidates represent the final shift toward focusing on bug fixes and documentation. Breaking changes will only be accepted for critical issues. We expect a final release of this package shortly after Swift 5.2's release date.

Fluent Beta 3

26 Feb 23:07
ba878e2

Choose a tag to compare

Fluent Beta 3 Pre-release
Pre-release
  • Now compatible with latest Vapor beta 4 and FluentKit beta 5

Export Custom Operators

05 Feb 21:00
74c64be

Choose a tag to compare

Pre-release

Provides a workaround for SR-12132 which causes custom operators defined in FluentKit to not be exported correctly (fixes vapor/fluent-kit#144, #656)

Custom operators for String filtering will now be available by importing just Fluent:

  • ~~: Value contains string
  • =~: Value has string prefix
  • ~=: Value has string suffix
  • !~: Value doesn't contain string
  • !=~: Value doesn't have string prefix
  • !~=: Value doesn't have string suffix

As well as operators for Array filtering:

  • ~~: Value in array
  • !~: Value not in array

Add ModelUser and ModelUserToken

21 Jan 03:32
8dede23

Choose a tag to compare

Pre-release

Adds two new protocols ModelUser and ModelUserToken for easily implementing basic and bearer authentication using Fluent models. Docs will be available at https://docs.vapor.codes/4.0/fluent/authentication/

Add autoMigrate and autoRevert methods

18 Jan 21:02
fa4382f

Choose a tag to compare

Pre-release

Adds autoMigrate and autoRevert methods to Application. These methods allow for programmatically running the equivalent of --auto-migrate and --auto-revert.

try app.autoMigrate().wait()

These methods are useful when working with ephemeral databases like in-memory SQLite and for testing.

Pagination

16 Jan 23:03
7793f5c

Choose a tag to compare

Pagination Pre-release
Pre-release

Implements pagination helpers using new APIs from vapor/fluent-kit#130.

struct TodoController {
    func index(req: Request) throws -> EventLoopFuture<Page<Todo>> {
        Todo.query(on: req.db).paginate(for: req)
    }
}

Fluent 4.0.0 Beta 2

09 Dec 19:35
5adacb3

Choose a tag to compare

Fluent 4.0.0 Beta 2 Pre-release
Pre-release

Updated to latest Vapor and FluentKit beta 2 changes.

Fluent 4.0.0 Beta 1

24 Oct 22:14
96f2ab8

Choose a tag to compare

Fluent 4.0.0 Beta 1 Pre-release
Pre-release
  • Added DatabaseSessions and Session models for storing Vapor request sessions in your database. (#645)
  • Added Request.db helper for accessing request-specific database context.

Fluent 3.2.1

07 Oct 18:53
783819d

Choose a tag to compare

  • Fixed an issue preventing soft-deleted rows from being force deleted. (#627, #628)