Skip to content

Release 2.1.0

Latest

Choose a tag to compare

@jmarek41 jmarek41 released this 17 Aug 19:46
fbb7d89

Upgrading

HTTPMethod now conforms to Sendable. If you added this workaround on 2.0.0, delete it — otherwise the compiler warns that the conformance was already stated in the type's module:

extension HTTPMethod: @retroactive @unchecked Sendable {}

You can now declare your own endpoint types Sendable, which resolves sending 'endpoint' risks causing data races when an endpoint is stored in actor-isolated state. Declare the endpoint outside a defaultIsolation(MainActor.self) target. MultipartEndpoint cannot opt in yet, because MultipartBodyPart holds an InputStream.

What's Changed

New Contributors

Full Changelog: 2.0.0...2.1.0