This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
Releases: borchero/Squid
Releases · borchero/Squid
Squid 1.5.1
Allow Secure Protocol Settings on Service-Level
1.5.0 Fixes #21
Allow Reading Response Headers
- Added
header
computed property to theResponse
object returned by theschedule
method.
Allow empty POST body
1.4.1 Fixes #17
Add Service-Level Error Mapping
- It is now possible to perform service-level error mapping by overriding the
mapError(_ error: Squid.Error) -> Self.RequestError
method in theHttpService
implementation. - As a result of this,
HttpService
now has an associated type which may result in breaking changes.
Fix Header Encoding
Header values are not escaped with .urlQueryAllowed
anymore.
Add Additional HTTP Methods
HttpMethod.patch
HttpMethod.head
Service Hook Support and Optimizations
- Service Hooks: You can now hook into requests on a service-level. This way, you can process responses and prematurely answer requests without sending them to the server. An example hook performing caching is delivered along.
- Performance Optimizations: Internally moving away from custom retrier publishers for publishers, using native Combine classes, overall performance was improved.
- Minor breaking change: When using the
asyncHeader
property of theHttpService
, make sure to change its return type toFuture
instead ofAnyPublisher
. This more realistically models how it should be used.
Add Support for Asynchronous API Headers
1.2.0 Add SwiftLint and enable async headers
Fix JSON Debug Strings
1.1.11 Fix JSON debug printing