Skip to content

Releases: vapor/postgres-nio

PostgresNIO 1.14.1

03 May 07:44
dbf9c2e
Compare
Choose a tag to compare

SemVer Patch

  • Use #fileID and #filePath instead of #file (#348, #355)
  • Fix crash in row streams that are cancelled and timeout (#347, #351, #353)
  • Add PostgresRow decoding tests, reformat Package.swift (#346)

Other Changes

Full Changelog: 1.14.0...1.14.1

PostgresNIO 1.14.0

20 Apr 12:12
98b8e1b
Compare
Choose a tag to compare

SemVer Minor

  • Make PostgresBindings.append(PostgresData) public (#332)
  • Drop support for Swift 5.5 (#336)
  • Mark RowDescription.Column (#338)
  • Make PSQLError public (#342)
  • Deprecating PostgresDataConvertible, PostgresMessageType (#313)
  • Add support for UDS and existing Channels (#335)

SemVer Patch

  • Require new swift-nio versions (#343)

Other changes

  • Update CI in preparation for bumping to 5.6 min version (#337)

Full Changelog: 1.13.0...1.14.0

PostgresNIO 1.13.0

13 Mar 16:39
5d93f3e
Compare
Choose a tag to compare

SemVer Minor

  • Add new protocol PostgresNonThrowingEncodable (#322)
  • PostgresQuery and PostgresBindings should be Sendable (#328)
  • Make Decodable autoconformance to PostgresDecodable public (#331 by @jtouzy)

SemVer Patch

  • Use NIOFoundationCompat for UUID <-> ByteBuffer (#319)
  • PostgresCodable should be a typealias (#321)
  • Fix en- and decoding of NULL values in arrays (#324 by @ehpi)

Other Changes

  • Update SPI info to point to our hosted docs (#325)
  • Update API Docs Workflow (#329)

New Contributors

Full Changelog: 1.12.1...1.13.0

PostgresNIO 1.12.1

26 Oct 15:57
7daf026
Compare
Choose a tag to compare

SemVer Patch

  • Use NIOThrowingAsyncSequenceProducer (#316, #317)

Other Changes

  • Link to swiftpackageindex for documentation (#308)
  • CI update for PostgreSQL 15 (#318)

Full Changelog: 1.12.0...1.12.1

PostgresNIO 1.12.0

07 Oct 16:04
c2cdd47
Compare
Choose a tag to compare

SemVer Minor

  • Increase bind parameters limit (#298 - by @MahdiBM)
  • Raise minimum Swift version to 5.5 (#310, #306 by @MahdiBM)
  • Remove need to supply PostgresDecodingContext on decode (#307, #312)

Other changes

  • Add docc catalog (#311)
  • Add docs outlining changes we made to PostgresRow/column(name:) (#312)
  • Update CI (#306 by @MahdiBM)

New Contributors

Full Changelog: 1.11.1...1.12.0

PostgresNIO 1.11.1

27 Sep 19:44
382b0e1
Compare
Choose a tag to compare

SemVer Patch

  • Use provided logger consistently in PostgresConnection.send(_:logger:) (#299)
  • Replace deprecated NIOAtomics with Swift Atomics (#300)
  • Replace Lock with new NIOLock (#305)

Other Changes

  • Enable SwiftPackageIndex docc hosting (#297)

Full Changelog: 1.11.0...1.11.1

PostgresNIO 1.11.0

04 Jun 11:00
d648c5b
Compare
Choose a tag to compare

SemVer Minor

  • Expose connectTimeout as a configuration option by @trasch in #276
  • Make backend key data optional allowing use with AWS RDS Proxy by @rausnitz in #296

Other Changes

  • Update good first issue workflow to work for multiple labels by @BennyDeBock in #291
  • Update README.md in #293

New Contributors

Full Changelog: 1.10.0...1.11.0

PostgresNIO 1.10.0

27 Apr 22:30
a7a160b
Compare
Choose a tag to compare

SemVer Minor

Other Changes

  • Switch this repo to doing its CI independently, plus some updates #284
  • Remove unused scripts #288
  • Update README to reflect latest changes #289

New Contributors

Full Changelog: 1.9.0...1.10.0

PostgresNIO 1.9.0

18 Mar 12:57
def4fe8
Compare
Choose a tag to compare

SemVer Minor

  • Allow unescaped SQL in PostgresQuery in #258
  • Remove connection state machine log in #266
  • Add EventLoop API that uses PostgresQuery in #265
  • Add contains(_:) to PostgresRandomAccessRow in #270

SemVer Patch

  • Use Int(exactly:) instead of restricting to 64 bit platforms in #267
  • Continue to make forward progress when cancelled in #261

Other Changes

  • Fix CI test link in README in #260
  • Update CI to 5.6 release and checkout@v3 in #269

Full Changelog: 1.8.0...1.9.0

PostgresNIO 1.8.0 (async/await)

11 Mar 14:38
57fda42
Compare
Choose a tag to compare

This release adds Swift structured concurrency APIs (async/await). It is now possible to run queries like this:

let role = "admin"
let rows = try await connection.query("SELECT id, username, birthday FROM users WHERE role = \(role)", logger: logger)
for try await (id, username, birthday) in rows.decode((Int, String, Date).self, context: .default) {
  // do something with the returned values
}

For more information please read the updated README.

What's Changed

  • Fix typo in README.md by @flix477 in #208
  • Remove PSQLJSONDecoder from PSQLConnection in #214
  • Merge type PSQLFormat into PostgresFormat in #212
  • Remove PSQLJSONDecoder in #216
  • Merge PSQLDataType with PostgresDataType in #213
  • Remove PSQLJSONEncoder in #215
  • PSQLDecodingError improvements in #211
  • Add async option to PSQLRowStream in #206
  • Make PSQLDecodingContext generic in #217
  • Cut back on number of CI jobs in #218
  • Extend PostgresCastingError in #221
  • Add PostgresCell in #220
  • Add PSQLRow multi decode in #222
  • Add PostgresQuery in #223
  • Rename PSQLDecodable to PostgresDecodable in #224
  • Rename PSQLCodable to PostgresCodable in #225
  • Rename PSQLRowSequence to PostgresRowSequence in #226
  • Rename PSQLEncodingContext to PostgresEncodingContext in #227
  • Move all PostgresConnection code into one file in #228
  • Deprecate unused postgres messages in #229
  • Cleanup encoding and decoding in #230
  • Merge PSQLRow into PostgresRow in #219
  • Replace all EncoderContext/DecoderContext uses of .forTests with .default in #231
  • Add an async query API (internal for now) in #233
  • Add PostgresRowSequence multi decode in #232
  • [BufferMessageEncoder] Reduce the number of force unwraps in #234
  • [PostgresRowSequence] Make StateMachine private in #235
  • Rename PSQLRow multi decode to PostgresRow multi decode in #236
  • Explicit TLS config in #237
  • Rename PSQLFrontendMessage to PostgresFrontendMessage in #239
  • Rename PSQLBackendMessage to PostgresBackendMessage in #238
  • Merge PSQLConnection into PostgresConnection in #240
  • Cleanup PostgresDecodable in #241
  • Make PostgresEncodingContext & PostgresDecodingContext public in #243
  • Add Sendable checking in #242
  • Add good first issue project board workflow to repository by @BennyDeBock in #246
  • New PostgresConnection connect API in #245
  • Make new Postgres decoding public in #244
  • Make PostgresRowSequence public in #247
  • Make Postgres Encodable public in #248
  • Make Postgres async query public in #249
  • Rename PostgresBackendMessageDecoder in #252
  • Add support for Network.framework in #253
  • Make DataRow Sendable in #250
  • Rename PostgresChannelHandler in #251
  • README update for async/await in #254
  • Fix missing links in #255

New Contributors

Full Changelog: 1.7.2...1.8.0