Skip to content

Commit 606c68a

Browse files
authored
Require new swift-nio versions and fix warnings (vapor#343)
1 parent 18a60ef commit 606c68a

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

Package.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ let package = Package(
1313
.library(name: "PostgresNIO", targets: ["PostgresNIO"]),
1414
],
1515
dependencies: [
16-
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.0.2"),
17-
.package(url: "https://github.com/apple/swift-nio.git", from: "2.44.0"),
18-
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.13.1"),
19-
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.22.1"),
16+
.package(url: "https://github.com/apple/swift-atomics.git", from: "1.1.0"),
17+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.50.0"),
18+
.package(url: "https://github.com/apple/swift-nio-transport-services.git", from: "1.16.0"),
19+
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.23.1"),
2020
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0"),
2121
.package(url: "https://github.com/apple/swift-metrics.git", from: "2.0.0"),
22-
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.4"),
22+
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.2"),
2323
],
2424
targets: [
2525
.target(name: "PostgresNIO", dependencies: [

Sources/PostgresNIO/New/Data/UUID+PostgresCodable.swift

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import NIOCore
22
import struct Foundation.UUID
33
import typealias Foundation.uuid_t
4+
import NIOFoundationCompat
45

56
extension UUID: PostgresNonThrowingEncodable {
67
public static var psqlType: PostgresDataType {

Sources/PostgresNIO/New/PostgresCodable.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import NIOCore
2-
import Foundation
2+
import class Foundation.JSONEncoder
3+
import class Foundation.JSONDecoder
34

45
/// A type that can encode itself to a postgres wire binary representation.
56
public protocol PostgresEncodable {

Tests/PostgresNIOTests/New/PostgresQueryTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ final class PostgresQueryTests: XCTestCase {
99
let null: UUID? = nil
1010
let uuid: UUID? = UUID()
1111

12-
var query: PostgresQuery = """
12+
let query: PostgresQuery = """
1313
INSERT INTO foo (id, title, something) SET (\(uuid), \(string), \(null));
1414
"""
1515

0 commit comments

Comments
 (0)