v1.0.0-alpha.3.0.0
Pre-release
Pre-release
·
152 commits
to master
since this release
Breaking changes and new features
- Added the
animatemiddleware. - Removed the
composeoption from the render middleware. It is always true from now on. If it finds a slot element it composes. - Added a
styleoption to the render middleware, which expects a css string. - Added the
defaultandrequiredoptions 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
showattribute, use the nativehiddenboolean 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-keyattribute for performance optimizations with loops in the view. - Added
state.$rawto every state, which provides acces to the raw, unreactive version of the state. - The core filters and limiters are exposed on
nx.filtersandnx.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
refattribute triggers correctly, when a descendant element of the link is clicked. - The
hrefattribute is generated correctly fromirefattributes.
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.