Skip to content

v1.0.0-alpha.3.0.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@solkimicreb solkimicreb released this 18 Oct 18:13
· 152 commits to master since this release

Breaking changes and new features

  • Added the animate middleware.
  • Removed the compose option from the render middleware. It is always true from now on. If it finds a slot element it composes.
  • Added a style option to the render middleware, which expects a css string.
  • Added the default and required options to the params middleware config.
  • Removed element.$schedule.
  • The attributes middleware supports boolean attributes from now on, by removing the attribute if it has a falsy value.
  • Removed the show attribute, use the native hidden boolean attributes instead.
  • Calling next() asynchronously in middlewares won't work anymore.
  • next() calls can be omitted if it is at the end of the middleware. It is called automatically when the middleware finishes execution.
  • Added a repeat-key attribute for performance optimizations with loops in the view.
  • Added state.$raw to every state, which provides acces to the raw, unreactive version of the state.
  • The core filters and limiters are exposed on nx.filters and nx.limiters.
  • Inline JS expressions will return undefined instead of throwing a TypeError when you try to access a property of undefined (a not yet fetched object).

Fixed

  • The ref attribute triggers correctly, when a descendant element of the link is clicked.
  • The href attribute is generated correctly from iref attributes.

Performance

  • The Web Components polyfill is replaced by a smaller and more performant subset.
  • The core is reworked to make execution order more predictable and less bug prone.
  • The repeat attribute is refactored to reuse existing DOM nodes more efficiently.