Release 2.0.0-alpha.0
Pre-release
Pre-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
instancehref
field instead of thehref
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 featureassemble
members. makeFeature
has been dropped in favor of
FeatureBuilder. Also, feature bust now be instantiated instead of
callingassemble
member. All imports must be upper-cased.
Implementing feature is documented here:
https://formidable-webview.github.io/webshell/docs/implementing-features