Skip to content

Releases: makoni/couchdb-swift

1.4.0

07 Apr 21:17
68fd468
Compare
Choose a tag to compare
  • 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

1.3.2

26 Mar 22:05
d618612
Compare
Choose a tag to compare

What's Changed

  • Fixed when update method didn’t use dateEncodingStrategy param. by @makoni in #16

Full Changelog: 1.3.1...1.3.2

1.3.1

24 Feb 14:06
c468e89
Compare
Choose a tag to compare
  • Updated dependencies to the latest versions.
  • Updated documentation.

1.3.0

16 Jan 20:51
8e0707c
Compare
Choose a tag to compare
  • Added new methods to use _find API method that allows to find documents using a declarative JSON querying syntax (#13 by @gevartosky)
  • Added tests for new methods.
  • Updated docs.
  • Updated async-http-client to 1.20.1.
  • Bumped minimum Swift version to 5.7.1.

1.2.7

22 Aug 22:32
42da8ad
Compare
Choose a tag to compare

Updated async-http-client to 1.19.0

1.2.6

20 Jul 16:56
1ca7638
Compare
Choose a tag to compare
  • Fixed building with Swift 5.6.
  • Added GH Actions to test building on Ubuntu and macOS, and to run integration tests.

1.2.5

28 Jun 20:55
4d7421d
Compare
Choose a tag to compare
  • Updated dependencies to latest versions.

1.2.4

04 Jan 21:49
Compare
Choose a tag to compare
  • Comparing set-cookie as lowercased in the response header (#9, thanks to @gevartosky)

1.2.3

30 Dec 17:53
0e58641
Compare
Choose a tag to compare
  • Added a check if auth cookie expired.

1.2.2

29 Dec 12:55
3ba36da
Compare
Choose a tag to compare
  • dateDecodingStrategy and dateEncodingStrategy can be passed as a param for get/update/insert methods.