Skip to content

Releases: meliorence/react-native-render-html

Release 6.0.0-beta.7

01 Jul 18:17
Compare
Choose a tag to compare

6.0.0-beta.7 (2021-07-01)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

Bug Fixes

  • loading image component doesn't display alt and borders anymore (1351ee5)

Features

  • new renderersProps.(ol|ul).markerTextStyle prop (6ca54e9)
  • re-export definitions from css-processor (966f01a), closes #503
  • use aspectRatio style to infer one dimension of images sizes (e018b30)

Release 6.0.0-beta.6

25 Jun 17:53
Compare
Choose a tag to compare

6.0.0-beta.6 (2021-06-25)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

Bug Fixes

  • in RenderHTMLSource component, use shallow-equality in memo function (0fd1f81)

Release 6.0.0-beta.5

24 Jun 21:28
Compare
Choose a tag to compare

6.0.0-beta.5 (2021-06-24)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

Features

  • export collapseTopMarginForChild utility (199be12)
  • export TNodeRenderer (dbabe1d)
  • new hasClass method in TNodes (4cf6ede)

Performance Improvements

Release 6.0.0-beta.4

23 Jun 17:46
Compare
Choose a tag to compare

6.0.0-beta.4 (2021-06-23)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

Features

  • support renderersProps.(ol|ul).markerBoxStyle prop (c929643)

Performance Improvements

  • use context to make unitary list style renderers (26bdd72)

Release 6.0.0-beta.3

19 Jun 18:35
Compare
Choose a tag to compare

6.0.0-beta.3 (2021-06-19)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

Beware there is a breaking change in this version, although very easy to fix (see below).

Features

  • new dev profiler to get feedback on short updates (98fd749)

BREAKING CHANGES

  • The triggerTREInvalidationPropNames has been discontinued. The idea for this prop originated in the premise that many beginners would disregard the issue of passing literal props triggering many re-renders. But I realized it mostly frustrated expectations of newcomers that this library honors React components contract. So I have finally decided to discard the prop, and instead add a lightweight profiler (in dev mode only, of course), which warns the consumer of re-renders happening in a short period of time. You are now responsible for the invalidation of the TRenderEngine, so make sure you memoize the props if the controlling components is expected to re-render often.

Release 6.0.0-beta.2

13 Jun 19:14
Compare
Choose a tag to compare

6.0.0-beta.2 (2021-06-13)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

Bug Fixes

  • style prop ignored in GenericPressable on Android (cea6fe8)

Release 6.0.0-beta.1

11 Jun 11:22
Compare
Choose a tag to compare

6.0.0-beta.1 (2021-06-11)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

This beta.1 brings a lot of tests and a branch test coverage above 99%. Many bugs have been identified and fixed thanks to this endeavor. (Please note that the value reported by CodeCov is erroneous, the bug is being tracked here.)

Bug Fixes

  • debug mode not activated despite prop set to true (ca3fbca)
  • viewProps.style and textProps.style should have greater specificity over computed styles (38bf934)
  • allow an empty object as param of buildTREFromConfig (a71854f)
  • default anchor onPress should await on Linking.canOpenURL (d9e8eb5)
  • inconsistent loading state in SourceLoaderUri (a530c5c)
  • uri source loading failure caused by missing defaults renderers (4bc3f38)
  • use default list style type when getFallbackListStyleTypeFromNestLevel returns undefined (c0eee3d)

Release 6.0.0-beta.0

08 Jun 01:14
Compare
Choose a tag to compare

6.0.0-beta.0 (2021-06-08)

The Foundry release is finally stable, and is now-on the recommended version. Check out the announcement blog post in our brand new website. We also have a migration guide for those who're coming from v5 and below. If you encounter any issue with this release, please comment in the official thread.

Bug Fixes

  • discard unsupported CSS inline methods (calc, var) (a2e7578)
  • images honor styles and physical size in "alt" (error) mode (059e5d6)
  • in <img> tags, style dimensions should prevail over attributes (de3b473)
  • list style prefixes now inherit from font*(weight,style,family) (191c45c)
  • don't peer-depend on prop-types, instead depend directly (27e843e)

And all these unlisted in commits: #94, #118, #144, #150, #151, #156, #165, #227, #228, #243, #263, #286, #312, #336, #344, #360, #369, #371 #414, #418, #419, #420, #424, #429, #432, #470, #481, #482, #484

Features

  • GenericPressable prop to customize the component wrapping interactive views (707374a), closes #472
  • pressableHightlightColor prop to customize pressable appearance (e5dfa1e)
  • access sharedProps from custom renderers (0d2199e)
  • accessibility for images with role and label (1accaf7)
  • add react-native field in package.json for metro (10dfc82)
  • allow module augmentation for renderers prop via RenderersProps (97dabc1)
  • configure enableExperimentalRtl in renderersProps.ol|ul (96daa5e)
  • configure getFallbackListStyleTypeFromNestLevel in renderersProps.ol|ul (1377ef7)
  • configure margins removal for nested lists in renderersProps.ol|ul (316e706)
  • experimental dangerouslyDisableHoisting prop (e6c7328)
  • export defaultListStyleSpecs for customization. (2f9ed01)
  • export defaultSystemFonts and defaultFallbackFonts (0c4207c)
  • export buildTREFromConfig for testing (c13e1a7)
  • new propsFromParent in custom renderers and children renderers (3bc1b52), closes #228
  • new renderersProps.(ol|ul).enableDynamicMarkerBoxWidth prop (f87b9f6)
  • new selectDomRoot prop to select a custom root (31bbff7)
  • new setMarkersForTNode prop (63caa4d)
  • new useIMGElementStateWithCache hook for images (54dc1bc)
  • new prop customListStyleSpecs to support additional list-style-type (84ec025)
  • new source type RenderHTMLSourceDom to render a DOM object (eeec894)
  • performant multi-instance HTML rendering with RenderHTMLSource (4e4cd09)
  • reexport CustomElementModel type from TRE (c5a01f0)
  • reexport HTMLModelRecord from TRE (a9c9cf3)
  • reexport isDomNode and isDomText from TRE (cedcf7a)
  • reexport SetMarkersForTNode from TRE (eaa3928)
  • reexport TNodeDescriptor from TRE (157983c)
  • reexport TNodePrintOptions type from TRE (6f3265c)
  • support "object-fit" CSS property for images (24f72b0)
  • support "start" attribute in ol and ul elements (b9d3154), closes #336
  • support "upper-latin" and "lower-lattin" list-style-type CSS props (a0da60d)
  • support enableRemove*MarginIfNested for list renderers (e0fe7c6)
  • support nodeIndex and parent fields in TNode (fe2504c)
  • support accessibility for a elements (6974ce6), closes #285
  • support decimal-leading-zero list style type prefix ([526e226](526e226c391272d8af571d017a...
Read more

Release 6.0.0-alpha.26

04 Jun 20:40
Compare
Choose a tag to compare
Pre-release

6.0.0-alpha.26 (2021-06-04)

Code Refactoring

  • remove internalRenderers from exports (cea10f9)
  • rename RenderersPropsBase to RenderersProps (38de8f4)
  • rename TransientRenderEngineConfig to TRenderEngineConfig (89dc252)
  • rename reexports from domhandler to their original names (5488313)
  • simplify types / suggest module augmentation for extensibility (c6f5cc7)

Features

  • new renderersProps.(ol|ul).enableDynamicMarkerBoxWidth prop (0cde839)
  • reexport CustomElementModel type from TRE (9cc961b)
  • reexport HTMLModelRecord from TRE (c74efad)
  • reexport isDomNode and isDomText from TRE (0292ac0)
  • reexport SetMarkersForTNode from TRE (38a787f)
  • reexport TNodeDescriptor from TRE (1adfc1b)
  • reexport TNodePrintOptions type from TRE (0a436a7)

BREAKING CHANGES

  • list padding will not adapt to markers width anymore.
    You need to explicitly enable this behavior via the new
    enableDynamicMarkerBoxWidth lists renderers prop.
  • (TypeScript users): TransientRenderEngineConfig was
    renamed to TRenderEngineConfig for naming consistency.
  • (TypeScript users): RenderersPropsBase has been
    renamed to RenderersProps for naming consistency.
  • DOMNode has been renamed to Node, DOMText to Text...
    etc.
  • internalRenderers has been removed from exports. If
    you need to reuse an internal renderer, check useInternalRenderer
    hook instead.
  • A few TypeScript types names have been changed and
    some type parameters have been removed for simplicity. Use module
    augmentation if you need to specify RenderersProps or
    PropsFromParent.

v5.1.1

06 Jun 12:13
Compare
Choose a tag to compare

Bugfixes

  • wrong nodeIndex for children of ul and ol tags
  • alterChildren function return type