Skip to content

Release 2.0.0-alpha.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jsamr jsamr released this 26 Sep 14:03
· 165 commits to master since this release

2.0.0-alpha.0 (2020-09-26)

Code Refactoring

  • features are now classes and must be built with FeatureBuilder (d028853)
  • makeWebshell now takes feature instances (ed28385)

Features

  • add new methods for WebjsContext interface (bfdc409)
  • add new useAutoheight hook (dc9842d)
  • features API v2 (WIP) (73d56c7)
  • new DOM feature ForceElementSizeFeature (f715b5f)
  • new DOM feature ForceResponsiveViewportFeature (25ed358)
  • new DOM feature HandleElementCSSBoxFeature (873d646)
  • new DOM feature HandleHashChangeFeature (9b7c47a)
  • new DOM feature HandleHTMLDimensionsFeature (7a158d9)
  • new DOM feature HandleLinkPressFeature (6da2358)
  • new DOM HandleVisualViewportFeature (0577cbf)

BREAKING CHANGES

  • handleLinkPressFeature has been replaced with
    HandleLinkPressFeature, its instanciable counterpart. Also, the shape of
    the sent message has changed, and is now an object with a variety of
    useful information. Finally, this implementation uses the element
    instance href field instead of the href attribute, which could contain
    relative paths. It is thus more accurate.
  • elementSizeFeature has been replaced with its
    instanciable counterpart, HandleElementCSSBoxFeature. If you need the
    whole document size, consider HandleHTMLDimensionsFeature.
  • makeWebshell now requires to provide a list of Feature
    instances instead of the result of feature assemble members.
  • makeFeature has been dropped in favor of
    FeatureBuilder. Also, feature bust now be instantiated instead of
    calling assemble member. All imports must be upper-cased.
    Implementing feature is documented here:
    https://formidable-webview.github.io/webshell/docs/implementing-features