Skip to content

Commit

Permalink
added upgrade instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyadams committed Mar 18, 2015
1 parent 0400e4e commit 02e8ea3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Prior to `1.0`, icrementing the second decimal place indicates a potential breaking change.

**0.8.x to 0.9.x**

- Stores are now singletons. The dispatcher's `getStores` method must go from...
```javascript
getStores: function ()
return{
myStore: MyStore()
}
}
```
to...
```javascript
getStores: function ()
return{
myStore: MyStore
}
}
```
where `MyStore` is the output of `Flux.createStore`

- Scheme values are now set on a `store.state` object rather than directly on the store itself. If you are using `scheme`, and accessing and scheme properties directly within a store (rather than just through `this.set`), you will need to update your code to access the property from the `state` object...
```javascript
this.mySchemeProp.push(newValue);
```
needs to become...
```javascript
this.state.mySchemeProp.push(newValue);
```

0 comments on commit 02e8ea3

Please sign in to comment.