Skip to content

Commit

Permalink
chore: sync CHANGELOG with master
Browse files Browse the repository at this point in the history
  • Loading branch information
jsamr committed Dec 5, 2020
1 parent 641e7fb commit decbe60
Showing 1 changed file with 49 additions and 8 deletions.
57 changes: 49 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ underlying element (Text or View).
* missing proptype (onHTMLLoaded) ([fca6898](https://github.com/archriss/react-native-render-html/commit/fca6898f7ed62e3180e9a15fb1391601002931ce))
* use onError to evaluate the fetch state of the image ([d8a9333](https://github.com/archriss/react-native-render-html/commit/d8a93337ecf0d84ddf34f236802b1f961450dc98))


### Features

* enableExperimentalMarginCollapsing prop ([42bfa53](https://github.com/archriss/react-native-render-html/commit/42bfa53d786a3afb3f551a21882fc157aa6b935d))
Expand All @@ -133,34 +132,76 @@ underlying element (Text or View).
* support for loading HTML from URI ([2fba800](https://github.com/archriss/react-native-render-html/commit/2fba800ba1bfb574caf37cedf181e4b4398e2163))
* triggerTREInvalidationPropNames prop ([8a18fdb](https://github.com/archriss/react-native-render-html/commit/8a18fdb89faee3c9defa97ca4622ea9fda9495d2))


### Performance Improvements

* avoid calls to getImageDimensions API when provided in attrs ([2c6211e](https://github.com/archriss/react-native-render-html/commit/2c6211e5165d634ab5af9397b7fa649c15d0ddc8))

# 5.0.0-alpha.2
# v5.0.0

## Enhancements

- New `source` prop which deprecates `html` and `uri` props. This prop
supports `method`, `body` and `headers` fields :rocket:
- Brand new `HTMLImage` component which should be much better at adapting its
size to available width. For this to happen, **you must** pass `contentWidth`
prop. We recommend using `useWindowDimensions().width` to handle screen
rotation gracefully. If you don't want your images to grow after a certain
size, you could use `computeImagesMaxWidth`.
- New prop `computeImagesMaxWidth` (see usage above).
size, you could use `computeEmbeddedMaxWidth`. Read the RFC document [“A
Deterministic Approach to Embedded Content
Scaling”](https://github.com/archriss/react-native-render-html/blob/master/rfc/001-A-deterministic-approach-to-embedded-content-scaling.adoc)
for more details.
- New prop `computeEmbeddedMaxWidth` (see usage above).
- New prop `contentWidth` (see usage above).
- New prop `htmlParserOptions` to override
[htmlparser2](https://github.com/fb55/htmlparser2/wiki/Parser-options)
ParserOptions object, thanks [@fabianlee1211](https://github.com/fabianlee1211).
- `onLinkPress` has now a default value: open links with `Linking` API
(recommended).
- Add Podspec file, thanks [@systemride](https://github.com/systemride)
- New `WebView` optional prop for plugins which requires it, see
[@native-html/plugins](https://github.com/native-html/plugins), thanks
[@IjzerenHein](https://github.com/IjzerenHein)
- New `defaultTextProps`, thanks [@Peretz30](https://github.com/Peretz30)
- New `defaultWebViewProps` for `WebView`-based plugins (tables, iframes...).
- Export `constructStyles`, `getParentsTagsRecursively`,
`getClosestNodeParentByTag` and `IGNORED_TAGS` from index.js.
- New `domNode` field in `passProps`.
- New `domNodeToHTMLString` util to get the HTML representation of a DOM node.
- The internal pre-render tree structure is now typed (`TransientNode`) as well as `onParsed`.

## Bugfixes

- Image getting blur on iOS, [#141](https://github.com/archriss/react-native-render-html/issues/141);
- `img`'s tag `resizeMode` property not modifiable through `tagStyles`, [#172](https://github.com/archriss/react-native-render-html/issues/172);
- `imagesMaxWidth` not working, [#412](https://github.com/archriss/react-native-render-html/issues/412)

## DEPRECATED PROPS (removed in v6)

- `allowFontScaling`, use `defaultTextProps.allowFontScaling` instead;
- `textSelectable`, use `defaultTextProps.selectable` instead;
- `decodeEntities`, use `htmlParserOptions.decodeEntities` instead.
- `html`, use `source.html` instead.
- `uri`, use `source.uri` instead.

## BREAKING CHANGES

- `imagesMaxWidth` had been discontinued in favor of `computeImagesMaxWidth`.
This function takes the provided `contentWidth` as an argument, and returns
the space the image should take.
- (TypeScript users), requires minimum TypeScript version 3.5 (was 2.0)
- `iframe` tag element is not rendered anymore, and `react-native-webview` has
been removed from peer dependencies; use
[`@native-html/iframe-plugin`](https://github.com/native-html/plugins/tree/master/packages/iframe-plugin#readme)
instead, which supports `onLinkPress` and scales to content width :rocket:.
- `imagesMaxWidth` and `staticContentMaxWidth` have been discontinued in favor
of `computeEmbeddedMaxWidth`. This function takes the provided `contentWidth`
as 1st argument, tag name as 2d argument and returns the max width of the
embedded (iframe, image...).
- In the `passProps` 4th argument of renderer functions, the field
`rawChildren` has been renamed to `transientChildren`.

# v4.2.5

## Bugfixes

- re-render `HTML` component on `baseFontStyle` updates

# v4.2.4

Expand Down

0 comments on commit decbe60

Please sign in to comment.