Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Releases: spring-media/PiedPiper

Swift Package Manager Support

02 Jul 15:24
c131cda
Compare
Choose a tag to compare

Breaking Changes

  • Xcode 11.5+ required

New Features

  • Swift Package Manager Support

Swift 5 Migration

17 Dec 14:28
b225d4a
Compare
Choose a tag to compare
Merge pull request #22 from spring-media/feature/Swift5

MIgrate to Swift5

Swift 4

20 Mar 13:19
b8bdd81
Compare
Choose a tag to compare
Merge pull request #19 from WeltN24/Swift4

migrate to swift 4

Swift 3

03 Nov 21:16
Compare
Choose a tag to compare

PiedPiper is now migrated to Swift 3!

Swift 2.3

15 Oct 13:43
Compare
Choose a tag to compare

Breaking changes

  • PiedPiper is now compiled with Swift 2.3
  • merge has been deprecated, please use mergeAll instead

New features

  • Added mergeSome to a SequenceType of Futures to collapse a list of Futures into a single one and succeeds even if some of the Futures fail (contrast to merge)
  • Added all to a SequenceType of Futures to collapse a list of Futures into a single one that succeeds when all of the elements of the sequence succeed, and fails when one of the element fails (it's similar to merge but it doesn't bring the results with it).
  • Added snooze to Future in order to delay the result of a Future (either success or failure) by a given time
  • Added timeout to Future in order to set a deadline for the result of a Future after which it will automatically fail
  • Added firstCompleted to a SequenceType of Futures to get the result of the first Future that completes and ignore the others.
  • Added a retry global function to retry a given Future (generated through a provided closure) a certain number of times every given interval

Independence day

15 May 09:30
Compare
Choose a tag to compare

Breaking changes

  • The codebase has been migrated to Swift 2.2
  • Promise now has only an empty init. If you used one of the convenience init (with value:, with error: or with value:error:), they now moved to Future.

New features

  • Adds value and error properties to Result
  • Added a way to initialize Futures through closures
  • It's now possible to map Futures through:
    • a simple transformation closure
    • a closure that throws
  • It's now possible to flatMap Futures through:
    • a closure that returns an Optional
    • a closure that returns another Future
    • a closure that returns a Result
  • It's now possible to filter Futures through:
    • a simple condition closure
    • a closure that returns a Future<Bool>
  • It's now possible to reduce a SequenceType of Futures into a new Future through a combine closure
  • It's now possible to zip a Future with either another Future or with a Result
  • Added merge to a SequenceType of Futures to collapse a list of Futures into a single one
  • Added traverse to SequenceType to generate a list of Futures through a given closure and merge them together
  • Added recover to Future so that it's possible to provide a default value the Future can use instead of failing
  • It's now possible to map Results through:
    • a simple transformation closure
    • a closure that throws
  • It's now possible to flatMap Results through:
    • a closure that returns an Optional
    • a closure that returns a Future
    • a closure that returns another Result
  • It's now possible to filter Results through a simple condition closure
  • Added mimic to Result