Skip to content

Commit 9cdb93e

Browse files
authored
Drop Swift 5.5 (#197)
Motivation Per SwiftNIO's formal version policy, we are ready to drop support for Swift 5.5. Modifications This patch removes the support for 5.5 and all supporting infrastructure. This includes the test generation functionality, which is no longer required, as well as the files generated by that functionality. It updates the dockerfile for 5.8, and it removes all conditional compilation checks that are now definitionally true. Result A nice, clean, 5.6+ codebase
1 parent 78d6cc4 commit 9cdb93e

File tree

53 files changed

+4
-1826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4
-1826
lines changed

[email protected]

Lines changed: 0 additions & 138 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ All code will go through code review like in the other repositories related to t
1414
`swift-nio-extras` part of the SwiftNIO 2 family of repositories and depends on the following:
1515

1616
- [`swift-nio`](https://github.com/apple/swift-nio), version 2.30.0 or better.
17-
- Swift 5.5.2
17+
- Swift 5.6
1818
- `zlib` and its development headers installed on the system. But don't worry, you'll find `zlib` on pretty much any UNIX system that can compile any sort of code.
1919

2020
To depend on `swift-nio-extras`, put the following in the `dependencies` of your `Package.swift`:
@@ -25,14 +25,15 @@ To depend on `swift-nio-extras`, put the following in the `dependencies` of your
2525

2626
### Support for older Swift versions
2727

28-
The most recent versions of SwiftNIO Extras support Swift 5.5.2 and newer. The minimum Swift version supported by SwiftNIO Extras releases are detailed below:
28+
The most recent versions of SwiftNIO Extras support Swift 5.6 and newer. The minimum Swift version supported by SwiftNIO Extras releases are detailed below:
2929

3030
SwiftNIO Extras | Minimum Swift Version
3131
--------------------|----------------------
3232
`1.0.0 ..< 1.10.0` | 5.0
3333
`1.10.0 ..< 1.11.0` | 5.2
3434
`1.11.0 ..< 1.14.0` | 5.4
35-
`1.14.0 ...` | 5.5.2
35+
`1.14.0 ..< 1.19.1` | 5.5.2
36+
`1.19.0 ...` | 5.6
3637

3738
On the [`nio-extras-0.1`](https://github.com/apple/swift-nio-extras/tree/nio-extras-0.1) branch, you can find the `swift-nio-extras` version for the SwiftNIO 1 family. It requires Swift 4.1 or better.
3839

Sources/NIOExtras/DebugInboundEventsHandler.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,5 @@ public class DebugInboundEventsHandler: ChannelInboundHandler {
175175
}
176176
}
177177

178-
#if swift(>=5.6)
179178
@available(*, unavailable)
180179
extension DebugInboundEventsHandler: Sendable {}
181-
#endif

Sources/NIOExtras/DebugOutboundEventsHandler.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,5 @@ public class DebugOutboundEventsHandler: ChannelOutboundHandler {
171171
}
172172
}
173173

174-
#if swift(>=5.6)
175174
@available(*, unavailable)
176175
extension DebugOutboundEventsHandler: Sendable {}
177-
#endif

Sources/NIOExtras/FixedLengthFrameDecoder.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,5 @@ public final class FixedLengthFrameDecoder: ByteToMessageDecoder {
7777
}
7878
}
7979

80-
#if swift(>=5.6)
8180
@available(*, unavailable)
8281
extension FixedLengthFrameDecoder: Sendable {}
83-
#endif

Sources/NIOExtras/JSONRPCFraming+ContentLengthHeader.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,8 @@ extension String {
217217

218218

219219

220-
#if swift(>=5.6)
221220
@available(*, unavailable)
222221
extension NIOJSONRPCFraming.ContentLengthHeaderFrameDecoder: Sendable {}
223222

224223
@available(*, unavailable)
225224
extension NIOJSONRPCFraming.ContentLengthHeaderFrameEncoder: Sendable {}
226-
#endif

Sources/NIOExtras/LengthFieldBasedFrameDecoder.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,5 @@ public final class LengthFieldBasedFrameDecoder: ByteToMessageDecoder {
247247
}
248248
}
249249

250-
#if swift(>=5.6)
251250
@available(*, unavailable)
252251
extension LengthFieldBasedFrameDecoder: Sendable {}
253-
#endif

Sources/NIOExtras/LengthFieldPrepender.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,5 @@ public final class LengthFieldPrepender: ChannelOutboundHandler {
145145
}
146146
}
147147

148-
#if swift(>=5.6)
149148
@available(*, unavailable)
150149
extension LengthFieldPrepender: Sendable {}
151-
#endif

Sources/NIOExtras/LineBasedFrameDecoder.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,5 @@ public class LineBasedFrameDecoder: ByteToMessageDecoder {
9292
}
9393
}
9494

95-
#if swift(>=5.6)
9695
@available(*, unavailable)
9796
extension LineBasedFrameDecoder: Sendable {}
98-
#endif

Sources/NIOExtras/PCAPRingBuffer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,5 @@ public class NIOPCAPRingBuffer {
9797
}
9898
}
9999

100-
#if swift(>=5.6)
101100
@available(*, unavailable)
102101
extension NIOPCAPRingBuffer: Sendable {}
103-
#endif

0 commit comments

Comments
 (0)