All notable changes to this project will be documented in this file.
PromiseLite
adheres to Semantic Versioning.
- Remove deprecated methods
- Generate docs using Jazzy
- Debug promises by setting
PromiseLiteConfiguration.debugger
variable - Introduce
DefaultPromiseLiteDebugger
, a simple implementation ofPromiseLiteDebugger
- Deal with rejected cases using
catch
orflatCatch
functions - Deal with settled cases, i.e either fulfilled or rejected, using
finally
orflatFinally
functions map(_:, rejection:)
andflatMap(_:, rejection:)
are deprecatedmap(finally:)
andflatMap(finally:)
are deprecated
- Provide
resolve
andreject
static helper functions
- Add support for iOS 9, tvOS 9, OS X 10.9, watchOS 2
- Add support to
throw
error within Promise,map
andflapMap
functions - Add
finally
handler to a promise. The handler is called when the promise is settled, whether fulfilled or rejected
- Fix: the first
resolve
orreject
that is reached wins and any further calls will be ignored
- A promise represents the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its
map
orflatMap
methods, which registers callbacks to receive either a promise’s eventual value or the reason why the promise cannot be fulfilled