v1.0.0-beta.2.0.0
Pre-release
Pre-release
Breaking changes
- The
app
component now extends thepage
component, and it has the render, meta and params middlewares added by default. - The
$hasAttribute
method 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
$unobserve
and$queue
methods are removed from the observe middleware and observer util.
The$observe
method returns an object signal andsignal.unobserve()
should be called instead. - Functions passed to
$observe
run synchronously for the first time, previously they were always async. - The
$route
method of the ref middleware has an object parameter from now on. - Parameters of the
params
middleware are no longer reflected in the URL by default, you have to pass the newurl: true
config 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
active
CSS class automatically from now on. - Added the
url
anddurable
config options to theparams
middleware. - Added an
params
event, which is fired before synchronization on parameter changes. - The
template
config is now optional in the render middleware config. - Added a
level
property to theroute
event's detail. - The
$attribute
method 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$route
method. - Fixed occasional double routing.