Skip to content

v0.4.1

Latest

Choose a tag to compare

@grdsdev grdsdev released this 01 Jul 18:03
76ded00

Bug Fixes

  • Fix HTTPBodyOutputStreamBridge state machine to handle terminal events gracefully: wroteFinalChunk and endEncountered no longer crash when called in the .closed state (swift-openapi-urlsession#95)
  • Fix errorOccurred in HTTPBodyOutputStreamBridge: the .initial state now correctly closes the stream instead of silently doing nothing
  • Add cancel(error:) to HTTPBodyOutputStreamBridge so the stream bridge can be cancelled externally with an optional error
  • Propagate URLSession task errors to the request stream bridge in BidirectionalStreamingURLSessionDelegate.didCompleteWithError (swift-openapi-urlsession#94)
  • Replace NSLock in HTTPBody with the internal pthread-based Lock, removing an Objective-C Foundation dependency for locking

Other

  • Add Scripts/check-upstream.sh to compare upstream swift-openapi-runtime and swift-openapi-urlsession files against local copies, making future syncs easier to spot