Releases: vapor/postgres-kit
Fix passing the logger through on `PostgresConnectionSource`
This patch was authored by @joshuawright11 and released by @0xTim.
Pass the correct logger through to PostgresConnectionSource
to bring it in line with MySQLKit.
Fix `TLSConfiguration.forClient()` deprecation
This patch was authored by @axtonpitt and released by @0xTim.
Fixes:
warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
Add static `ianaPortNumber` property to `PostgresConfiguration`
This patch was authored and released by @gwynne.
Allows referencing the default PostgreSQL TCP port number (as assigned by the IANA) without hardcoding the number 5432
all over the place.
Use correct minimal dependency of PostgresNIO
This patch was authored by @siemensikkema and released by @0xTim.
PostgresKit relies on APIs introduced in PostgresNIO 1.4.0 and Package.swift
now reflects that (#200, fixes #199).
Use PostgresNIO's default JSON coders
This patch was authored by @jordanebelanger and released by @tanner0101.
This adds support for using non-Foundation JSON coders when decoding and encoding JSON columns (#195).
For example, if you want to use the pure-swift JSON coders, you can now do this during the configuration of your application:
import PureSwiftJSON
PostgresNIO._defaultJSONDecoder = PSJSONDecoder()
PostgresNIO._defaultJSONEncoder = PSJSONEncoder()
Do note that the JSON coders used here MUST be thread safe internally.
Fix PostgresColumnType.interval typo
This patch was authored by @code28 and released by @tanner0101.
Fixes typo in PostgresColumnType.interval
's string serialization (#194, fixes #193).
Enable RETURNING use in SQLKit
This patch was authored by @grahamburgsma and released by @tanner0101.
Support for the RETURNING clause was added in SQLKit 3.5.0 (#189).
This enables that functionality for Postgres by setting the SQLDialect
feature flag.
Fix force unwrap in PostgresDataDecoder
This patch was authored by @SusanDoggie and released by @tanner0101.
Replaces a force unwrap with a DecodingError
in PostgresDataDecoder
(#184).
PostgresKit 2.0.0
Docs:
https://github.com/vapor/postgres-kit/blob/master/README.md
More information on Vapor 4 official release:
https://forums.swift.org/t/vapor-4-official-release-begins/34802
Use default port for URLs
This patch was authored by @vknabel and released by @tanner0101.
Adds support for database urls not containing an explicit port: postgres://user:password@localhost/database
(#183).