Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Update for changes to state in runtime.
Browse files Browse the repository at this point in the history
1. Runtime init function now return state without square brackes.
2. Update actions now return state without square brackets.
3. Test updated for changes to runtime.
  • Loading branch information
Wobbabits committed Oct 17, 2019
1 parent 42ac086 commit f1179a2
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 134 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# composi/core Changelog

## 2.5.0 (October, 21, 2019)

### src/runtime.js

* Updated how the runtime works. Now `init` does not require brackets for state. Just return the state you want to use. Same for `actions`--just return the new state. This means that you can no longer execute an optional effect in the `init` method to run at startup. If you want to execute an effect at startup, use the `subscriptions` method. That's what it's for. Similarly, you can no longer return an effect with state in an action. Instead send a message for another action before returning state.

### test/runtime.html

* Updated runtime test to handle changes to how state get returned now.

## 2.0.1 (October, 15, 2019)

### src/render.js
Expand Down
2 changes: 1 addition & 1 deletion dist/composi-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/composi-core.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/composi-core.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit f1179a2

Please sign in to comment.