You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This removes the NIO dependency. It is breaking because it removes all Swift NIO-isms that were present in the public APIs (like EventLoopFuture and EventLoopGroup argument/return types).
Copy file name to clipboardExpand all lines: MIGRATION.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,22 @@
1
1
# Migration
2
2
3
-
## 2.0 to 3.0
3
+
## 3 to 4
4
+
5
+
### NIO removal
6
+
7
+
All NIO-based arguments and return types were removed, including all `EventLoopGroup` and `EventLoopFuture` parameters.
8
+
9
+
As such, all `execute` and `subscribe` calls should have the `eventLoopGroup` argument removed, and the `await` keyword should be used.
10
+
11
+
Also, all resolver closures must remove the `eventLoopGroup` argument, and all that return an `EventLoopFuture` should be converted to an `async` function.
12
+
13
+
The documentation here will be very helpful in the conversion: https://www.swift.org/documentation/server/guides/libraries/concurrency-adoption-guidelines.html
14
+
15
+
### `ConcurrentDispatchFieldExecutionStrategy`
16
+
17
+
This was changed to `ConcurrentFieldExecutionStrategy`, and takes no parameters.
18
+
19
+
## 2 to 3
4
20
5
21
### TypeReference removal
6
22
@@ -73,4 +89,4 @@ The following type properties were changed from arrays to closures. To get the a
73
89
74
90
### GraphQL type codability
75
91
76
-
With GraphQL type definitions now including closures, many of the objects in [Definition](https://github.com/GraphQLSwift/GraphQL/blob/main/Sources/GraphQL/Type/Definition.swift) are no longer codable. If you are depending on codability, you can conform the type appropriately in your downstream package.
92
+
With GraphQL type definitions now including closures, many of the objects in [Definition](https://github.com/GraphQLSwift/GraphQL/blob/main/Sources/GraphQL/Type/Definition.swift) are no longer codable. If you are depending on codability, you can conform the type appropriately in your downstream package.
0 commit comments