Skip to content

1.0.25

Choose a tag to compare

@siamakrostami siamakrostami released this 02 Jul 07:05
· 33 commits to main since this release

Fixed

  • Swift 6 Compatibility: Added Sendable constraint to streaming methods to resolve data race warnings
    • Fixed "sending 'decodedObject' risks causing data races" errors in StreamingSessionDelegate
    • All streaming methods now require decoded types to conform to both Codable and Sendable
    • Ensures thread-safe operation when passing decoded objects through continuations
  • Multi-Platform Support: Resolved Swift 6 strict concurrency build failures across all supported platforms:
    • iOS 13.0+
    • tvOS 13.0+
    • watchOS 7.0+
    • macOS 13.0+

Technical Details

  • Updated streamRequest<T> to require T: Codable & Sendable
  • Updated asyncStreamRequest<T> to require T: Codable & Sendable
  • Modified StreamingSessionDelegate<T> generic constraint to T: Codable & Sendable
  • No breaking changes for non-streaming API methods