Skip to content

0.8.0

Compare
Choose a tag to compare
@ishkawa ishkawa released this 06 May 12:49
· 791 commits to master since this release

This release contains 2 large changes

  • class func URLRequest(_:_:_:) is deprecated to improve readability and flexibility.

    • Old: class func URLRequest(_:_:_:)
    • New: class func URLRequest(method:path:parameters:requestBodyBuilder)

    You can use the alternative function like below. The last 2 arguments, parameters and requestBodyBuilder, in new method have default values, so you can omit them.

    var URLRequest: NSURLRequest? {
        return GitHub.URLRequest(
            method: .GET,
            path: "/search/repositories",
            parameters: ["q": query, "sort": sort.rawValue, "order": order.rawValue]
        )
    }
  • LlamaKit is replaced by Result. Interface of Box type is changed due to this dependency replacement.

    • Old: box.unbox
    • New: box.value