Skip to content

Releases: vapor/postgres-kit

2.15.1 - Ensure error messages thrown by data decoding provide useful information

30 Dec 16:34
7c07955

Choose a tag to compare

What's Changed

Ensure error messages thrown by data decoding provide useful information by @gwynne in #277

Under some conditions, a failed attempt to decode data from an SQLRow (whether via SQLKit or through Fluent) would throw errors whose descriptions were missing information critical to understanding the problem. This fixes that.

Also adds some useful notes about using PostgresKit with PostgresClient to the README.

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 2.15.0...2.15.1

2.15.0 - Bump Swift minimum to 6.0

27 Oct 17:50
fe44bbe

Choose a tag to compare

What's Changed

Bump Swift minimum to 6.0 by @gwynne in #275

Also update CI and convert the tests to SwiftTesting.

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 2.14.1...2.15.0

2.14.1 - Minor cleanups

26 Aug 18:27
d2fd317

Choose a tag to compare

What's Changed

Minor cleanups by @gwynne in #273

Bump Swift min to 5.10, update README and API docs, clean up some doc comments, run swift-format, fix warning about retroactive conformance in 6.2.

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 2.14.0...2.14.1

2.14.0 - Sendable cleanup

18 Mar 17:59
f4d4b9e

Choose a tag to compare

What's Changed

Sendable cleanup by @gwynne in #271

SQLPostgresConfiguration is now Sendable, and Sendable warnings for the use of SQLDatabase.withSession(_:) have been fixed.

Additional changes:

  • Swift minimum bumped to 5.9
  • Several miscellaneous warnings fixed
  • Cleanup of tests
  • Minimal formatting pass on all code
  • Update API docs theme settings
This patch was released by @gwynne

Full Changelog: 2.13.5...2.14.0

2.13.5 - Use logging metadata when logging queries

29 May 17:14
0b72fa8

Choose a tag to compare

What's Changed

Use logging metadata when logging queries by @gwynne in #266

When a query is executed, the actual SQL query and its accompanying array of bound parameters (if any) are now logged as structured metadata on the logger using a generic message, rather than the query and bindings being the message. This follows the recommended guidelines for logging in libraries. Credit goes to @MahdiBM for the original suggestion.

Before:

2024-05-29T00:00:00Z debug codes.vapor.fluent : database-id=psql [PostgresKit] SELECT * FROM foo WHERE a=$1 [["bar"]]

After:

2024-05-29T00:00:00Z debug codes.vapor.fluent : database-id=psql sql=SELECT * FROM foo WHERE a=$1 binds=["bar"] [PostgresKit] Executing query
This patch was released by @gwynne

Full Changelog: 2.13.4...2.13.5

2.13.4 - Update required versions of dependencies

16 May 20:03
75004d9

Choose a tag to compare

What's Changed

Update required versions of dependencies by @gwynne in #265

Also removes the now unneeded dependency on SwiftAtomics.

This patch was released by @gwynne

Full Changelog: 2.13.3...2.13.4

2.13.3 - Override SQLDataType.blob to BYTEA for SQLKit users

02 May 08:53
ad8ae1e

Choose a tag to compare

What's Changed

Override SQLDataType.blob to BYTEA for SQLKit users by @gwynne in #264

Fluent already does this for users of FluentPostgresDriver, this just adds the same behavior to the equivalent data type at the SQLKit layer.

This patch was released by @gwynne

Full Changelog: 2.13.2...2.13.3

2.13.2 - Fix package manifest

26 Apr 22:09
3d34228

Choose a tag to compare

What's Changed

Fix package manifest by @gwynne in #262

The Package.swift for PostgresKit incorrectly specified the ExistentialAny feature with Swift 5.8. Add a 5.9 manifest to specify it for 5.9 and later.

This patch was released by @gwynne

Full Changelog: 2.13.1...2.13.2

2.13.1 - Add missing Sendable annotations

02 Apr 15:51
e26763a

Choose a tag to compare

What's Changed

Add missing Sendable annotations by @gwynne in #260

Adds two Sendable annotations that were missed in the previous update.

This patch was released by @gwynne

Full Changelog: 2.13.0...2.13.1

2.13.0 - Apply updates for improved interop with SQLKit

25 Mar 05:36
f6c1bff

Choose a tag to compare

What's Changed

Apply updates for improved interop with SQLKit by @gwynne in #259

These changes bump the minimum Swift version to 5.8 and prepare PostgresKit for SQLKit’s overhaul PR. The SQLKit changes are NOT required by this update.

Reviewers

Thanks to the reviewers for their help:

This patch was released by @gwynne

Full Changelog: 2.12.3...2.13.0