All Versions
65
Latest Version
Avg Release Cycle
13 days
Latest Release
314 days ago

Changelog History
Page 7

  • v4.3.0 Changes

    June 29, 2019
    • โž• Add the keepRootElement parameter to the riot.unmount method #2721
    • ๐Ÿ›  Fix #2719
  • v4.2.0 Changes

    June 23, 2019
    • ๐Ÿ›  Fix: attributes removal for numerical values #2711
    • โž• Add: the <template> tag to support html fragment rendering for each and if directives #2692

      <!-- each + template --><dl> <template each={ item in items }> <dt>{ item.title }</dt> <dd>{ item.description }</dd> </template> </dl>

      <!-- if + template --><div> <template if={ meta }> <h1>{ meta.title }</h1> <h2>{ meta.subtitle }</h2> </template> </div>

    • โž• Add: typescript generics support for component definitions #2709

    • โž• Add: improve rendering performance of custom looped components

  • v4.1.1 Changes

    June 10, 2019
    • โž• Add: the RiotComponentExport interface to simplify the components creation in typescript, for example:

      import Child from './child.riot'import {RiotComponentExport} from 'riot'interface MyComponentInterface extends RiotComponentExport { onClick(event: MouseEvent): voidclearMessage(): void state: { message: string } }function MyComponent(): MyComponentInterface { return { state: { message: 'hello' }, onClick(event) { this.update({ message: 'goodbye' }) }, clearMessage() { this.update({ message: '' }) } } }MyComponent.components = { Child }export default MyComponent

  • v4.1.0 Changes

    June 09, 2019
  • v4.0.8 Changes

    June 05, 2019
    • ๐Ÿ›  Fix Text expressions + static text rendering issue #2701