v1.0.0-beta.2.0.0
Pre-release
Pre-release
Breaking changes
- The
appcomponent now extends thepagecomponent, and it has the render, meta and params middlewares added by default. - The
$hasAttributemethod is removed from the attribute middleware. - Changed attribute handling order. Custom attributes are handled synchronously before native prefixed attributes. Until now it was the other way around.
- The
$unobserveand$queuemethods are removed from the observe middleware and observer util.
The$observemethod returns an object signal andsignal.unobserve()should be called instead. - Functions passed to
$observerun synchronously for the first time, previously they were always async. - The
$routemethod of the ref middleware has an object parameter from now on. - Parameters of the
paramsmiddleware are no longer reflected in the URL by default, you have to pass the newurl: trueconfig to keep this behavior.
Features
- Added the new props middleware.
- Added the new display and control components.
- Added the new router utility.
- Active anchors - which point to the current page and parameters - receive the
activeCSS class automatically from now on. - Added the
urlanddurableconfig options to theparamsmiddleware. - Added an
paramsevent, which is fired before synchronization on parameter changes. - The
templateconfig is now optional in the render middleware config. - Added a
levelproperty to therouteevent's detail. - The
$attributemethod of the attributes middleware optionally accepts an object with more granular control.
Fixes
- Elements now have correct width and height during their
leave-animation. - The
to(previouslypath) config is now optional in the$routemethod. - Fixed occasional double routing.