Skip to content

Commit 2cbc8b9

Browse files
feat!: Deletes deprecated Node.set func
1 parent 0d90d04 commit 2cbc8b9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

MIGRATION.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ The `SubscriptionResult` type was removed, and `graphqlSubscribe` now returns a
2828

2929
The `Instrumentation` type has been removed, with anticipated support for tracing using [`swift-distributed-tracing`](https://github.com/apple/swift-distributed-tracing). `instrumentation` arguments must be removed from `graphql` and `graphqlSubscribe` calls.
3030

31+
### AST Node `set`
32+
33+
The deprecated `Node.set(value: Node?, key: String)` function was removed in preference of the `Node.set(value _: NodeResult?, key _: String)`. Change any calls from `node.set(value: node, key: string)` to `node.set(.node(node), string)`.
34+
3135
## 2 to 3
3236

3337
### TypeReference removal

Sources/GraphQL/Language/AST.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,6 @@ public extension Node {
213213
return nil
214214
}
215215

216-
@available(*, deprecated, message: "Use set(value _: NodeResult?, key _: String)")
217-
func set(value: Node?, key: String) {
218-
return set(value: value.map { .node($0) }, key: key)
219-
}
220-
221216
func set(value _: NodeResult?, key _: String) {
222217
// This should be overridden by each type on which it should do something
223218
}

0 commit comments

Comments
 (0)