Skip to content

Releases: danielsaidi/ApiKit

0.9.2

04 Oct 14:36
Compare
Choose a tag to compare

This version adds an ApiModel protocol that simplifies conforming to Codable and Sendable.

0.9.1

04 Oct 14:05
Compare
Choose a tag to compare

This version adjusts HTTP status code terminology.

✨ New Features

  • ApiClient lets you provide a custom decoder.
  • ApiError has a new invalidHttpStatusCode error.
  • ApiError has a new unsuccessfulHttpStatusCode error.

💡 Adjustments

  • 100-599 is valid.
  • 100-199 and 300-599 is unsuccessful, not invalid.
  • All other status codes are invalid, since they're not in the spec.

0.9.0

04 Oct 09:30
Compare
Choose a tag to compare

This version removes all deprecated code and makes the SDK use Swift 6.

0.8.0

30 Aug 13:20
Compare
Choose a tag to compare

This version renames client functions to use the "request" terminology for more consistent naming.

🗑️ Deprecations

  • ApiClient has renamed all fetch operations to request.

💥 Breaking changes

  • ApiClient fetchData is renamed to data to match URLSession.

0.7.0

06 Mar 16:33
Compare
Choose a tag to compare

✨ New Features

  • ApiKit now supports visionOS.

💥 Breaking changes

  • SystemNotification now requires Swift 5.9.

0.6.0

18 Jan 16:27
Compare
Choose a tag to compare

✨ New Features

  • ApiClient now validates the response status code.
  • ApiClient can perform even more fetch operations.
  • ApiError has a new invalidResponseStatusCode error.

💥 Breaking Changes

  • ApiClient now only requires a data fetch implementation.

0.5.0

17 Jan 21:07
Compare
Choose a tag to compare

✨ New Features

  • ApiClient has a new fetch(_: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

29 Nov 13:24
Compare
Choose a tag to compare

This version uses Swift 5.9 and renames some integration types.

0.3.0

17 Aug 14:54
Compare
Choose a tag to compare

This version adds Yelp api integrations.

✨ New Features

  • Yelp is a new namespace with Yelp API integrations.

0.2.1

12 Jun 14:45
Compare
Choose a tag to compare

This version makes ApiKit support PATCH requests.

✨ New Features

  • HttpMethod now has a new patch case.