Skip to content

Feature/changes and comparison queries#43

Merged
jagreenwood merged 5 commits into
v2from
feature/changes-and-comparison-queries
Nov 3, 2025
Merged

Feature/changes and comparison queries#43
jagreenwood merged 5 commits into
v2from
feature/changes-and-comparison-queries

Conversation

@jagreenwood

Copy link
Copy Markdown
Owner

This pull request adds support for historical weather comparisons and weather changes to the OpenWeatherKit API models and mapping logic, while also broadening platform availability for several types and methods. The changes include new models and mapping extensions for these features, updates to the main weather data model, and adjustments throughout the codebase to ensure compatibility with older OS versions.

New Features:

  • Introduced new models APIHistoricalComparisons and APIWeatherChanges along with their respective mapping extensions (APIHistoricalComparisons+Map.swift, APIWeatherChanges+Map.swift) to facilitate decoding and transformation of historical comparison and weather change data. [1] [2] [3] [4]
  • Updated the main APIWeather model to include historicalComparisons and weatherChanges properties, enabling these new features to be part of the decoded weather response.
  • Extended the WeatherProxy struct to handle weatherChanges and historicalComparisons, including updates to its initializer, properties, and combined(with:) method to merge these data sources. [1] [2] [3]

Platform Availability Updates:

  • Lowered the minimum deployment targets for various extensions and protocols (such as StatisticsQuery, mapping extensions for daily/hourly/monthly statistics and summaries, and network client fetch methods) from macOS 15/iOS 18/etc. to macOS 11/iOS 13/etc., increasing compatibility with older OS versions. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Query and Networking Changes:

  • Added new query types changes and comparisons to the QueryType enum, allowing these new data endpoints to be requested from the API.
  • Changed the parameter type for queries in the fetchWeather method of NetworkClient from variadic to an array, supporting more flexible and varied query requests.

@jagreenwood jagreenwood merged commit fb58c2f into v2 Nov 3, 2025
4 checks passed
@jagreenwood jagreenwood deleted the feature/changes-and-comparison-queries branch November 3, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant