Skip to content

Commit ba1f99f

Browse files
authored
Enable MemberImportVisibility upcoming feature (#241)
Signed-off-by: Adam Fowler <[email protected]>
1 parent 218eb07 commit ba1f99f

File tree

11 files changed

+16
-1
lines changed

11 files changed

+16
-1
lines changed

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ let defaultSwiftSettings: [SwiftSetting] =
77
[
88
.swiftLanguageMode(.v6),
99
.enableExperimentalFeature("AvailabilityMacro=valkeySwift 1.0:macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0"),
10+
11+
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
12+
.enableUpcomingFeature("MemberImportVisibility"),
1013
]
1114

1215
let package = Package(

Sources/Valkey/Commands/Custom/GeoCustomCommands.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// See LICENSE.txt for license information
66
// SPDX-License-Identifier: Apache-2.0
77
//
8+
import NIOCore
9+
810
/// A type that represents geographic coordinates.
911
@_documentation(visibility: internal)
1012
public struct GeoCoordinates: RESPTokenDecodable, Sendable {

Sources/Valkey/Commands/Custom/StringCustomCommands.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// See LICENSE.txt for license information
66
// SPDX-License-Identifier: Apache-2.0
77
//
8+
import NIOCore
9+
810
extension LCS {
911
/// - Returns: One of the following:
1012
/// * [Bulk string](https:/valkey.io/topics/protocol/#bulk-strings): the longest common subsequence.

Sources/Valkey/Connection/ValkeyConnection+ConnectionPool.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// SPDX-License-Identifier: Apache-2.0
77
//
88
import Logging
9+
import NIOCore
910
import Synchronization
1011
import _ValkeyConnectionPool
1112

Sources/Valkey/Subscriptions/SubscriptionConnectionStateMachine.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import Logging
1010
import Synchronization
11-
import _ValkeyConnectionPool
1211

1312
@available(valkeySwift 1.0, *)
1413
extension ValkeyNodeClient {

Sources/_ValkeyCommandsBuilder/SwiftString.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// See LICENSE.txt for license information
66
// SPDX-License-Identifier: Apache-2.0
77
//
8+
import Foundation
9+
810
extension StringProtocol {
911
var swiftFunction: String {
1012
self

Sources/_ValkeyCommandsBuilder/ValkeyCommandsRender.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// See LICENSE.txt for license information
66
// SPDX-License-Identifier: Apache-2.0
77
//
8+
import Foundation
9+
810
/// List of functions where the Response calculation has been disabled because we want
911
/// to override the response in the Valkey library
1012
private let disableResponseCalculationCommands: Set<String> = [

Tests/ClusterIntegrationTests/ClusterIntegrationTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88
import Foundation
99
import Logging
10+
import NIOCore
1011
import Testing
1112
import XCTest
1213

Tests/IntegrationTests/SubscriptionIntegrationTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import Foundation
99
import Logging
1010
import NIOCore
11+
import Synchronization
1112
import Testing
1213
import Valkey
1314

Tests/ValkeyTests/ValkeyChannelHandlerStateMachineTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// See LICENSE.txt for license information
66
// SPDX-License-Identifier: Apache-2.0
77
//
8+
import DequeModule
89
import NIOCore
910
import NIOEmbedded
1011
import Testing

0 commit comments

Comments
 (0)