Skip to content

Commit 35aef65

Browse files
committed
Version 0.2.0 + Changelog
1 parent 63a2a99 commit 35aef65

4 files changed

Lines changed: 32 additions & 3 deletions

File tree

CHANGES.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1414
When API dumps become outdated, open your `wally.lock` and remove the `corecii/api-dump-static` section, then run `wally install` again.

wally.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ dependencies = []
99

1010
[[package]]
1111
name = "corecii/roact-template"
12-
version = "0.1.0"
12+
version = "0.2.0"
1313
dependencies = [["ApiDumpStatic", "corecii/api-dump-static@1.0.5270372"]]

wally.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "corecii/roact-template"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "A runtime instance-to-Roact translator"
55
license = "MIT"
66
registry = "https://github.com/UpliftGames/wally-index"

0 commit comments

Comments
 (0)