Releases: maumar2000/TypedNetwork
Releases · maumar2000/TypedNetwork
0.1.0
Changelog
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
0.1.0 - 2026-05-20
Added
- Strongly-typed
Endpointprotocol with associatedResponseandFailuretypes APIClientactor as the single orchestration entry pointRequestBuilderto buildURLRequestfrom endpoints and base URLHTTPMethod,HTTPBody(JSON and raw data), headers, query items, and per-endpointtimeoutNetworkSessionabstraction withURLSessionconformance- Pluggable
ResponseDecoderwith defaultJSONResponseDecoder EmptyResponsefor 204 / no-body endpoints- Unified
NetworkError(transport,decoding,endpoint) mapped byAPIClient - Middleware chain with
nexttransport closure pattern AuthMiddlewarewith Bearer token injection and refresh on 401RetryMiddlewareandRetryPolicy(HTTP-status based retries withDurationdelay)LoggingMiddlewarefor request URL, method, headers, status, and durationMockMiddlewareandMockRegistryfor test doubles without real network callsRequestModifierintegrated intoRequestBuilderTokenStoreactor for auth token storage- Swift Testing test suite with Strict Concurrency enabled
Requirements
- iOS 16+
- macOS 13+
- Swift 5.9+