github vapor/vapor 4.97.0
4.97.0 - Provide AsyncFileStreaming API

latest releases: 4.106.3, 4.106.2, 4.106.1...
6 months ago

What's Changed

Provide AsyncFileStreaming API by @0xTim in #3184

Builds on the work of #2998, #3170 and #3167 to provide a full async streaming API that can be used in Swift Concurrency environments:

  • Provides a new asyncStreamFile(at:chunkSize:mediaType:advancedETagComparison:onCompleted:) that takes advantage of the full async response streaming
  • Fixes a number of bugs with the async Response body streaming
  • FileMiddleware is now an AsyncMiddleware
  • Replaces usages of FileManager with NIOFileSystem apart from in one deprecated API that can’t be async
  • Correctly marks XCTVapor functions as noasync where they use .wait() and provides proper async alternatives
This patch was released by @0xTim

Full Changelog: 4.96.0...4.97.0

Don't miss a new vapor release

NewReleases is sending notifications on new releases.