Skip to content

4.94.0 - Migrate to Async NIOFileIO APIs

Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 24 Apr 01:04
· 11 commits to main since this release
4c80aab

What's Changed

Migrate to Async NIOFileIO APIs by @0xTim in #3167

This migrates collectFile(at:) and writeFile(_:at:) to use NIO’s async NIOFileIO APIs introduced in https://github.com/apple/swift-nio/releases/tag/2.63.0

Also adds a new API for streaming files using a AsyncSequence based on the new NIOFileSystem.

This work is required to move the DotEnv support over to an async API to avoid calling wait()s in an async context which can cause issues

Reviewers

Thanks to the reviewers for their help:

This patch was released by @0xTim

Full Changelog: 4.93.2...4.94.0