Skip to content

2.1.0 - More Reactive than ever

Compare
Choose a tag to compare
@pepicrft pepicrft released this 13 Dec 21:46
· 306 commits to master since this release
  • Removed Result dependency from context methods. Methods throw now instead of returning a Result object wrapping Error and Values.
  • Reviewed the interface of Context to make it similar to Realm's one: add, create, new, fetch, remove.
  • Removed asynchrony from from operation methods in storage. Asynchrony has to be handled externally now (Realm inspired).
  • Added LICENSE file.
  • Added fetch method to Storage using internally the main context for fetching.
  • Implemented a Reactive API in Storage:
func rac_operation(operation: (context: Context, save: Saver) -> Void) -> SignalProducer<Void, NoError>
func rac_backgroundOperation(operation: (context: Context, save: Saver) -> Void) -> SignalProducer<Void, NoError>
func rac_backgroundFetch<T, U>(request: Request<T>, mapper: T -> U) -> SignalProducer<[U], Error>
func rac_fetch<T>(request: Request<T>) -> SignalProducer<[T], Error>