Skip to content

Commit

Permalink
Version 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Jun 19, 2016
1 parent fea375e commit d0cf04a
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 81 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Rum:

## Using Rum

Add to project.clj: `[rum "0.9.0"]`
Add to project.clj: `[rum "0.9.1"]`

### Defining a component

Expand Down Expand Up @@ -474,6 +474,24 @@ Ask for help on [Gitter channel](https://gitter.im/tonsky/rum)
## Changes
### 0.9.1
- Added `rum.core/derived-atom`, a function that let you build reactive chains and directed acyclic graphs of dependent atoms. E.g. you want `*c` to always contain a value of `*a` plus a value of `*b` and update whenever any of them changes. Do:
```clj
(def *a (atom 2))
(def *b (atom 3))
(def *c (rum.core/derived-atom [*a *b] ::c-sum (fn [a b] (+ a b))))
@*c ;; => 5
(swap! *a inc)
@*c ;; => 6
(swap! *b + 10)
@*c ;; => 16
```
- Added `rum.core/dom-node` helper that takes state and finds corresponding top DOM node of a component. Can be called in mixins after initial render only
- Fixed compatibility of `with-key` on nil-returning component in server rendering (thx [Alexander Solovyov](https://github.com/piranha), PR #73)
### 0.9.0
- Better support for server-side rendering of SVG
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject rum "0.9.0"
(defproject rum "0.9.1"
:description "ClojureScript wrapper for React"
:license { :name "Eclipse"
:url "http://www.eclipse.org/legal/epl-v10.html" }
Expand Down
Loading

0 comments on commit d0cf04a

Please sign in to comment.