Releases: riot/riot
Releases · riot/riot
v10.0.0-alpha.3
- Fix #3021
- Update attributes handling. Truthy and Falsy attributes will be rendered more consistently
v10.0.0-alpha.2
- Fix #3051
v10.0.0-alpha.1
- Update compiler and dom bindings to fix #3023
- Breaking Change tags root attributes will be no longer automatically rendered. See example below
With Riot.js < 10:
Component
<parent>
<child class="colored" role={computed} />
<script>
export default { role: 'alert' }
</script>
</parent>
Output
<parent>
<child class="colored" role="alert" />
</parent>
With Riot.js >= 10:
<parent>
<!-- you will need to render these props inside the child component by yourself -->
<child class="colored" role={computed} />
<script>
export default { role: 'alert' }
</script>
</parent>
Output
<parent>
<child />
</parent>
To get the Riot.js < 10 output you will need to add the attributes manually into you <child>
component for example:
<child class={props.class} role={props.role}>
...
</child>
v9.4.7
v9.4.6
- Update stabilize the
ref
API