Breaking
- 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.
- The router now throws errors instead of displaying them.
- 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
- The
watch directive, for watching props.
- The
assign directive, for assigning the component to a property or variable.
- The
help directive.
Fixes
- Fixed JSX autocomplete.
- Fixed bits with router.
Other
- There's now a
set method on components, which you should't override.