Skip to content

Commit f80bd13

Browse files
Merge pull request #120 from NeedleInAJayStack/fix/identifier-availability
fix: Updates Identifier availability flag
2 parents c33dd29 + d969d4e commit f80bd13

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Sources/Graphiti/Connection/Connection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public struct Connection<Node: Encodable>: Encodable {
77
public let pageInfo: PageInfo
88
}
99

10-
@available(OSX 10.15, *)
10+
@available(macOS 10.15, macCatalyst 13.0, iOS 13.0, tvOS 13, watchOS 6.0, *) // For Identifiable
1111
public extension Connection where Node: Identifiable, Node.ID: LosslessStringConvertible {
1212
static func id(_ cursor: String) -> Node.ID? {
1313
cursor.base64Decoded().flatMap { Node.ID($0) }
@@ -18,7 +18,7 @@ public extension Connection where Node: Identifiable, Node.ID: LosslessStringCon
1818
}
1919
}
2020

21-
@available(OSX 10.15, *)
21+
@available(macOS 10.15, macCatalyst 13.0, iOS 13.0, tvOS 13, watchOS 6.0, *) // For Identifiable
2222
public extension EventLoopFuture where Value: Sequence, Value.Element: Encodable & Identifiable,
2323
Value.Element.ID: LosslessStringConvertible {
2424
func connection(from arguments: Paginatable) -> EventLoopFuture<Connection<Value.Element>> {
@@ -65,7 +65,7 @@ public extension EventLoopFuture where Value: Sequence, Value.Element: Encodable
6565
}
6666
}
6767

68-
@available(OSX 10.15, *)
68+
@available(macOS 10.15, macCatalyst 13.0, iOS 13.0, tvOS 13, watchOS 6.0, *) // For Identifiable
6969
public extension Sequence where Element: Encodable & Identifiable,
7070
Element.ID: LosslessStringConvertible {
7171
func connection(from arguments: Paginatable) throws -> Connection<Element> {

Tests/GraphitiTests/StarWarsTests/StarWarsQueryTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import GraphQL
33
import NIO
44
import XCTest
55

6-
@available(OSX 10.15, *)
76
class StarWarsQueryTests: XCTestCase {
87
private let api = StarWarsAPI()
98
private var group = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
@@ -832,7 +831,6 @@ class StarWarsQueryTests: XCTestCase {
832831
}
833832
}
834833

835-
@available(OSX 10.15, *)
836834
extension StarWarsQueryTests {
837835
static var allTests: [(String, (StarWarsQueryTests) -> () throws -> Void)] {
838836
return [

0 commit comments

Comments
 (0)