I'm delighted to announce that the SwiftNIO project has just released SwiftNIO version 1.8.0. This release contains 10 changes from 4 contributors. Huge thanks to everyone who contributed!
The full release is available on the GitHub releases page, but the release notes are reproduced below:
Semver Minor
- Added new
ByteBufferViewtype, exposing portions of aByteBufferas aCollection<UInt8>. AddedByteBuffer.readableBytesViewandByteBuffer.viewBytes(at:length:)to obtainByteBufferViewobjects. - Renamed
MultiThreadedEventLoopGroup.init(numThreads:)toMultiThreadedEventLoopGroup.init(numberOfThreads:). Deprecated the old name. - Made
HTTPRequestDecoder.init(leftOverBytesStrategy:)andenum RemoveAfterUpgradeStrategypublic, which allows users creating custom HTTP pipelines to ensure that removingHTTPRequestDecoderafter an upgrade was attempted does not cause unexpected bytes delivery.
Semver Patch
- Confirmed internal
_UInt24and_UInt56structures toCustomStringConvertible. - Prevented crashes on macOS/iOS when under heavy load and remote peers close connections before we realise they connected.
- Miscellaneous code cleanups and testing improvements.