- Updated: NuGet packages.
- Fixed: JSON deserialization in
HistoricalWeather.
This update has breaking changes because the subscription model for OpenWeatherMap is rather frustrating.
- Changed:
CurrentWeathertoLegacyCurrentWeather. - Added:
HistoricalWeatherusing the One Call v3.0 endpoints. - Added:
Unitsproperty toOpenWeatherMapClientOptionsto set a global default.
This update is a complete rewrite of the whole library. There are many breaking changes, but for the better, in my opinion. Overall the library should be more stable, more performant, and easier to use both for request and for reading the responses.
- Changed:
CurrentWeatherto be a vertical slice that contains the specific request and response objects. The slice also contains the validation rules for reading the responses. - Changed: Switched from JSON.NET to System.Text.Json for better performance.
- Added: FluentValidation for request object validation prior to API call.
- Added:
IOpenWeatherMapClientFactoryfor applications that need to interact with multiple Open Weather Map accounts. - Added:
IServiceCollectionextensions directly into the main library. - Changed: Deserialized JSON into better structured objects for easier use.
- Changed: Normalized behavior and naming for requests and responses.
Usage is basically the same, but you'll need to adjust the method calls and/or the request objects.