Skip to content

Releases: vapor/fluent

Release Candidate 1

01 Mar 22:10
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
  • Fixed an issue preventing soft-deleted rows from being force deleted. (#627, #628)

Fluent 4.0.0 Alpha 2.1

29 Aug 21:35
Compare
Choose a tag to compare
Pre-release

Notes: This updated ConsoleKit release includes property wrapper support and internal cleanup. Fluent's MigrateCommand, and --auto-migrate and --auto-revert flags have been updated to use the new syntax.