Skip to content

Commit

Permalink
Merge pull request #120 from NeedleInAJayStack/fix/identifier-availab…
Browse files Browse the repository at this point in the history
…ility

fix: Updates Identifier availability flag
  • Loading branch information
NeedleInAJayStack committed Jun 12, 2023
2 parents c33dd29 + d969d4e commit f80bd13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Sources/Graphiti/Connection/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public struct Connection<Node: Encodable>: Encodable {
public let pageInfo: PageInfo
}

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

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

@available(OSX 10.15, *)
@available(macOS 10.15, macCatalyst 13.0, iOS 13.0, tvOS 13, watchOS 6.0, *) // For Identifiable
public extension Sequence where Element: Encodable & Identifiable,
Element.ID: LosslessStringConvertible {
func connection(from arguments: Paginatable) throws -> Connection<Element> {
Expand Down
2 changes: 0 additions & 2 deletions Tests/GraphitiTests/StarWarsTests/StarWarsQueryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import GraphQL
import NIO
import XCTest

@available(OSX 10.15, *)
class StarWarsQueryTests: XCTestCase {
private let api = StarWarsAPI()
private var group = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount)
Expand Down Expand Up @@ -832,7 +831,6 @@ class StarWarsQueryTests: XCTestCase {
}
}

@available(OSX 10.15, *)
extension StarWarsQueryTests {
static var allTests: [(String, (StarWarsQueryTests) -> () throws -> Void)] {
return [
Expand Down

0 comments on commit f80bd13

Please sign in to comment.