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

Commit f1179a2

Browse files
committed
Update for changes to state in runtime.
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.
1 parent 42ac086 commit f1179a2

12 files changed

+112
-134
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# composi/core Changelog
22

3+
## 2.5.0 (October, 21, 2019)
4+
5+
### src/runtime.js
6+
7+
* 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.
8+
9+
### test/runtime.html
10+
11+
* Updated runtime test to handle changes to how state get returned now.
12+
313
## 2.0.1 (October, 15, 2019)
414

515
### src/render.js

dist/composi-core.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/composi-core.js.gz

-239 Bytes
Binary file not shown.

dist/composi-core.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)