Skip to content

Commit ea7dbd2

Browse files
committed
chore: release @formidable-webview/webshell 2.0.0-alpha.1
1 parent 335b571 commit ea7dbd2

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

packages/core/CHANGELOG.MD

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,79 @@
1+
# [2.0.0-alpha.1](https://github.com/formidable-webview/webshell/compare/v2.0.0-alpha.0...v2.0.0-alpha.1) (2020-09-30)
2+
3+
4+
### Bug Fixes
5+
6+
* bug causing feature loading to fail ([83b716c](https://github.com/formidable-webview/webshell/commit/83b716cc0a19c4fdee7f94d7394a1c69c085f6e7))
7+
8+
9+
### Code Refactoring
10+
11+
* move dom utils to a separate field in `WebjsContext` ([4a0a291](https://github.com/formidable-webview/webshell/commit/4a0a291856c15902ef81b0e8f30fb3d335083a9c))
12+
* rename `Feature.featureIdentifier` to `indentifier` ([8ffe989](https://github.com/formidable-webview/webshell/commit/8ffe98963d79963cba7979770f48b0e120a754ae))
13+
* rename `WebjsContext.postShellMessage` to `postMessageToShell` ([fd7bc00](https://github.com/formidable-webview/webshell/commit/fd7bc0031d00db34a1ffec826ae7375ac207d3ff))
14+
* replace onDOMError with onWebFeatureError ([2dacca5](https://github.com/formidable-webview/webshell/commit/2dacca5ed57b75e9ffada208de3871be08288f9a))
15+
16+
17+
### Features
18+
19+
* support for multiple handlers in a single feature ([9313f07](https://github.com/formidable-webview/webshell/commit/9313f07a038ec1029721ea10cf473723f7f5687a))
20+
* support sending messages from shell to Web ([a76d3b4](https://github.com/formidable-webview/webshell/commit/a76d3b4daaa39f1bc726f9bf566d700527d21cb4))
21+
22+
23+
### BREAKING CHANGES
24+
25+
* rename `Feature.featureIdentifier` to `indentifier`
26+
* replace onDOMError with onWebFeatureError
27+
* move dom utils to a separate field in `WebjsContext`
28+
* rename `WebjsContext.postShellMessage` to
29+
`postMessageToShell`
30+
* renamed `FeatureBuilder.withHandlerEventProp` to
31+
`withHandlerProp` to prepare for bilateral communication.
32+
33+
34+
35+
# [2.0.0-alpha.0](https://github.com/formidable-webview/webshell/compare/v2.0.0-alpha.0...v2.0.0-alpha.1) (2020-09-26)
36+
37+
38+
### Code Refactoring
39+
40+
* features are now classes and must be built with FeatureBuilder ([d028853](https://github.com/formidable-webview/webshell/commit/d028853b964d55d4b0fa83d59fecb7591c6f7f48))
41+
* makeWebshell now takes feature instances ([ed28385](https://github.com/formidable-webview/webshell/commit/ed28385a21f14b735a335a9b6141064e7d3ebc64))
42+
43+
44+
### Features
45+
46+
* add new methods for WebjsContext interface ([bfdc409](https://github.com/formidable-webview/webshell/commit/bfdc40990e1d35a9029d2c8f5ec249786d6372fc))
47+
* add new useAutoheight hook ([dc9842d](https://github.com/formidable-webview/webshell/commit/dc9842dd9107d1c292cd65337d42f23672432943))
48+
* features API v2 (WIP) ([73d56c7](https://github.com/formidable-webview/webshell/commit/73d56c7af4f12b349702e34574665c56f120b7f2))
49+
* new DOM feature ForceElementSizeFeature ([f715b5f](https://github.com/formidable-webview/webshell/commit/f715b5f17cd2b318849dd73fa18c9078f2991414))
50+
* new DOM feature ForceResponsiveViewportFeature ([25ed358](https://github.com/formidable-webview/webshell/commit/25ed358e9370effc01575b34a54f2ad7498b7452))
51+
* new DOM feature HandleElementCSSBoxFeature ([873d646](https://github.com/formidable-webview/webshell/commit/873d6468fb5e5a9e1fbf807acd52ecb307d5c07f))
52+
* new DOM feature HandleHashChangeFeature ([9b7c47a](https://github.com/formidable-webview/webshell/commit/9b7c47a94fcb5c1f3fc751786f7d8f863ceeab39))
53+
* new DOM feature HandleHTMLDimensionsFeature ([7a158d9](https://github.com/formidable-webview/webshell/commit/7a158d9453d623757dc4daa436e14e9ef7ce8c1e))
54+
* new DOM feature HandleLinkPressFeature ([6da2358](https://github.com/formidable-webview/webshell/commit/6da23584481d0c93d53febaab0c75a53c9659da5))
55+
* new DOM HandleVisualViewportFeature ([0577cbf](https://github.com/formidable-webview/webshell/commit/0577cbf304b57d0be75bc3cc7fde758d230fda31))
56+
57+
58+
### BREAKING CHANGES
59+
60+
* handleLinkPressFeature has been replaced with
61+
HandleLinkPressFeature, its instanciable counterpart. Also, the shape of
62+
the sent message has changed, and is now an object with a variety of
63+
useful information. Finally, this implementation uses the element
64+
instance `href` field instead of the `href` attribute, which could contain
65+
relative paths. It is thus more accurate.
66+
* elementSizeFeature has been replaced with its
67+
instanciable counterpart, HandleElementCSSBoxFeature. If you need the
68+
whole document size, consider HandleHTMLDimensionsFeature.
69+
* makeWebshell now requires to provide a list of Feature
70+
instances instead of the result of feature `assemble` members.
71+
* `makeFeature` has been dropped in favor of
72+
FeatureBuilder. Also, feature bust now be instantiated instead of
73+
calling `assemble` member. All imports must be upper-cased.
74+
Implementing feature is documented here:
75+
https://formidable-webview.github.io/webshell/docs/implementing-features
76+
177
# [2.0.0-alpha.0](https://github.com/formidable-webview/webshell/compare/v1.0.2...v2.0.0-alpha.0) (2020-09-26)
278

379

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@formidable-webview/webshell",
3-
"version": "2.0.0-alpha.0",
3+
"version": "2.0.0-alpha.1",
44
"description": "🔥 Craft Robust React Native WebView-based components with ease.",
55
"main": "lib/commonjs/index.js",
66
"types": "types/@formidable-webview/webshell/index.d.ts",

0 commit comments

Comments
 (0)