Releases: formidable-webview/webshell
Releases · formidable-webview/webshell
Release 2.0.0-alpha.2
2.0.0-alpha.2 (2020-10-02)
Code Refactoring
- rename
FeatureBuilder.withandlerProp
towithShellHandler
(65ea547) - rename
FeatureConstructor
toFeatureClass
(8f64369) - rename
PropsFromFeature
toExtractPropsFromFeature
(e07e8f7) - rename FeatureInstanceOf type into ExtractFeatureFromClass (3f3eed3)
- rename resetHeightOnViewportWidthChange to resetHeightOnViewportWidthChange (d6c777c)
Features
- add
webshellStrictMode
prop to raise errors on inconsistencies (81273be) - custom typedoc theme (WIP) (1216e50)
BREAKING CHANGES
- rename
FeatureConstructor
toFeatureClass
- rename
PropsFromFeature
toExtractPropsFromFeature
- rename
AutoheightParams.resetHeightOnViewportWidthChange
toresetHeightOnViewportWidthChange
- rename
FeatureBuilder.withandlerProp
towithShellHandler
- rename FeatureInstanceOf type into ExtractFeatureFromClass
Release 2.0.0-alpha.1
2.0.0-alpha.1 (2020-09-30)
Bug Fixes
- bug causing feature loading to fail (83b716c)
Code Refactoring
- move dom utils to a separate field in
WebjsContext
(4a0a291) - rename
Feature.featureIdentifier
toindentifier
(8ffe989) - rename
WebjsContext.postShellMessage
topostMessageToShell
(fd7bc00) - replace onDOMError with onWebFeatureError (2dacca5)
Features
- support for multiple handlers in a single feature (9313f07)
- support sending messages from shell to Web (a76d3b4)
BREAKING CHANGES
- rename
Feature.featureIdentifier
toindentifier
- replace onDOMError with onWebFeatureError
- move dom utils to a separate field in
WebjsContext
- rename
WebjsContext.postShellMessage
to
postMessageToShell
- renamed
FeatureBuilder.withHandlerEventProp
to
withHandlerProp
to prepare for bilateral communication.
Release 2.0.0-alpha.0
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
Release 1.0.2
1.0.2 (2020-08-20)
Release 1.0.1
1.0.1 (2020-08-19)
Release 1.0.0
1.0.0 (2020-08-19)
Initial release.
Release 0.10.1-alpha.6
0.10.1-alpha.6 (2020-08-17)
Code Refactoring
- cleaner Typescript typings for return type of makeWebshell (8f2bbe8)
- rename handler props with onDOM prefix (596b23d)
- WebshellProps now inherit WebViewProps (d685b2d)
Features
- forward WebView refs (4b06eb5)
BREAKING CHANGES
- for Typescript users, exported types have changed.
You now only require 2 generic type params for makeWebshell and
WebshellComponentOf. - the type signature of the returned component has
slightly changed. - the webViewProps has disappeared. You should now use
those props as Webshell props. - handlers props have been renamed.
Release 0.10.1-alpha.5
0.10.1-alpha.5 (2020-08-09)
Code Refactoring
- rename a few typescript interfaces (784f523)
BREAKING CHANGES
- for typescript users:
- WebshellStaticProps renamed to WebshellInvariantProps
- WebshellComponentProps renamed to WebshellProps