Skip to content

Commit

Permalink
v0.5.0-rc.2020081901 -- version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed Aug 19, 2020
1 parent 564cedd commit a31439f
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 6 deletions.
49 changes: 49 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
## 0.5.0-rc.2020081901

This is a big release with lots of improvements under the hood, probably the last pre-release before `v0.5.0` stable is out. If you don't extends `WidgetFactory` yourself then there are only two BREAKING changes that may affect your app:

* BREAKING: `customStylesBuilder` returns `Map` instead of `List`
* BREAKING: `onTapUrl` is called for incomplete URL

Other changes:

* Add support for `pt` unit (#266)
* Add support for inline style `background` (color only) (#275)
* Implement inline support for `margin`, `padding` (#237)
* Fix sizing (width, heigh, etc. #248)
* Fix bug `textScaleFactor` being considered twice during rendering (#267)
* Fix widget tree not being updated on dependency changes (#284)

Finally, BREAKING changes if you have a custom `WidgetFactory`:

* `BuildOp`: callback params changed
* `ImgMetadata` -> `ImageMetadata`:
* Add `ImageSource`
* `NodeMetadata` -> `BuildMetadata`:
* Text style properties moved into `TextStyleHtml`
* Remove `hasOps`
* Remove `hasParents`
* `ops` -> `buildOps`
* `parents` -> `parentOps`
* `op=` -> `register(BuildOp)`
* `style` -> `operator [](String)`
* `styles=` -> `operator []=(String, String)`
* `TableData` -> `TableMetadata`
* `TextBit`
* Remove `TextWhitespace`, `TextWhitespaceType`
* Remove `data`
* Remove `canCompile`
* Remove `hasTrailingWhitespace` (`TextBits` still has it)
* `InlineSpan compile(TextStyle)` -> `CompileTo compile(CompileFrom)`
* `static TextBit TextBit.nextOf(TextBit)` -> instance `TextBit next()`
* `TextStyleBuilders` -> `TextStyleBuilder`:
* Builder signature `TextStyleHtml Function(BuildContext, TextStyleHtml, T)` -> `TextStyleHtml Function(TextStyleHtml, T)`
* `WidgetFactory`
* `buildXxx` methods have `BuildMetadata` as first parameter
* `buildImageXxx` -> `imageXxx`
* `buildGestureTapCallbackForUrl` -> `gestureTapCallback`
* `parseTag(NodeMetadata, String, String)` -> `parse(BuildMetadata)`
* `WidgetPlaceholder`
* Constructor changed
* Builder signature `Iterable<Widget> Function(BuildContext, Iterable<Widget>, T)` -> `Widget Function(BuildContext, Widget)`

## 0.5.0-rc.2020071301

* BREAKING: Remove 3rd param `wf` from `WidgetPlaceholder.wrap`
Expand Down
4 changes: 2 additions & 2 deletions packages/core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_widget_from_html_core
version: 0.5.0-rc.2020071301
version: 0.5.0-rc.2020081901
description: Flutter package for widget tree building from html that focuses on correctness and extensibility.
homepage: https://github.com/daohoangson/flutter_widget_from_html/tree/master/packages/core

Expand All @@ -15,6 +15,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
network_image_mock: ^1.0.0
network_image_mock: ^1.0.1
pedantic: ^1.9.0
test: any
49 changes: 49 additions & 0 deletions packages/enhanced/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
## 0.5.0-rc.2020081901

This is a big release with lots of improvements under the hood, probably the last pre-release before `v0.5.0` stable is out. If you don't extends `WidgetFactory` yourself then there are only two BREAKING changes that may affect your app:

* BREAKING: `customStylesBuilder` returns `Map` instead of `List`
* BREAKING: `onTapUrl` is called for incomplete URL

Other changes:

* Add support for `pt` unit (#266)
* Add support for inline style `background` (color only) (#275)
* Implement inline support for `margin`, `padding` (#237)
* Fix sizing (width, heigh, etc. #248)
* Fix bug `textScaleFactor` being considered twice during rendering (#267)
* Fix widget tree not being updated on dependency changes (#284)

Finally, BREAKING changes if you have a custom `WidgetFactory`:

* `BuildOp`: callback params changed
* `ImgMetadata` -> `ImageMetadata`:
* Add `ImageSource`
* `NodeMetadata` -> `BuildMetadata`:
* Text style properties moved into `TextStyleHtml`
* Remove `hasOps`
* Remove `hasParents`
* `ops` -> `buildOps`
* `parents` -> `parentOps`
* `op=` -> `register(BuildOp)`
* `style` -> `operator [](String)`
* `styles=` -> `operator []=(String, String)`
* `TableData` -> `TableMetadata`
* `TextBit`
* Remove `TextWhitespace`, `TextWhitespaceType`
* Remove `data`
* Remove `canCompile`
* Remove `hasTrailingWhitespace` (`TextBits` still has it)
* `InlineSpan compile(TextStyle)` -> `CompileTo compile(CompileFrom)`
* `static TextBit TextBit.nextOf(TextBit)` -> instance `TextBit next()`
* `TextStyleBuilders` -> `TextStyleBuilder`:
* Builder signature `TextStyleHtml Function(BuildContext, TextStyleHtml, T)` -> `TextStyleHtml Function(TextStyleHtml, T)`
* `WidgetFactory`
* `buildXxx` methods have `BuildMetadata` as first parameter
* `buildImageXxx` -> `imageXxx`
* `buildGestureTapCallbackForUrl` -> `gestureTapCallback`
* `parseTag(NodeMetadata, String, String)` -> `parse(BuildMetadata)`
* `WidgetPlaceholder`
* Constructor changed
* Builder signature `Iterable<Widget> Function(BuildContext, Iterable<Widget>, T)` -> `Widget Function(BuildContext, Widget)`

## 0.5.0-rc.2020071301

* BREAKING: Remove 3rd param `wf` from `WidgetPlaceholder.wrap`
Expand Down
8 changes: 4 additions & 4 deletions packages/enhanced/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_widget_from_html
version: 0.5.0-rc.2020071301
version: 0.5.0-rc.2020081901
description: Flutter package for widget tree building from html that supports hyperlink, image, nested list, etc.
homepage: https://github.com/daohoangson/flutter_widget_from_html

Expand All @@ -15,10 +15,10 @@ dependencies:
sdk: flutter
flutter_layout_grid: ^0.10.2
flutter_svg: ^0.18.0
flutter_widget_from_html_core: ^0.5.0-rc.2020071301
flutter_widget_from_html_core: ^0.5.0-rc.2020081901
html: ^0.14.0+3
url_launcher: ^5.4.10
video_player: ^0.10.11+1
url_launcher: ^5.5.0
video_player: ^0.10.12
webview_flutter: ^0.3.22+1

dependency_overrides:
Expand Down

2 comments on commit a31439f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.