Releases: dbsystel/DBNetworkStack
Async 🙅🏼♂️
- Async/Await support
- Typed errors with
RessourceWithError
- improved NetworkServiceMock
- Removes Carthage Support
- Removes CocoaPods Support
Whoops... SPM
- Fixes wrong SPM Package description.
Results are ready 🧾
Some little improvements and sadly breaking changes.
- Use brand new
Result<T, Error>
type - Removed unneeded
URLRequestConvertible
NetworkServiceMock
tweaks
Thanks to @OliverDobner-DBSystel
Cooling down🍦
During summer we worked on the following improvements.
- New type called
ContainerNetworkTask
which supports request chaining. - Initialize a
URL
with aStaticString
to get rid ofif let/guard let
- Small documentation improvements
Enjoy the rest of the summer ☀️🍧🏖🐙.
A more flexible Mock 👩🏽🔬
From now on testing with a NetworkServiceMock
is more flexible.
It allows you to test cases where multiple requests are involved.
- When your code performs multiple requests,
NetworkServiceMock
now queues them and you are able to respond to all requests independently with success or error. - Request chains are now supported: Requests started by responses of requests started by responses of requests started by responses... 🌀
Finally version one 🎈🎉🤩🚊
With Version 1.0, the API is declared as stable and will be maintained by conforming to semantic versioning.
What’s new
-
Support for introspection of the data of a Resource with
Resource inspectData
-
New documentation which can be found here
-
Droping the name schema where protocols would end with ‘providing’ or
representing
-
NetworkAccessProvinding
->NetworkAccess
,NetworkServiceProviding
->NetworkService
,NetworkTaskRepresenting
->NetworkTask
,NetworkService
->BasicNetworkService
Ready for Swift 4.0 🔮
What`s new
- Support for iOS 11 SDK
- Support for Swift 4.0
- Support for new
Codeable
to use in aResource
- Cleans up API by removing deprecated types/methods
Give me a response 📢
What`s new
- Access
HTTPURLResponse
when requesting a resource. - We deprecate
ResourceModeling
. By doing so we try to get rid of the complexity. The next release will introduce more simple APIs. - Refactoring of internal request processing
Back to URLRequest 📡
As discussed in #34 we remove our own representation of Requests and use native URLRequest
. By using URLRequest
we replace our hard to understand idea of urlKeys.
What`s new
URLRequestConvertible
to bridge custom Request objects toURLRequest
- official CocoaPods support 🎖
- new ways of type erase a
ResourceModeling
DBNetworkStack goes 🐧
- Migration to Swift 3.1
- Completion handlers execute on a given Queue
- Linux Support 🐧
- NetworkServiceMock to improve testing ✅
- SwiftLint 0.17.0