Skip to content

Releases: antitypical/Result

5.0.0

27 May 13:15
12920a5
Compare
Choose a tag to compare
  • Adopt Swift 5's built-in Result type when compiler(>=5.0) (#280)
  • Deprecate NoError in favor of Never, which now conforms to Error (#286)

4.1.0

01 Jan 13:18
Compare
Choose a tag to compare

NEW

  • Add compatibility with Swift 5's Result (#278)
    • Add Result.Success typealias
    • Add Result.Failure typealias
    • Add init(catching body: () throws -> Success) and deprecate init(attempt f: () throws -> Value)
    • Add func get() throws -> Success and deprecate func dematerialize() throws -> Value

See https://github.com/apple/swift-evolution/blob/master/proposals/0235-add-result.md and https://forums.swift.org/t/accepted-with-modifications-se-0235-add-result-to-the-standard-library/18603 for further information of the Swift 5's Result.

4.0.1

31 Dec 08:51
Compare
Choose a tag to compare

NEW

  • Add explicit support for Xcode 10 / Swift 4.2.

4.0.0

27 Apr 04:35
Compare
Choose a tag to compare

CHANGED

  • Result now requires Swift 4.0/Xcode 9 at least. Swift 4.1/Xcode 9.3 are supported as well (#217, #237, #241, #245, #252, #256, #258, #259, #264)
  • Remove deprecated and unavailable APIs from Result 2.x (Swift 2.x) (#220, #226)
  • Rename ErrorProtocolConvertible to ErrorConvertible (#232)
  • Reduce the responsibility of ResultProtocol (#235, #243)
  • Deprecate materialize functions (#239)
  • Make try functions unavailable (#253)

NEW

  • Add LocalizedError conformance to AnyError on Linux (#227)
  • Add AnyError overloads for init(_:) and init(attempt:) (#236)

3.2.4

27 Sep 04:21
Compare
Choose a tag to compare
  • [CHANGED]: Deprecate try functions in favor of Result.init(attempt:) (#251)

3.2.3

29 May 04:50
Compare
Choose a tag to compare
  • [CHANGED]: Deprecate ErrorProtocolConvertible in favor of ErrorConvertible (#230)

3.2.2

16 May 16:50
Compare
Choose a tag to compare
  • [FIXED]: Improve AnyError support in Result.init(attempt:) (#224)

3.2.1

04 Mar 12:36
Compare
Choose a tag to compare
  • [FIXED]: Swift 3.1 compatibility issue on Linux (#212, #214)

3.2.0

01 Mar 04:55
Compare
Choose a tag to compare
  • [NEW]: Add ResultProtocol.bimap(success:failure:) method (#116, #205)
  • [NEW]: Add ResultProtocol.fanout(_:) as an alternative to &&& operator (#204)
  • [NEW]: Add LocalizedError conformance to AnyError on Darwin platforms (#210)
  • [CHANGED]: Deprecate >>- and &&& operators (#206)

3.1.0

29 Nov 04:37
Compare
Choose a tag to compare
  • [NEW]: Add Equatable conformance to NoError (#200, #201)
  • [NEW]: Add type-erased AnyError for generic contexts. materialize overload for AnyError is also added (#198)
  • [CHANGED]: materialize for NSError is now deprecated in favor of the overload for AnyError (#198)