Skip to content

v1.0.0-beta.2.0.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@solkimicreb solkimicreb released this 10 Feb 19:46

Breaking changes

  • The app component now extends the page 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 and signal.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 new url: 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 and durable config options to the params 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 the route 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 (previously path) config is now optional in the $route method.
  • Fixed occasional double routing.