Skip to content

Latest commit

 

History

History
778 lines (359 loc) · 37.9 KB

CHANGELOG.md

File metadata and controls

778 lines (359 loc) · 37.9 KB

11.2.3 (2022-01-11)

11.2.2 (2021-11-25)

Bug Fixes

  • tre: add bold style for "b" tag (5b1e1cc)

11.2.1 (2021-10-21)

11.2.0 (2021-10-20)

Features

  • tre: enhanced typings and documentation (e467185)

11.1.2 (2021-10-20)

Bug Fixes

  • tre: accurate nodeIndex field description matching current impl (b10dce3)
  • tre: do not set accessibilityLabel for images with presentation role (91f0937)
  • tre: typo in documentation (2db3ef8)

11.1.1 (2021-10-19)

Bug Fixes

  • tre: map HTML role attribute instead of notional aria-role (50031a4)
  • tre: prefer aria-label over alt in img element model (54e05a1)

11.1.0 (2021-10-16)

Features

  • tre: allow HTMLElementModel.extend to take a merge function (ab7019f)

11.0.0 (2021-10-15)

Code Refactoring

  • rename getDynamicReactNativeProps to getReactNativeProps for consistency (3401890)
  • rename getuadynamicmixedstyles to getmixeduastyles for consistency (a1ce296)

Features

  • add new typescript util, ExtractTNodeFromType (9b1b008)

BREAKING CHANGES

  • rename getDynamicReactNativeProps to getReactNativeProps for consistency
  • rename getuadynamicmixedstyles to getmixeduastyles for consistency

10.4.0 (2021-10-14)

Features

  • tre: add onPress support in native props (8185e0d)

10.3.0 (2021-10-13)

Features

  • tre: enhanced context for getDynamicReactNativeProps and getUADynamicMixedStyles (b7dd796)

10.2.1 (2021-09-11)

Bug Fixes

  • set accessibilityLabel for headings to bypass RN limitation (52d5be7)

10.2.0 (2021-09-11)

Features

  • support aria-role="search" and aria-role="presentation" (4372c4b)

10.1.0 (2021-09-05)

Features

  • enhance accessibility of img elements (cb0410c)
  • pass aria-label and aria-role to as native props (39101de)
  • provide sensible accessibility values for interactive elements and svg (486e649)
  • tre: add support for user-select CSS property (42da28f)

Performance Improvements

  • memoize return values in getNativeStyles and getWebStyles (32090fb)

10.0.2 (2021-09-04)

Bug Fixes

  • apply "blue" color to anchors when href is an empty string (f727cd2)

10.0.1 (2021-09-04)

Bug Fixes

  • tre: provide accessibility props when <a> has a non-empty href attribute (aa82791)

10.0.0 (2021-09-04)

Code Refactoring

  • rename ReactNativePropsDefinitions.all to native for consistency (292e75e)

BREAKING CHANGES

  • rename ReactNativePropsDefinitions.all to native for consistency with RNRH.

9.3.0 (2021-09-04)

Features

  • add accessibility role to headings (h1...h6) (6cfa7d5)
  • new HTMLElement.reactNativeProps and getDynamicReactNativeProps (a02d972)
  • tre: new getUADynamicMixedStyles to replace getUADerivedStyleFromAttributes (4199b5a)

9.2.4 (2021-08-29)

9.2.3 (2021-08-29)

9.2.2 (2021-07-19)

9.2.1 (2021-07-07)

9.2.0 (2021-07-01)

Features

  • tre: reexport css-processor types (59e81e9)

9.1.0 (2021-06-24)

Features

  • new TNode.hasClass method (3cd1330)

9.0.3 (2021-05-29)

9.0.2 (2021-05-28)

9.0.1 (2021-05-26)

9.0.0 (2021-05-26)

Code Refactoring

  • tre: avoid renaming reexports (965094d)

Features

  • tre: export TNodePrintOptions (46b40a2)

BREAKING CHANGES

  • tre: reexported classes from domhandler have been renamed to their original name, so DOMNode is now Node.
  • tre: isDOMText has been renamed to isText and isDOMNode to isNode.

8.4.1 (2021-05-18)

Bug Fixes

  • tre: don't append an extraneous line return in snapshot() (091d5dd)

8.4.0 (2021-05-18)

Features

  • tre: export Native and Web styles types (342e6f4)

8.3.0 (2021-05-18)

Features

  • tre: expose webBlockRet styles to support "objectFit" mixed style (4f3f6f2)

8.2.0 (2021-05-15)

Features

  • tre: add parent as second argument of ignoreNode (53afd74)

8.1.2 (2021-05-15)

Bug Fixes

  • tre: don't append text nested in ignored tags (f1f2e04)

8.1.1 (2021-05-14)

Bug Fixes

  • tre: in DomHandler, don't increment ignore counter on ignored text nodes (4ca069b)

8.1.0 (2021-05-12)

Features

  • rehabilitate styles in TNode (f6240f5)

8.0.0 (2021-05-12)

Features

  • new getNativeStyles and getWebStyles utilities in TNodes (d1e9603)

BREAKING CHANGES

  • the styles field is not exposed anymore. Use tnode.getNativeStyles and tnode.getWebStyles instead.

7.3.0 (2021-05-10)

Features

  • export HTMLElementsModels in TRenderEngine (fe0f261)

7.2.0 (2021-05-10)

Features

  • implement markers and setMarkersForTNode param (7cf5e61)

7.1.0 (2021-05-08)

Bug Fixes

  • tre: 3 spaces indentation on TNode.snapshot print instead of 2 (c14c3bc)

Features

  • tre: support selectDomRoot param (fd58a45)

7.0.0 (2021-05-08)

Code Refactoring

  • tre: drop alterDOMParams (ed6a751)

Features

  • tre: new ignoredDomTags, ignoreDomNode and domVisitors opts. These options will add very little overhead as they don't require a tree traversal; they are used during parsing instead!

BREAKING CHANGES

  • tre: alterDOMParams has been drop. Instead, use either ignoreDomNode, ignoredDomTags or domVisitors.

6.3.0 (2021-05-07)

Features

  • tre: new tamperDOM optional argument to parseDocument (7f49fee)

6.2.1 (2021-05-07)

Bug Fixes

  • tre: actually apply withNodeIndex parameter (c7030fd)

6.2.0 (2021-05-07)

Features

  • support metro bundler react-native package.json field (ef33150)
  • tre: allow customize snapshot with optional styles and nodeIndex prints (78437cc)

6.1.1 (2021-05-07)

Bug Fixes

  • tre: add missing withStyles param in recursive calls serializeTnode (da60350)

6.1.0 (2021-05-06)

Features

  • tre: add printStyles param to TNode.snapshot (b8d6f83)

6.0.0 (2021-05-06)

Bug Fixes

  • collapse whitespaces after
    and tags (cb84d62)
  • tre: preserve style inheritance in anonymous TPhrasing nodes (734f105)

Code Refactoring

  • tre: expose TNode.snapshot instead of TNode.toString (f28c81b)
  • remove tnodeToString from exports (4c7e31b)

Features

  • tre: add nodeIndex in serialized snapshot (307b145)
  • tre: expose TNode.isUnregistered field (b5b5efd)
  • tre: print "unregistered" and "src" attribute in TNode.toString (7ff6d74)

BREAKING CHANGES

  • tre: replace TNode.toString with TNode.snapshot
  • tnodeToString is no longer exported. Use TNode.snapshot() instead.

5.1.1 (2021-05-06)

Bug Fixes

  • tre: expose "matchContentModel" method from TNode (c67b70f)

5.1.0 (2021-05-06)

Bug Fixes

  • tre: typings confusion between exported TNode types and impl (9878327)

Features

  • tre: expose parseDocument and buildTTreeFromDoc methods (d2f4bb9)

5.0.0 (2021-05-05)

Bug Fixes

  • tre: optionalize dangerous options (8ec75b0)

Code Refactoring

  • tre: hide TNode internals via interfaces (304fd3a)

Performance Improvements

  • optimize whitespace collapsing (77bf33d)
  • tre: multiply translate speed by 30% with prototypal inheritance (c5a596c)
  • tre: remove intermediary serialization step (e559bcf)

BREAKING CHANGES

  • tre: TNode constructors are not exported anymore. Only the types. Therefore, you must use tnode.type for type checking instead of instanceof.
  • tre: serialize-related exports have been removed. Also, the type of TNode.domNode has changed to the one exported by htmlparser2

4.4.1 (2021-02-16)

Bug Fixes

  • TRE: re-index children nodeIndex after whitespace collapsing (3130a1b)

4.4.0 (2021-02-14)

Features

  • TRE: supp. dir attribute in document context parsing (4e16916)

4.3.0 (2021-02-13)

Bug Fixes

  • import of const enum not working (c41ca5d)

Features

  • transient-render-engine: parent field in TNode (da2d3de)
  • transient-render-engine: support nodeIndex (3f7e33f)

4.2.0 (2021-02-07)

Bug Fixes

  • transient-render-engine: provide csstype dependency for css-processor (ca6104e)

Features

  • transient-render-engine: support picture node as basic block (a3a384b)

Performance Improvements

  • transient-render-engine: don't translate children of opaque nodes (f68efae)

4.1.0 (2021-02-01)

Features

  • transient-render-engine: provide default styles for tabular elements (e26811b)

4.0.0 (2021-02-01)

Code Refactoring

  • transient-render-engine: distinguish between rendered and other embedded (8d003c0)

BREAKING CHANGES

  • transient-render-engine: the content model for embedded other than img and picture is now "none".

3.9.1 (2021-01-31)

Bug Fixes

  • transient-render-engine: missing domNode initial value (ba9328c)

3.9.0 (2021-01-31)

Features

  • transient-render-engine: export toSerializableNode (73aa4d4)

3.8.1 (2021-01-19)

Bug Fixes

  • transient-render-engine: ignoreDOMNode ignored when no other hooks (d54e37b)

3.8.0 (2021-01-19)

Bug Fixes

  • transient-render-engine: reset alterDOMChildren signature (32f0699)

Features

  • support ignoreDOMNode hook in AlterDOMParams (fa498af)

3.7.0 (2021-01-18)

Features

  • new alterDOMParams option (53b00bc)

3.6.2 (2021-01-14)

Bug Fixes

  • transient-render-engine: remove UA listStyleType style (7738142)

3.6.1 (2020-12-03)

Bug Fixes

  • transient-render-engine: use unicode escape sequences inside regex literal (6fad215)

3.6.0 (2020-11-30)

Features

  • transient-render-engine: new removeLineBreaksAroundEastAsianDiscardSet option (3264d96)

Performance Improvements

  • transient-render-engine: precompiled regexes (2cf3167)

3.5.8 (2020-11-30)

Bug Fixes

  • transient-render-engine: don't assign a default fontSize (9aba734)

3.5.7 (2020-11-30)

Bug Fixes

  • transient-render-engine: don't assign a default fontSize (ceb5950)

3.5.6 (2020-11-29)

Bug Fixes

  • transient-render-engine: collapse form-feed characters (\f) (faff027)

3.5.5 (2020-11-29)

Bug Fixes

  • transient-render-engine: collapse the penultimate child (TPhrasing) (543ddf8)

3.5.4 (2020-11-27)

Bug Fixes

  • transient-render-engine: type for HTMLElementModel.extend (ts) (aa3165d)

3.5.3 (2020-11-26)

Bug Fixes

  • transient-render-engine: remove isVoid from HTMLElementModel (68510ab)

3.5.1 (2020-11-25)

3.5.0 (2020-11-25)

Bug Fixes

  • transient-render-engine: duplicate body when root element is body (9db7c24)
  • transient-render-engine: only assert anonymous TText as empty (3ee9507)

Features

  • transient-render-engine: apply baseStyle own styles to html node (f3b4b70)

3.4.3 (2020-11-25)

3.4.2 (2020-11-25)

Bug Fixes

  • transient-render-tree: render void TText nodes (50046bc)

3.4.1 (2020-11-25)

3.4.0 (2020-11-24)

Features

  • transient-render-engine: content model type inference (2f3db1a)

3.3.0 (2020-11-24)

Features

  • transient-render-engine: export defaultHTMLModelRecord (71822ca)

3.2.0 (2020-11-24)

Features

  • transient-render-engine: new TNode.matchContentMode method (cebf709)

3.1.0 (2020-11-24)

Features

  • transient-render-engine: add new option, customizeHTMLModels (4fc7880)
  • transient-render-engine: allow registering of custom tag models (32ea9ad)
  • transient-render-engine: new HTMLContentModel enum (7960d98)

3.0.0 (2020-11-23)

Features

  • transient-render-engine: align specs with RFC002 v2.0.0 (1b1ac68)

BREAKING CHANGES

  • transient-render-engine: Hoisting doesn't pass anchor marker to children anymore.

2.0.2 (2020-11-23)

2.0.1 (2020-11-21)

2.0.0 (2020-11-21)

Features

  • transient-render-engine: export TStyles class (04d1345)

BREAKING CHANGES

  • transient-render-engine: rename TTreeBuilder to TRenderEngine for clarity (07b9852)

1.5.0 (2020-11-20)

Bug Fixes

  • transient-render-engine: design flaw with UA styles (340ab7f)

Features

  • transient-render-engine: proper handling of rootFontSize (a680c61)

1.4.1 (2020-11-19)

Bug Fixes

  • transient-render-engine: shrink UA spacing from 40 to 30px (fbadede)

1.4.0 (2020-11-19)

Features

  • css-processor: allow top, right, bottom and left CSS properties (fed4e3e)
  • transient-render-engine: add TNode.displayName for string print (7368816)
  • transient-render-engine: use baseStyle.fontSize for em & rem units (300522c)

1.3.1 (2020-11-19)

Bug Fixes

  • transient-render-engine: align hr UA styles with legacy (af1ba78)

1.3.0 (2020-11-19)

Features

  • transient-render-engine: stringify data to avoid line returns (tnodeToString) (0f5a9ec)

1.2.0 (2020-11-19)

Bug Fixes

  • transient-render-engine: anchor child losing its children during hoisting (d8c4a9f)

Features

  • transient-render-engine: implement tnodeToString to print a tree (00acc0c)

1.1.4 (2020-11-18)

Bug Fixes

  • transient-render-engine: only push wrapper nodes when not-empty (hoist) (c331cb8)
  • transient-renderer-tree: preserve styles in hoisted nodes (992c693)

1.1.3 (2020-11-18)

Bug Fixes

  • transient-render-engine: preserve the anchors color from legacy (0ec10e6)

1.1.2 (2020-11-18)

Bug Fixes

  • transient-render-engine: merge retained text styles (textDecoration*) (4c16105)

1.1.1 (2020-11-17)

Bug Fixes

  • transient-render-engine: ol user agent styles overriden by ul styles (548880c)

1.1.0 (2020-11-17)

Features

  • transient-render-engine: add default listStyleType in ul and ol models (16d93ad)

1.0.4 (2020-11-17)

1.0.3 (2020-11-17)

1.0.2 (2020-11-16)

1.0.1 (2020-11-16)

Bug Fixes

  • transient-render-engine: avoid using Object.create for styles (676855a)

1.0.0 (2020-11-16)

Features

  • transient-render-engine: add index.ts export (7642b1e)
  • transient-render-engine: allow partial CSSProcessorConfig option (7aab97e)
  • transient-render-engine: implement user styles with specificity (f942aad)
  • transient-render-engine: new baseStyles parameter for stylesConfig (53d5574)
  • transient-render-engine: support for whiteSpace: "normal" and "pre" (30a9aa2)
  • transient-render-engine: support TNode style inheritance (20a08b3)
  • transient-render-engine: user agent styles for tags in HTML models (696a389)
  • initial commit (cb5489d)