Skip to content

Evergreen

Compare
Choose a tag to compare
@GianlucaGuarini GianlucaGuarini released this 30 Jul 20:33
· 60 commits to main since this release

V9 is almost fully backward compatible with previous versions of Riot.js. However, a few breaking changes have been made, which are listed below:

  • Fix #2975
  • Use Module Syntax Exports
  • Reduce library size to 5.8kb
  • Use Prettier to format the codebase
  • Discontinued support for node versions older than v18
  • Breaking Change: Babel Code transpilation has been removed
    • To target older browsers, you will need to transpile your Riot.js import within your app
  • Breaking Change: Non boolean falsy attributes will no longer be removed; instead, use null or undefined (see also #2975). For example:
    • <p is-active={false}> - is-active will no longer be removed. Use <p is-active={null}> instead
    • Note that Riot.js will still automatically detect boolean attributes like checked or selected and in that case remove them with falsy values

Several ecosystem packages have received major updates and the rest will be updated soon. Future versions of Riot.js ecosystem packages will be synchronized to avoid confusion. To use Riot.js v9, ensure that you install only v9 @riotjs packages.