From 0b6efaf55feb8e119ad69a62e8ad4778462f249b Mon Sep 17 00:00:00 2001 From: Jay Herron Date: Mon, 25 Dec 2023 19:51:26 -0600 Subject: [PATCH 1/3] feature: Makes `print(ast: )` public --- Sources/GraphQL/Language/Printer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/GraphQL/Language/Printer.swift b/Sources/GraphQL/Language/Printer.swift index a91d85a6..0ab59bef 100644 --- a/Sources/GraphQL/Language/Printer.swift +++ b/Sources/GraphQL/Language/Printer.swift @@ -2,7 +2,7 @@ import Foundation /// Converts an AST into a string, using one set of reasonable /// formatting rules. -func print(ast: Node) -> String { +public func print(ast: Node) -> String { ast.printed } From 7e8949729b987f04a0a210f160c04485d1d30833 Mon Sep 17 00:00:00 2001 From: Jay Herron Date: Mon, 25 Dec 2023 19:51:55 -0600 Subject: [PATCH 2/3] feature: Makes `parse(source: String)` public --- Sources/GraphQL/Language/Parser.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/GraphQL/Language/Parser.swift b/Sources/GraphQL/Language/Parser.swift index 21b1eec5..57159646 100644 --- a/Sources/GraphQL/Language/Parser.swift +++ b/Sources/GraphQL/Language/Parser.swift @@ -2,7 +2,7 @@ * Given a GraphQL source, parses it into a Document. * Throws GraphQLError if a syntax error is encountered. */ -func parse( +public func parse( instrumentation: Instrumentation = NoOpInstrumentation, source: String, noLocation: Bool = false From b47c3b680093ab1dfdeaac2f67d8603e1db2971a Mon Sep 17 00:00:00 2001 From: Jay Herron Date: Sat, 8 Jun 2024 23:30:40 -0500 Subject: [PATCH 3/3] refactor: Satisfy linter --- Sources/GraphQL/Subscription/EventStream.swift | 2 +- Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/GraphQL/Subscription/EventStream.swift b/Sources/GraphQL/Subscription/EventStream.swift index 8e594567..54eaf102 100644 --- a/Sources/GraphQL/Subscription/EventStream.swift +++ b/Sources/GraphQL/Subscription/EventStream.swift @@ -27,7 +27,7 @@ open class EventStream { -> ConcurrentEventStream { let newStream = stream.mapStream(closure) - return ConcurrentEventStream.init(newStream) + return ConcurrentEventStream(newStream) } } diff --git a/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift b/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift index edf70e11..cb1ac196 100644 --- a/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift +++ b/Tests/GraphQLTests/SubscriptionTests/SimplePubSub.swift @@ -35,7 +35,7 @@ import GraphQL ) subscribers.append(subscriber) } - return ConcurrentEventStream.init(asyncStream) + return ConcurrentEventStream(asyncStream) } }