Releases: danielsaidi/ApiKit
Releases · danielsaidi/ApiKit
0.9.2
0.9.1
This version adjusts HTTP status code terminology.
✨ New Features
ApiClient
lets you provide a custom decoder.ApiError
has a newinvalidHttpStatusCode
error.ApiError
has a newunsuccessfulHttpStatusCode
error.
💡 Adjustments
100-599
is valid.100-199
and300-599
is unsuccessful, not invalid.- All other status codes are invalid, since they're not in the spec.
0.9.0
This version removes all deprecated code and makes the SDK use Swift 6.
0.8.0
This version renames client functions to use the "request" terminology for more consistent naming.
🗑️ Deprecations
ApiClient
has renamed allfetch
operations torequest
.
💥 Breaking changes
ApiClient
fetchData
is renamed todata
to matchURLSession
.
0.7.0
✨ New Features
- ApiKit now supports visionOS.
💥 Breaking changes
- SystemNotification now requires Swift 5.9.
0.6.0
✨ New Features
ApiClient
now validates the response status code.ApiClient
can perform even more fetch operations.ApiError
has a newinvalidResponseStatusCode
error.
💥 Breaking Changes
ApiClient
now only requires a data fetch implementation.
0.5.0
✨ New Features
ApiClient
has a newfetch(_:in:)
for fetching routes.ApiRequest
is a new type that simplifies fetching data.
💥 Breaking Changes
ApiError.noDataInResponse
has been removed.ApiResult
properties are no longer optional.
0.4.0
This version uses Swift 5.9 and renames some integration types.
0.3.0
This version adds Yelp
api integrations.
✨ New Features
Yelp
is a new namespace with Yelp API integrations.
0.2.1
This version makes ApiKit support PATCH requests.
✨ New Features
HttpMethod
now has a newpatch
case.