Skip to content

Releases: rhysforyou/Superhighway

v2.0.1

19 Jun 04:40
Compare
Choose a tag to compare
  • Improve how documentation is rendered on the Swift Package Index
  • Improve README

v2.0.0

07 Jun 04:01
Compare
Choose a tag to compare
  • Formally remove deprecated Endpoint initializers:
    • Endpoint.init(json:url:accept:headers:expectedStatusCode:query:decoder:)
    • Endpoint.init(json:url:accept:body:headers:expectedStatusCode:query:decoder:encoder:)
    • Endpoint.init(json:url:accept:body:headers:expectedStatusCode:query:encoder:)
  • Formally remove deprecated URLSession.data(for:) method

v1.1.0

07 Mar 05:57
Compare
Choose a tag to compare
  • Rename URLSession.data(for:) to URLSession.response(for:)
  • Add new JSON convenience constructors that take the response type as an explicit argument

v1.0.0

13 Sep 03:39
Compare
Choose a tag to compare
  • First stable release

0.5.1

12 Sep 00:49
Compare
Choose a tag to compare
  • Make Endpoint's request property public to simplify unit testing

0.5.0

08 Sep 02:02
Compare
Choose a tag to compare
  • Endpoints now use a throwing closure for their parse property, instead of one which returns a Result
  • Added an async URLSession.data(for:) method which takes an endpoint and returns a tuple of (Response, URLResponse)
  • Response mapping methods have been removed

0.4.1

04 Jul 11:06
Compare
Choose a tag to compare

Changed

  • Project renamed from Porygon to Superhighway
  • Support for arbitrary MIME types for Accept and Content-Type headers using ContentType.custom
  • Support using a custom JSONEncoder when making requests with a JSON body

0.3.0

05 Jun 06:22
Compare
Choose a tag to compare

Changed

  • Overhauled Combine integration. EndpointPublisher now vends its own Subscription type, instead of simply acting as a wrapper for an upstream data task publisher.

0.2.0

27 Jan 03:10
Compare
Choose a tag to compare

Added

  • Add support for Linux
  • Add map and flatMap methods to Endpoint

Changed

  • The URLSessionDataTask provided by URLSession's endpointTask method is is no longer started automatically
  • The return value of endpointTask is no longer marked as discardable

0.1.0

27 Jan 03:10
Compare
Choose a tag to compare

Initial release of the library