Repository navigation
Nexio 2.0.0
Requirements: Swift 6.0 or later
Built and verified with: Xcode 27.1
This release updates the request pipeline and authentication behavior.
Breaking changes
- Built-in retry policies now retry only idempotent HTTP methods:
GET,HEAD,PUT,DELETE, andOPTIONS. - Cancellation now throws
CancellationError. - Endpoint auth overrides take precedence over global and dynamic authentication. Set
authto.some(.none)to send a request without credentials. - Reconfiguring the client replaces the existing session and retry policy.
Improvements
- Retries now cover HTTP 429 and 5xx responses, network errors, and timeouts.
- Retry behavior can be disabled when reconfiguring the client.
- Retry attempts re-enter the interceptor pipeline, allowing request adaptation such as token refresh on each attempt.
- Request logging redacts query values, URL credentials, and fragments.
- Requests with no endpoint auth disable cookie handling and remove common credential headers.
- Image loading checks for cancellation before decoding.
Migration notes
Review apps that depend on POST or PATCH retries, cancellation error handling, endpoint-level authentication, or reconfiguration behavior. Custom credential headers should not be used to bypass .some(.none) on public endpoints.