Releases: henrik-dmg/HPOpenWeather
Releases · henrik-dmg/HPOpenWeather
One Call API 3.0
This release adds support for the One Call API 3.0 and rewrites a lot of the library.
What's Changed
- One Call API 3.0 by @henrik-dmg in #13
Weather
is nowCodable
, to make caching easier/possible
Full Changelog: 5.0.0...6.0.0
Concurrency support
This release adds support for Swift 5.5 new concurrency features as well as some new properties for the weather responses
Version 4.0.0
I've made some breaking changes, so my early Christmas present to you is version 4.0.0.
Most notable changes:
- Renamed
HPOpenWeather
toOpenWeather
- Updated some method signatures
- greatly simplified decoding of responses which improves readability
- expanded documentation
- added weather alerts
The Housekeeping Update
Changes in this version:
- dependencies were updated, including some fixes to the completion handling of the networking stack
- the completion is now called on the correct queue if the weather request could not be constructed
Combine Publishers
This release brings you Combine publishers for weather request and automatic response decoding. Here's an example:
let someCoordinate = CLLocationCoordinate2D(latitude: 42.989, longitude: -25.128)
let request = WeatherRequest(coordinate: someCoordinate)
let cancellable = request.makePublisher(apiKey: TestSecret.apiKey)
cancellable
will be a publisher of type AnyPublisher<OpenWeatherRequest.Output, Error>
Support for custom URLSession
Support for specifying finishing queue
Also refactored towards global settings and not having to set language and API key on every request