Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Apr 22, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
riot (source) ^2.6.2 -> ^5.0.0 age adoption passing confidence

Release Notes

riot/riot

v5.3.3

Compare Source

v5.3.2

Compare Source

v5.3.1

Compare Source

  • Fix #​2895
  • Update improve compiler legacy syntax support. The following syntax is now also supported
<my-component>
  <p>{ state.message }</p>
  <button onclick={onClick}>Click Me</button>

  <script>
    const context = this

    context.state = {
      message: ''
    }
    
    context.onBeforeMount = () => {
      context.state.message = 'Hello'
    }

    context.onClick = () => {
      context.update({
        message: 'Goodbye'
      })
    }
  </script>
</my-component>

v5.3.0

Compare Source

  • Update improve support for legacy Riot.js syntax fixing some edge cases
  • Update improve support for recursive tags

Now you can recursively render tags without having to register them globally

<recursive-tree>
  <p>{ props.name }</p>
  <recursive-tree 
    if={ props.children.length && props.children } 
    each={ child in props.children } { ...child }/>
</recursive-tree>

v5.2.0

Compare Source

  • Add support for old style Riot.js syntax

Some liked more the old RIot.js syntax so you can now write components also as follows

<old-syntax>
  <p>{ state.message }</p>
  <button onclick={onClick}>Click Me</button>

  <script>
    this.onBeforeMount = () => {
      this.state.message = 'Hello'
    }

    this.onClick = () => {
      this.update({
        message: 'Goodbye'
      })
    }
  </script>
</old-syntax>

v5.1.4

Compare Source

  • Fix nested loops in looped <template> fragments #​2892

v5.1.3

Compare Source

  • Fix mitigate redering issues #​2892 issue (it's not completely fixed yet...)

v5.1.2

Compare Source

  • Update default project branch name master -> main
  • Fix make sure pure components will not be automatically removed by Riot.js if or each directives

v5.1.1

Compare Source

v5.1.0

Compare Source

  • Add support for <template> slot tags #​2888
  • Add improve debugging support, allowing shortcuts for the use of console methods in expressions: Before {window.console.log('hello')} -> After {console.log('hello')}
  • Improve rendering performance simplifying the compiler output

v5.0.0

Compare Source

This release is completely backward compatible, make sure to update the @riotjs/[email protected] along with [email protected]. All the Riot.js echosystem tools should keep working as expected without needing major release updates.

Changelog
  • Replace the internal domdiff rendering engine with a fork of udomdiff
  • Improve rendering performance
  • Improve library size (-1kb)
  • Improve Riot.js is side-effect free. Supports ES2015 exports also, hence fully tree-shakeable
  • Fix #​2878 browser globals in expressions are available only as window properties breaking change
    old { location.href } new { window.location.href }

v4.14.0

Compare Source

  • Add support for optional chaining and null coalescing expressions #​2880
  • Add support for Riot.js expression bindings in native web components slots #​2877

v4.13.6

Compare Source

  • Fix #​2877 improving the compatibility with native web components

v4.13.5

Compare Source

v4.13.4

Compare Source

  • Fix #​2872
  • Update build script (rollup) dependencies

v4.13.3

Compare Source

  • Fix #​2874
  • Update improve typescript definitions

v4.13.2

Compare Source

v4.13.1

Compare Source

v4.13.0

Compare Source

  • Add interoperability with native custom elements slots #​2864

v4.12.4

Compare Source

  • Fix #​2859 updating the riot+compiler bundle

v4.12.3

Compare Source

v4.12.2

Compare Source

v4.12.1

Compare Source

v4.12.0

Compare Source

  • Add support for nested slot HTML #​2842
  • Improve events handling performance

v4.11.1

Compare Source

v4.11.0

Compare Source

<p onclick={ [callback, { once: true }] }>Click me once</p>

v4.10.1

Compare Source

  • Fix static components attributes not added to the props object

v4.10.0

Compare Source

  • Add support for native inline events #​2823
  • Fix #​2822
  • Improve performance avoiding redundant static attributes expressions

v4.9.3

Compare Source

  • Update rename the dom bindings export key to DOMBindings

v4.9.2

Compare Source

  • Update expose internal DOM template engine improving the framework interoperability

v4.9.1

Compare Source

  • Fix edge cases where compiler was detecting html nodes outside of the root node

v4.9.0

Compare Source

  • Add support for import() expressions, improving the interoperability with @​riotjs/lazy
  • Add the compiler key to the riot+compiler bundle. The Riot.js compiler API is now also available from your browser

v4.8.9

Compare Source

  • Update typescript interface supporting the riot.component parentScope parameter

v4.8.8

Compare Source

  • Fix #​2817
  • Add the optional parentScope to the riot.component method

v4.8.7

Compare Source

v4.8.6

Compare Source

v4.8.5

Compare Source

v4.8.4

Compare Source

  • Update improve performance reading the root node attributes to infer the props only in the mount and component calls
  • Update make the this.props components attribute not writable nor enumerable

v4.8.3

Compare Source

  • Fix make sure native HTMLElement attributes and properties will be not overridden
  • Improve dom-bindings codebase

v4.8.2

Compare Source

  • Fix avoid rendering function attributes
  • Add the compiler support for shorthand object attributes for example <p {...{myAttribute}}>

v4.8.1

Compare Source

  • Fix nested condition expressions inside slots bug

v4.8.0

Compare Source

  • Improve rendering performance
  • Improve the typescript interfaces adding types for the @riotjs/dom-bindings
  • Add riot.pure adding more granular control over the components rendering

v4.7.2

Compare Source

v4.7.1

Compare Source

v4.7.0

Compare Source

  • Update improve performance
  • Add the meta parameter to the component function to inject slots and attributes
import { component } from 'riot'
import App from './App.riot'

const app = component(App)

app(
  document.querySelector('app'), 
  { message: 'hello' }, 
  // slots and attributes should be valid @&#8203;riotjs/dom-bindings objects
  { slots: [], attributes: [] }
)

v4.6.6

Compare Source

v4.6.5

Compare Source

  • Update improve rendering performance of the text expressions

v4.6.4

Compare Source

  • Fix #​2766
  • Reduce a bit the size of the library removing unnecessary code

v4.6.3

Compare Source

  • Fix #​2761
  • Update efficiency of the text expressions handling removing trailing white spaces

v4.6.2

Compare Source

v4.6.1

Compare Source

  • Fix conditional <template> tags containing <slot> text nodes

v4.6.0

Compare Source

  • Fix edge case issue in case text expressions get rendered in <template> tags
  • Update improve the code of the core, compiler and dom-bindings moving the shared code into https://github.com/riot/util
  • Add support for HOC (Higher-Order Components) components via <slot> attributes for example:
Provider
<hoc-component>
  <slot message={ message } theme={ theme }/>
  
  <script>
    export default { 
      message: 'hello', 
      theme: 'dark' 
    }
  </script>
</hoc-component>
Consumer
<app>
  <hoc-component>
    <!-- the {message} property will be provided by the <hoc-component> -->
    <h1>{ message }</h1>

    <!-- the {theme} property will be provided by the <hoc-component> -->
    <sidebar theme={ theme }/>
  </hoc-component>

  <!-- the {message} property is not available outside of the <hoc-component> -->
  <p>{ message }</p>
</app>

v4.5.1

Compare Source

v4.5.0

Compare Source

  • Fix: #​2745
  • Improve: rendering performance
  • Update: internal events handing using DOM listeners instead of inline events
  • Update: improve the compatibility with native web components
  • Improve: rendering performance

v4.4.1

Compare Source

v4.4.0

Compare Source

  • Add: user options argument to the runtime compiler methods riot.compile riot.compileFromUrl for example
riot.compile({
  // use different expression brackets 
  brackets: ['${', '}']
}).then(() => {
  riot.mount('my-tag')
})

v4.3.9

Compare Source

  • Fix: Compiler Expressions Binding in SVG tags #​2748
  • Fix: Compiler Expressions Parsing #​2753
  • Fix: Typescript mount definition #​2749

v4.3.8

Compare Source

v4.3.7

Compare Source

v4.3.6

Compare Source

v4.3.5

Compare Source

  • Fix: Improve the fix for #​2714
  • Fix: support for backslashed css properties like for example p { content: '\263c'; }

v4.3.4

Compare Source

v4.3.3

Compare Source

  • Fix: #​2726
  • Improve: each bindings performance

v4.3.2

Compare Source

v4.3.1

Compare Source

v4.3.0

Compare Source

  • Add the keepRootElement parameter to the riot.unmount method #​2721
  • Fix #​2719

v4.2.0

Compare Source

  • 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

Compare Source

  • 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): void
  clearMessage(): 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

Compare Source

v4.0.8

Compare Source

  • Fix Text expressions + static text rendering issue #​2701

v4.0.7

Compare Source

  • Fix riot+compiler.min.js broken by babel-minify, I will use terser instead. #​2703

v4.0.6

Compare Source

  • Fix make sure that the value attributes get passed down to the children tags

v4.0.5

Compare Source

Fix spread parsing issue #​2700

v4.0.4

Compare Source

  • Update: boost loops performance

v4.0.3

Compare Source

  • Fix double expressions evaluation #​2501

v4.0.2

Compare Source

v4.0.1

Compare Source

v4.0.0

Compare Source

A complete rewrite of the framework.

v3.13.2

Compare Source

v3.13.1

Compare Source

v3.13.0

Compare Source

v3.12.0

Compare Source

v3.11.2

Compare Source

v3.11.1

Compare Source

v3.11.0

Compare Source

v3.10.3

Compare Source

v3.10.2

Compare Source

v3.10.1

Compare Source

v3.10.0

Compare Source

v3.9.5

Compare Source

v3.9.4

Compare Source

v3.9.3

Compare Source

v3.9.2

Compare Source

v3.9.1

Compare Source

v3.9.0

Compare Source

v3.8.1

Compare Source

v3.8.0

Compare Source

v3.7.4

Compare Source

v3.7.3

Compare Source

v3.7.2

Compare Source

v3.7.0

Compare Source

v3.6.3

Compare Source

v3.6.2

Compare Source

v3.6.1

Compare Source

v3.6.0

Compare Source

v3.5.1

Compare Source

v3.5.0

Compare Source

v3.4.4

Compare Source

v3.4.3

Compare Source

v3.4.2

Compare Source

v3.4.1

Compare Source

v3.4.0

Compare Source

v3.3.2

Compare Source

v3.3.1

Compare Source

v3.3.0

Compare Source

v3.2.1

Compare Source

v3.2.0

Compare Source

v3.1.1

Compare Source

v3.1.0

Compare Source

v3.0.7

Compare Source

v3.0.6

Compare Source

v3.0.5

Compare Source

v3.0.4

Compare Source

v3.0.3

Compare Source

v3.0.2

Compare Source

v3.0.1

Compare Source

v3.0.0

Compare Source


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants