File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Changelog
2+
3+ This document lists changes for each release.
4+
5+ ## Upcoming
6+
7+ ## v0.2.0
8+
9+ * Children elements are now created after computing changed props from
10+ selectors. This is more efficient in cases where children will be removed or
11+ computed separately. For example, deleting children in Changes or wrapping a
12+ template in a component.
13+ * Children with the same name are now wrapped in a fragment with that name.
14+ This allows you to remove/replace all children with a given name.
15+ * Changed signature of ChangesCallback. It now takes a template instance and
16+ returns a set of changes.
17+ * The old signature provided ` props ` and ` children ` . Props was useless since
18+ only non-default props were defined. Children were useless since they were
19+ Roact elements not meant for reading.
20+ * The new signature provides the instance being used for the template. This
21+ allows you to access the props and children of the instance. You now return
22+ a list of changes instead of mutating the props and children.
23+ * Some error messages are now more clear and provide direction on the correct
24+ way to do things.
25+ * There are more typechecks on the user-facing part of the library.
26+
27+ ## v0.1.0
28+
29+ Initial release
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Install with [wally](https://wally.run):
88``` toml
99# wally.toml
1010[dependencies ]
11- RoactTemplate = " corecii/roact-template@0.1 .0"
11+ RoactTemplate = " corecii/roact-template@0.2 .0"
1212```
1313
1414When API dumps become outdated, open your ` wally.lock ` and remove the ` corecii/api-dump-static ` section, then run ` wally install ` again.
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ dependencies = []
99
1010[[package]]
1111name = "corecii/roact-template"
12- version = "0.1 .0"
12+ version = "0.2 .0"
1313dependencies = [["ApiDumpStatic", "corecii/api-dump-static@1.0.5270372"]]
Original file line number Diff line number Diff line change 11[package ]
22name = " corecii/roact-template"
3- version = " 0.1 .0"
3+ version = " 0.2 .0"
44description = " A runtime instance-to-Roact translator"
55license = " MIT"
66registry = " https://github.com/UpliftGames/wally-index"
You can’t perform that action at this time.
0 commit comments