Releases: meliorence/react-native-render-html
Release 6.0.0-beta.7
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
Release 6.0.0-beta.6
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
RenderHTMLSourcecomponent, use shallow-equality in memo function (0fd1f81)
Release 6.0.0-beta.5
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
collapseTopMarginForChildutility (199be12) - export
TNodeRenderer(dbabe1d) - new
hasClassmethod inTNodes(4cf6ede)
Performance Improvements
- memoize
TNodeRenderer(164f205)
Release 6.0.0-beta.4
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).markerBoxStyleprop (c929643)
Performance Improvements
- use context to make unitary list style renderers (26bdd72)
Release 6.0.0-beta.3
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
triggerTREInvalidationPropNameshas 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
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
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
debugmode not activated despite prop set totrue(ca3fbca)viewProps.styleandtextProps.styleshould have greater specificity over computed styles (38bf934)- allow an empty object as param of
buildTREFromConfig(a71854f) - default anchor
onPressshould await onLinking.canOpenURL(d9e8eb5) - inconsistent loading state in
SourceLoaderUri(a530c5c) - uri source loading failure caused by missing defaults renderers (4bc3f38)
- use default list style type when
getFallbackListStyleTypeFromNestLevelreturns undefined (c0eee3d)
Release 6.0.0-beta.0
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
GenericPressableprop to customize the component wrapping interactive views (707374a), closes #472pressableHightlightColorprop to customize pressable appearance (e5dfa1e)- access
sharedPropsfrom custom renderers (0d2199e) - accessibility for images with role and label (1accaf7)
- add
react-nativefield in package.json for metro (10dfc82) - allow module augmentation for renderers prop via
RenderersProps(97dabc1) - configure
enableExperimentalRtlinrenderersProps.ol|ul(96daa5e) - configure
getFallbackListStyleTypeFromNestLevelinrenderersProps.ol|ul(1377ef7) - configure margins removal for nested lists in
renderersProps.ol|ul(316e706) - experimental
dangerouslyDisableHoistingprop (e6c7328) - export
defaultListStyleSpecsfor customization. (2f9ed01) - export
defaultSystemFontsanddefaultFallbackFonts(0c4207c) - export
buildTREFromConfigfor testing (c13e1a7) - new
propsFromParentin custom renderers and children renderers (3bc1b52), closes #228 - new
renderersProps.(ol|ul).enableDynamicMarkerBoxWidthprop (f87b9f6) - new
selectDomRootprop to select a custom root (31bbff7) - new
setMarkersForTNodeprop (63caa4d) - new
useIMGElementStateWithCachehook for images (54dc1bc) - new prop
customListStyleSpecsto support additionallist-style-type(84ec025) - new source type
RenderHTMLSourceDomto render a DOM object (eeec894) - performant multi-instance HTML rendering with
RenderHTMLSource(4e4cd09) - reexport
CustomElementModeltype from TRE (c5a01f0) - reexport
HTMLModelRecordfrom TRE (a9c9cf3) - reexport
isDomNodeand isDomText from TRE (cedcf7a) - reexport
SetMarkersForTNodefrom TRE (eaa3928) - reexport
TNodeDescriptorfrom TRE (157983c) - reexport
TNodePrintOptionstype 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*MarginIfNestedfor list renderers (e0fe7c6) - support
nodeIndexandparentfields inTNode(fe2504c) - support accessibility for
aelements (6974ce6), closes #285 - support
decimal-leading-zerolist style type prefix ([526e226](526e226c391272d8af571d017a...
Release 6.0.0-alpha.26
6.0.0-alpha.26 (2021-06-04)
Code Refactoring
- remove internalRenderers from exports (cea10f9)
- rename
RenderersPropsBasetoRenderersProps(38de8f4) - rename
TransientRenderEngineConfigtoTRenderEngineConfig(89dc252) - rename reexports from domhandler to their original names (5488313)
- simplify types / suggest module augmentation for extensibility (c6f5cc7)
Features
- new
renderersProps.(ol|ul).enableDynamicMarkerBoxWidthprop (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
enableDynamicMarkerBoxWidthlists renderers prop. - (TypeScript users):
TransientRenderEngineConfigwas
renamed toTRenderEngineConfigfor naming consistency. - (TypeScript users):
RenderersPropsBasehas been
renamed toRenderersPropsfor naming consistency. - DOMNode has been renamed to Node, DOMText to Text...
etc. internalRenderershas been removed from exports. If
you need to reuse an internal renderer, checkuseInternalRenderer
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 specifyRenderersPropsor
PropsFromParent.