Skip to content

v0.17.1

Latest

Choose a tag to compare

@andyhasit andyhasit released this 03 Apr 22:01
· 1 commit to master since this release

Breaking

  1. You no longer see the cheat sheet by hovering over ordinary tags like div as this interfered with auto-completion. You must now use the help directive.
  2. The router now throws errors instead of displaying them.
  3. The render method has changed. It won't break anything, but you need to be aware of it. It now calls set which by default sets props and ctrl but may be overridden to modify the setting with the assign and watch directives.
// Old render function
function render (props, ctrl) {
  this.props = props;
  this.ctrl = ctrl;
  this.update();
}

// New render function
function render (props, ctrl) {
  this.set(props, ctrl);
  this.update();
}

// Default set function
function set (props, ctrl) {
  this.props = props;
  this.ctrl = ctrl;
}

// Set function modified by `watch` directive
function set (props, ctrl) {
  this.props = watch(props, () => this.update());
  this.ctrl = ctrl;
}

Features

  1. The watch directive, for watching props.
  2. The assign directive, for assigning the component to a property or variable.
  3. The help directive.

Fixes

  1. Fixed JSX autocomplete.
  2. Fixed bits with router.

Other

  1. There's now a set method on components, which you should't override.