Download Latest Version V10 - equinox source code.tar.gz (487.4 kB)
Email in envelope

Get an email when there's a new version of Riot

Home / v10.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-08-22 1.5 kB
V10 - equinox source code.tar.gz 2025-08-22 487.4 kB
V10 - equinox source code.zip 2025-08-22 533.9 kB
Totals: 3 Items   1.0 MB 0

Breaking changes

With Riot.js < 10:

Component
:::riot
<parent>
  <child class="colored" role={computed} />

  <script>
    export default { role: 'alert' }
  </script>
</parent>
Output
:::html
<parent>
  <child class="colored" role="alert" />
</parent>

With Riot.js >= 10:

:::riot
<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
:::html
<parent>
  <child />
</parent>

To get the Riot.js < 10 output you will need to add the attributes manually into you <child> component for example:

:::riot
<child class={props.class} role={props.role}>
   ...
</child>

Or all the attrs altogether

:::riot
<child {...props}>
   ...
</child>

Other updates

  • Update attributes handling. Truthy and Falsy attributes will be rendered more consistently
  • Update dependencies
  • Upgrade to eslint v9
Source: README.md, updated 2025-08-22