From d969d4e87d7c7e0759dc2def8199d7cb85443c2a Mon Sep 17 00:00:00 2001 From: Jay Herron Date: Sun, 11 Jun 2023 22:06:23 -0600 Subject: [PATCH] fix: Updates Identifier availability flag --- Sources/Graphiti/Connection/Connection.swift | 6 +++--- Tests/GraphitiTests/StarWarsTests/StarWarsQueryTests.swift | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Sources/Graphiti/Connection/Connection.swift b/Sources/Graphiti/Connection/Connection.swift index 99db928..67bc554 100644 --- a/Sources/Graphiti/Connection/Connection.swift +++ b/Sources/Graphiti/Connection/Connection.swift @@ -7,7 +7,7 @@ public struct Connection: 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) } @@ -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> { @@ -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 { diff --git a/Tests/GraphitiTests/StarWarsTests/StarWarsQueryTests.swift b/Tests/GraphitiTests/StarWarsTests/StarWarsQueryTests.swift index a3fd4b6..ffa91df 100644 --- a/Tests/GraphitiTests/StarWarsTests/StarWarsQueryTests.swift +++ b/Tests/GraphitiTests/StarWarsTests/StarWarsQueryTests.swift @@ -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) @@ -832,7 +831,6 @@ class StarWarsQueryTests: XCTestCase { } } -@available(OSX 10.15, *) extension StarWarsQueryTests { static var allTests: [(String, (StarWarsQueryTests) -> () throws -> Void)] { return [