The changelog for PeakNetwork
.
- Replaces Cocoapods with Swift Package Manager.
ErrorInterceptor
now returns Server Errors and only returns the error.- Drops support for iOS 10.
- Add additional support for handling of requests where the required response body is plain
Data
.
- Adds a new, more structured way to construct your API and requests.
WebAPI
,Resource
andEndpoint
replacing existingRequestable
.
- Add more detailed progress for network operations.
- Update
PeakOperation
dependancy.
- Remove dependency on
PeakResult
. - Update project to Swift 5.
- Added support for
macOS
andtvOS
. - Add
RequestInterceptorSession
, allowing actions to be performed on a request before it is executed. - Add
ErrorInterceptorSession
, allowing actions to be performed if a request encounters an error. - Split Network and Decode steps into separate operations.
- Instead of
DecodableOpeation
doing everything, you now perform aNetworkOperation
then pass its result onto aDecodeOperation
, which could decode it into any format.
- Instead of
- Rename from
THRNetwork
toPeakNetwork
.
- Remove retain cycles.
- Set minimum deployment target to 10
- Update THROperations
- Add a variant of DecodableResponseOperation that does not have a URLRequest in the result
- Remove Header parsing support
- Provide more explicit information for successful network requests
- Add ability to mock requests at the session level using Session/MockSession
- Removed MockRequestOperation
- Add DecodableFileOperation
- Improve consistency of operation names
- Update Operations library to 0.2.0
- Remove JSONConvertible and replace with Decodable
- Update Operations library to 0.2.0
- Set device detail headers on request
- Add extra parameter indicating source of the image (cached or not)
- Improve behaviour of image controller when used with recycled views
- Correctly mark an operation as cancelled
- When the same image is requested for different views, only perform one operation
- Update Operations library to 0.1.0
- Rename JSON type alias to prevent clashing.
- Remove RequestManyOperation, RequestOperation now handles both cases.
- Fix visibility of AnimationOption fields.
- Remove unnecessary parens from enum definition.
- Make the shared instance of ImageController publically accessible.
- Fix issue where setting images for different states would cancel each other.