Swiftpack.co - Swift Packages by antitypical

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by antitypical

antitypical/Result 5.0.0
Swift type modelling the success/failure of arbitrary operations.
⭐️ 2,506
🕓 3 years ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
5.0.0
4 years ago
* 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
5 years ago
## 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
5 years ago
## NEW - Add explicit support for Xcode 10 / Swift 4.2.
4.0.0
6 years ago
## 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
6 years ago
- [**CHANGED**]: Deprecate `try` functions in favor of `Result.init(attempt:)` (#251)
3.2.3
6 years ago
- [**CHANGED**]: Deprecate `ErrorProtocolConvertible` in favor of `ErrorConvertible` (#230)
3.2.2
6 years ago
- [**FIXED**]: Improve `AnyError` support in `Result.init(attempt:)` (#224)
3.2.1
7 years ago
- [**FIXED**]: Swift 3.1 compatibility issue on Linux (#212, #214)
3.2.0
7 years ago
- [**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
7 years ago
- [**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)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics