Skip to content

Releases: graemer957/SimpleRESTLayer

v0.7.3

08 Oct 09:49
Compare
Choose a tag to compare

Built using Xcode v10.0 with Swift v4.2

v0.7.2

24 Feb 12:13
Compare
Choose a tag to compare

Built using Xcode v9.2 with Swift v4.0.3

Fixed

  • Fixed incorrect encoding of parameters in body

v0.7.1

22 Feb 15:39
Compare
Choose a tag to compare

Built using Xcode v9.2 with Swift v4.0.3

Fixed

  • Change access modifiers on Response

v0.7.0

09 Feb 16:54
Compare
Choose a tag to compare

Built using Xcode v9.2 with Swift v4.0.3

Changes

  • Add support for HTTP Basic Auth and Bearer Tokens
  • Add date/time to log output
  • Log the request when it's made and the response when it is back
  • Add map and flapMap to Result

Fixes

  • Fixed incorrect spelling of unauthorised

v0.6.0

13 Dec 10:26
Compare
Choose a tag to compare

Built using Xcode v9.2 with Swift v4.0.3

Changes

  • If response is unsuccessful, ResponseError now contains the Data sent by server
  • Tweak execute API by hiding first parameter to improve readability at call site
  • Rename name of completion handler more in keeping with other platform frameworks
  • Calling extension URLRequest.addJSONBody permits passing your own JSONEncoder, by default a new one will be created
  • Rename parameter on Request.with to make its purpose clearer

Fixes

  • Fix issue on Linux where subsequent requests would not use supplied URLSessionConfiguration

v0.5.0

13 Dec 09:19
Compare
Choose a tag to compare

Built using Xcode v9.2 with Swift v4.0.3

Changes

  • Rename Response as Result, which is more in-keeping with other projects in the Swift community
  • Result can now failure can now be any Error
  • Successful results now include a Response allowing access to a type safe HTTP status code and headers
  • Calling RESTClient.execute permits passing your own JSONDecoder, by default a new one will be created
  • You can now set RESTClient.queue to be DispatchQueue on which completion handlers should be called
  • To access the raw data of a response pass in a result type of Data
  • Add unwrap method to Result type, inspiration from Cocoa with Love
  • Tweak signature of Request.with to improve readability at call site

v0.4.1

09 Dec 19:04
Compare
Choose a tag to compare

Built using Xcode v9.2 with Swift v4.0.3

Changes

  • Full support for Linux
  • Permit successful HTTP responses with no body

Fixes

  • Fix typo in message when JSON key was not found whilst trying to decode

v0.4.0

09 Dec 12:37
Compare
Choose a tag to compare

Built using Xcode v9.2 with Swift v4.0.3

Changes

  • Major improvements and simplification thanks to Codable in Swift 4.

v0.3.0

14 Aug 19:14
Compare
Choose a tag to compare

Built using Xcode v8.3.3 with Swift v3.1

Changes

  • Added support for HTTP 304 notModified
  • Success response now has access to the HTTP headers
  • Allow setting timeout for all requests

Fixes

  • New compiler warnings

v0.2.1

23 Mar 19:55
Compare
Choose a tag to compare

Built using Xcode v8.2.1 with Swift v3.0.2

Fixes

  • Number of issues picked up by SwiftLint
  • Release build contained debug logging code