Skip to content

fix: Updates Identifier availability flag #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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