Skip to content

v1.3.0

Compare
Choose a tag to compare
@carson-katri carson-katri released this 28 Jul 00:34
· 13 commits to master since this release
1b4493f

What's New

This update adds some great new things:

  1. #24 New update methods to allow a Request to be called repeatedly (thanks to @ezraberch)
Request {
    Url("https://jsonplaceholder.typicode.com/todo")
}
.update(every: 10)
.update(publisher: Timer.publish(every: 10, on: .main, in: .common).autoconnect())
.call()

Read More

  1. #27 New Timeout param
Timeout(60)
Timeout(60, for: .request)
Timeout(60, for: .resource)
  1. #31 Improved RequestError (thanks to @brennobemoura)

RequestError now conforms to the Error protocol, and more error types can be caught and handled by your code.

  1. Fix overlap with SwiftUI associatedtype Body

When setting the request's Body in a SwiftUI View, use RequestBody instead. This will avoid conflicts with the View protocol.

Coming Soon

This release had a lot of great stuff packed in. Here's a few things you can look for in the next release, 1.4.0:

  1. #34 Improved Combine support
  2. @Requested property wrapper for your SwiftUI code