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
ByteBufferView
type, exposing portions of aByteBuffer
as aCollection<UInt8>
. AddedByteBuffer.readableBytesView
andByteBuffer.viewBytes(at:length:)
to obtainByteBufferView
objects. - Renamed
MultiThreadedEventLoopGroup.init(numThreads:)
toMultiThreadedEventLoopGroup.init(numberOfThreads:)
. Deprecated the old name. - Made
HTTPRequestDecoder.init(leftOverBytesStrategy:)
andenum RemoveAfterUpgradeStrategy
public, which allows users creating custom HTTP pipelines to ensure that removingHTTPRequestDecoder
after an upgrade was attempted does not cause unexpected bytes delivery.
Semver Patch
- Confirmed internal
_UInt24
and_UInt56
structures 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.