Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Eliminate the whole concept of State #13

Merged
merged 4 commits into from
Dec 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

Breaking changes in **bold**.

#### v0.5 – PENDING

* **API: Eliminate the whole concept of State [#13](https://github.com/raquo/Airstream/pull/13)**
* `State` and `StateVar` are no more. RIP
* Merge `MemoryObservable` into `Signal`
* Merge `LazyObservable` into `Observable`
* Remove `toLazy` method as all observables are now lazy
* **Migration guide**
* Use `Signal` instead of `State` and `MemoryObservable`. This is NOT a drop in replacement as State was not lazy. Make sure you have observers (internal or external) on all Signals that would be replacing State, or else they won't run. Consult the updated documentation for a reminder on Signal semantics.
* For `Signal` alternatives to `State`'s `now()` / `tryNow()` methods, see the _Getting Signal's current value_ section in the new docs.
* Use `Observable` instead of `LazyObservable`.
* Use `Var` instead of `StateVar`.
* Use `toSignal` instead of `toState`.
* Remove invocations of `toLazy` method, they are not needed anymore.
* **API: Remove flatMap method**
* Use map(...).flatten
* I don't have time to sort out type inference and other stuff needed to get `flatMap` to work nicely.

#### v0.4.1 – Dec 2018

* Fix: NPE from errors unhandled by `recover` partial function
Expand Down
187 changes: 53 additions & 134 deletions README.md

Large diffs are not rendered by default.

114 changes: 0 additions & 114 deletions src/main/scala/com/raquo/airstream/core/LazyObservable.scala

This file was deleted.

87 changes: 0 additions & 87 deletions src/main/scala/com/raquo/airstream/core/MemoryObservable.scala

This file was deleted.

Loading