diff --git a/Package.resolved b/Package.resolved index 7b8fae1..1465c14 100644 --- a/Package.resolved +++ b/Package.resolved @@ -41,8 +41,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio.git", "state" : { - "revision" : "f7dc3f527576c398709b017584392fb58592e7f5", - "version" : "2.75.0" + "revision" : "34d486b01cd891297ac615e40d5999536a1e138d", + "version" : "2.83.0" } }, { diff --git a/Package.swift b/Package.swift index 649ecf9..71dc6ba 100644 --- a/Package.swift +++ b/Package.swift @@ -19,7 +19,7 @@ let package = Package( .target( name: "DataLoader", dependencies: [ - .product(name: "NIO", package: "swift-nio"), + .product(name: "NIOCore", package: "swift-nio"), .product(name: "NIOConcurrencyHelpers", package: "swift-nio"), ] ), @@ -30,7 +30,14 @@ let package = Package( .product(name: "AsyncCollections", package: "async-collections"), ] ), - .testTarget(name: "DataLoaderTests", dependencies: ["DataLoader"]), + .testTarget( + name: "DataLoaderTests", + dependencies: [ + "DataLoader", + .product(name: "NIOCore", package: "swift-nio"), + .product(name: "NIOPosix", package: "swift-nio"), + ] + ), .testTarget(name: "AsyncDataLoaderTests", dependencies: ["AsyncDataLoader"]), ] ) diff --git a/Sources/DataLoader/DataLoader.swift b/Sources/DataLoader/DataLoader.swift index 03374a2..65d9e78 100644 --- a/Sources/DataLoader/DataLoader.swift +++ b/Sources/DataLoader/DataLoader.swift @@ -1,5 +1,5 @@ -import NIO import NIOConcurrencyHelpers +import NIOCore public enum DataLoaderFutureValue { case success(T) diff --git a/Sources/DataLoader/DataLoaderOptions.swift b/Sources/DataLoader/DataLoaderOptions.swift index 5351637..429670c 100644 --- a/Sources/DataLoader/DataLoaderOptions.swift +++ b/Sources/DataLoader/DataLoaderOptions.swift @@ -1,4 +1,4 @@ -import NIO +import NIOCore public struct DataLoaderOptions { /// Default `true`. Set to `false` to disable batching, invoking diff --git a/Tests/DataLoaderTests/DataLoaderAbuseTests.swift b/Tests/DataLoaderTests/DataLoaderAbuseTests.swift index f99e0e3..4802b3f 100644 --- a/Tests/DataLoaderTests/DataLoaderAbuseTests.swift +++ b/Tests/DataLoaderTests/DataLoaderAbuseTests.swift @@ -1,4 +1,4 @@ -import NIO +import NIOPosix import XCTest @testable import DataLoader diff --git a/Tests/DataLoaderTests/DataLoaderAsyncTests.swift b/Tests/DataLoaderTests/DataLoaderAsyncTests.swift index 50f53f0..c96733b 100644 --- a/Tests/DataLoaderTests/DataLoaderAsyncTests.swift +++ b/Tests/DataLoaderTests/DataLoaderAsyncTests.swift @@ -1,4 +1,4 @@ -import NIO +import NIOPosix import XCTest @testable import DataLoader diff --git a/Tests/DataLoaderTests/DataLoaderTests.swift b/Tests/DataLoaderTests/DataLoaderTests.swift index 69d8f02..9e64539 100644 --- a/Tests/DataLoaderTests/DataLoaderTests.swift +++ b/Tests/DataLoaderTests/DataLoaderTests.swift @@ -1,4 +1,5 @@ -import NIO +import NIOCore +import NIOPosix import XCTest @testable import DataLoader