Skip to content

1.4.0

Compare
Choose a tag to compare
@makoni makoni released this 07 Apr 21:17
· 10 commits to master since this release
68fd468
  • The library migrated from HTTPClient.Response to HTTPClientResponse which is similar to HTTPClient.Response, but used for the Swift Concurrency API. Also it migrated from HTTPClient.Body to HTTPClientRequest.Body. These changes affect get and find methods. Old methods are marked as deprecated, check the docs for the updated methods.
  • Minimum Swift version is 5.8 now.
  • CouchDBRepresentable protocol is now marked as Codable.
  • Added a new RowsResponse data model that accepts a generic CouchDBRepresentable type which makes it easier to get rows from a database. Example:
let decodeResponse = try JSONDecoder().decode(RowsResponse<MyApp>.self, from: data)

Full Changelog: 1.3.2...1.4.0